Hi I have created a java application and created a jar file. Then I created a batch file eg-> startup.bat
The contents of this file is java -jar MyApp.jar
Now if I double click the batch file then my java application works because both the jar file and batch file belong to same directory. Now I copied the batch file to desktop and run then My application did not run.
Also I want My batch file automatically set the class path.
How to create a batch file with all the above feature
Thanks Sunil Kumar Sahoo