Frage

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?

War es hilfreich?

Lösung

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.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top