This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I'm a bit confused because you mention trying to run a jar file, but the command you posted does not reference that jar file. I would expect the command to be something like "java -jar runme.jar".
Perhaps it would help if you list files in your jar:
and you should see: suncertify/client/Main.class
You are mentioning 'code' directory, which suggest, that you perhaps packed your jar file from sources and not from classes. (in my assignment, I should put sources in 'code' dir)
John Stone
Ranch Hand
Joined: May 04, 2007
Posts: 332
posted
0
One more thing: You shouldn't need any classpath settings besides standard java libraries. I also suggest before submission to run it on different pc without any sources/classes,.. just the jar file.
David Khoi Pham
Greenhorn
Joined: Jun 20, 2007
Posts: 15
posted
0
When I ran the command to list out files, I got this:
[ August 23, 2007: Message edited by: David Khoi Pham ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
9
posted
0
920 Wed Aug 22 19:02:12 CDT 2007 code/suncertify/client/Main.class
There's your problem: all clases are inside of the code directory. If the package name is "suncertify.client", then the suncertify directory must be at the top level of the jar file, not inside some other directory.
David Khoi Pham
Greenhorn
Joined: Jun 20, 2007
Posts: 15
posted
0
Thank you!
I fixed the problem!
Is it okay if I have code, docs, and suncertify (this is the extra) directories?
John Stone
Ranch Hand
Joined: May 04, 2007
Posts: 332
posted
0
I think you don't need to put all docs, etc. in runme.jar