@echo off

rem -------------------------------------------------------------------------
rem This script shows how to start yEd on Windows with custom parameters for
rem the Java virtual machine. Copy this script to the installation directory
rem of yEd which contains the yed.jar file.
rem
rem If the script is started with a parameter, the parameter is treated as
rem the file name for the initial graph in yEd.
rem -------------------------------------------------------------------------

rem -------------------------------------------------------------------------
rem Set up the parameters for the Java virtual machine. For example we set
rem the heap space to 768MB and disable Direct3D.

set JAVA_PARAMETERS=-Xmx768m -Dsun.java2d.d3d=false

rem You can add, change or remove parameters.
rem -------------------------------------------------------------------------

rem -------------------------------------------------------------------------
rem Start yEd using the Java virtual machine which shipped with yEd.

start jre\bin\javaw %JAVA_PARAMETERS% -jar .\yed.jar %1

rem -------------------------------------------------------------------------

rem -------------------------------------------------------------------------
rem If you installed yEd without a Java Runtime Environment, but there is a
rem Java installation on the computer remove the relative path "jre\bin\"
rem before the javaw executable as follows.
rem
rem start javaw %JAVA_PARAMETERS% -jar .\yed.jar %1
rem
rem -------------------------------------------------------------------------

rem -------------------------------------------------------------------------
rem If you want to see console output use the following variant (without
rem start and using java instead of javaw).
rem
rem jre\bin\java %JAVA_PARAMETERS% -jar .\yed.jar %1
rem
rem -------------------------------------------------------------------------