Reputation: 3272
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.
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?
Upvotes: 0
Views: 4161
Reputation: 109567
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.
Upvotes: 1
Reputation: 8787
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.
Upvotes: 1