Question

As my question specifies i am creating Runnable JAR file of my project using Eclipse IDE.

This JAR file runs fine on my computer but unable to run on other computers.

How to identify what's the problem?

I read lots of links but still problem is not solved.

.jar file will not open

Generated JAR file is not executing

Creating Jar file - doesn't work on other computers

and many others.

Please tell me the solution what can i do in such problem?

Was it helpful?

Solution

It could be lot's of reasons. What is the error message? Try to catch an Exception with try catch block and save it to some file, then read it.

OTHER TIPS

Move the jar to another directory on your computer and double-click it there. It should not run there. Otherwise you have used File-s instead of resources (getClass().getResource[AsStream]()).

Do not throw away exceptions: so a command line run (cmd) with java -jar ... will show any exceptions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top