Reputation: 1514
I am a new in java. I did the export "Runnable JAR file" and it runs on the other computer by clicking .jar file although it has a compiler warning. After I modified my code and exported it again, it didn't run. I have no clue how to investigate the problem. Can anyone give me some direction to solve the problem?
Upvotes: 0
Views: 65
Reputation: 150
You can try to run the jar file via command line interface to read possible errors. Start cmd, navigate to .jar-file and type "java -jar FILENAME" (where FILENAME is the name of the jar file). If it's some sort of error you will maybe get some info from the produced log. You can post it here afterwards if it makes no sense for you. Additionally type in "java -version" to obtain version information.
Upvotes: 1