0

well, somebody told me that i can make this .java files into .jar files and run them from desktop as an application i did it but if i open this .jar on my desktop nothing happens ... why ? and how can i run it ?

24th Jul 2016, 8:42 AM
Peter Müller
Peter Müller - avatar
7 Réponses
0
first how have you created them on one you can double click on the outher you need to call java -jar xxx.jar
24th Jul 2016, 3:36 PM
Eric Zeus
Eric Zeus - avatar
0
at eclipse i exported that .java in desktop with .jar
24th Jul 2016, 3:55 PM
Peter Müller
Peter Müller - avatar
0
export and then click Executable jar file select the classes that you want and export. if you run it in cmd with java -jar xxxx you can see the Error if you program Crashes
24th Jul 2016, 3:58 PM
Eric Zeus
Eric Zeus - avatar
0
i'll try at home and tell you if it worked ;)
24th Jul 2016, 4:03 PM
Peter Müller
Peter Müller - avatar
0
Try running it from a terminal if you have a jdk installation, java -jar yourjarfile.jar
25th Jul 2016, 1:00 AM
Eric Gitangu
Eric Gitangu - avatar
0
what means this java-jar ?
25th Jul 2016, 9:00 AM
Peter Müller
Peter Müller - avatar
0
you need to open a comand prompt like cmd and type in java -jar path/filename.jar This is the start command to start it. This is also the better way for starting it since you can tell it the a mount of momery it can use etc. Just search for java flags.
25th Jul 2016, 9:09 AM
Eric Zeus
Eric Zeus - avatar