Wednesday, July 15, 2009

How to create a .bat file for eclipse


SOLUTION:
the reason for create the .bat file for eclipse is you can give the different versions of java like java 1.4.2 ......java 1.5.0 ...etc..but you can able to give only one version of java at a time.

using this .bat file you can double click it and run the eclipse on desktop.

steps to create the .bat file

1.open a notepad and paste the following things.

start eclipse -vm C:\java\jdk1.4.2\jre\bin\javaw -vmargs -Xmx256M
startup
exit

2.finally save the file name as eclipse.bat and the file type as AllFiles and the location is where the eclipse.exe is located and create the the shortcut for that .bat file just by right click it and select the option CreateShortcut.


Note:
you have to mention the java folder path where its actually located and the exact javaw.exe path
in our example the path is C:\java\jdk1.4.2\jre\bin\javaw


finally the shortcut .bat file will be look like this


Thanks
A.T.J

No comments:

Post a Comment