jar executable won't work when copied into desktop
Tariq Ahsan
Ranch Hand
Joined: Nov 03, 2003
Posts: 116
posted
0
Hi,
I have a GUI application called 'GUI' which connects to a oracle database. I copied the classes12.jar for the JDBC connection from c:\oracle\ora92\jdbc\lib into my local directory c:\myfolder\java where I have my GUI application. I have the manifest file, 'manifest.txt' to have -
Main-Class: GUI<cr> Class-Path: classes12.jar<cr>
From the DOS prompt I am doing -
C:\MyFolder\Java> jar mcf GUI.jar GUI*.class
Now double-clicking on GUI.jar executable from C:\MyFolder\Java works fine and gets connected to the database without any problem.
But when I copy the same GUI.jar into my desktop window and do the same I am only getting the first opening screen from my GUI but hangs when trying to connect to the database.
Also, if I copy the jar executable into another directory and try it run it from the command prompt I get the error as shown below -
I have tried to modify the Manifest.txt file several ways giving full path to the classes12.jar in the Class-Path and also directory path to the entry point in Main-Class. Nothing seems to work. One of the such way is like -