Problems with the jar
My concrete difficulty is the following one: I develop a program for an hospital using netbeans 5.5 and when I execute it from there it me works perfectly, but when I construct a .jar and execute it, it is as if it was not finding the routes of
classpath who when it is going to initiate does not find the images that I place to the buttons , to solve this problem initially uses a program that is called launch4j that serves to create .exe native of windows from a .jar across this program if it assumes the route it creates the exe And I list everything the perfect one if it finds the route of the images ... but it turns out that for motives of stability I am going to pass the machine to linux already mount everything (database postgrest and jdk 1.5.0) but I started to having the same problem ... when I execute from netbeans everything it works well, but when I compile and execute the .jar nothing it does not find the route where I have the icons. And the worst thing is that here I cannot create .exe in windows, I believe that my problem is with the classpath but not solving it ....
If you can help me I will appreciate that
can you post a little bit of the code that shows how you are setting up the path to the images ? It may be a path difference between windows and linux. Lets see how you are setting it.
Good morning, I know a tool that maybe can helps you, it is used to create installer for java application
the installer is multiplataform (a jar) and the best thing is that soft is open source: "IzPack"
for more information:
IzPack Java Installer - start