Check your spellings. The posted jar command shows a g in the class name?
Java is case sensitive.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Why not copy and paste rather than typing in the wrong data?
Did you check ALL your spellings? How many places are the class names spelled out?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Can you copy and paste here the contents of the command prompt screen when you try to run the jar? There could be info in the error message.
To copy the command prompt screen:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
What you have pasted doesn't show any command. The commandline associated with the .jar file executes and reads the .jar file trying to find a manifest file with a Main-Class: entry. Does your jar file have a manifest with a Main-Class entry?
What do you think that entering the name of a jar file on a command line should do?
If you build the jar file, did you configure it so it could be executed?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
What is in the manifest file you've added to your jar file? Show by copy and pasting the contents. Your post of: 'Main-Class in the manifest is TabbedLatinHelp" doesn't show the contents of the file.
How do I configure a jar file to be executed, I thought it was executable automatically?
You add a correctly configured manifest to the jar file.
Execute the jar file using the java command as follows:
java -jar TabbedLatinHelp.jar
Copy and paste contents of screen here.
The problem with the default execution that you are trying to do is that it uses the javaw.exe command which does NOT show error messages on a command prompt window.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Look at this command prompt screen. It appears that you have a spelling error(see earlier post about being sure to check spelling):
D:\JavaDevelopment\Testing\JNLP\Original>java -cp TabbedLatinHelp.jar TabbedLatinHelp
Exception in thread "main" java.lang.NoClassDefFoundError: TabbedLatinHelp
Caused by: java.lang.ClassNotFoundException: TabbedLatinHelp
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: TabbedLatinHelp. Program will exit.
D:\JavaDevelopment\Testing\JNLP\Original>java -cp TabbedLatinHelp.jar TabbedlatinHelp
Exception in thread "main" java.lang.NoClassDefFoundError: TabbedlatinHelp (wrong name: TabbedLatinHelp)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: TabbedlatinHelp. Program will exit.
D:\JavaDevelopment\Testing\JNLP\Original>
java.lang.NoClassDefFoundError: TabbedlatinHelp (wrong name: TabbedLatinHelp)
The class filename has a lowercase letter in it, where the class name is upper.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Isn't that spelling an error on your part?
No. It was the spelling of the class name in the jar file I downloaded from http://nocookies92.webs.com/
Download it and look inside and see.
Here's what I extracted from that jar file:
C:\Temp\testing>dir
Volume in drive C has no label.
Volume Serial Number is B408-DB22
Directory of C:\Temp\testing
07/30/2010 08:06 PM .
07/30/2010 08:06 PM ..
07/30/2010 08:06 PM META-INF
07/19/2010 08:21 PM 3,395 TabbedlatinHelp.class
1 File(s) 3,395 bytes
3 Dir(s) 4,523,008,000 bytes free
C:\Temp\testing>
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656