> Perhaps you could post your jar file on the web somewhere. I have no
> clue what you are doing here.
It was just an error with the manifest. I included the .class suffix in
the Main-Class :(
works now :)
thufir@arrakis:~/java/build$
thufir@arrakis:~/java/build$ java -jar foo.jar
Run CPTest2.main()
thufir@arrakis:~/java/build$
thufir@arrakis:~/java/build$ cat META-INF/MANIFEST.MF
Manifest-Version: 1.0
Created-By: 1.6.0_03 (Sun Microsystems Inc.)
Main-Class: com.web_tomorrow.CPTest2
thufir@arrakis:~/java/build$
thufir@arrakis:~/java/build$
-Thufir
>http://hawat.thufir.googlepages.com/foo.jar
I had a look in your jar. I examined it with Jarlook:
see http://mindprod.com/products1.html#JARLOOK
META-INF/
META-INF/MANIFEST.MF
com/web_tomorrow/CPTest1.class
com/web_tomorrow/CPTest2.class
It looked like one of mine except you don't have what I would consider
a legit package name. See http://mindprod.com/jgloss/package.html
I would have used a 3-part name like
com.web_tomorrow.cp
Which presumes you are the proud owner of web_tomorrow.com
Your manifest looks like this:
Manifest-Version: 1.0
Created-By: 1.6.0_03 (Sun Microsystems Inc.)
Main-Class: com.web_tomorrow.CPTest2.class
Here is what one of my manifests look like:
Manifest-Version: 1.0
Created-By: Jakarta Ant 1.7.0 (December 13 2006)
Main-Class: com.mindprod.bio.Bio
Name: com/mindprod/common11/Limiter.class
Last-Modified: Thu, 20 Mar 2008 15:58:29 PDT
Content-Location: E:\com\mindprod\common11\Limiter.class
...
with an entry for each class.
The problems include:
1. you appended .class where you should not.
2. You are missing entries for all the other classes.
See http://mindprod.com/jgloss/ant.html for how to build your manifest
properly or http://mindprod.com/jgloss/jarexe.html and
http://mindprod.com/jgloss/jar.html
for how to do it the old fashioned way.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Thufir - 21 Mar 2008 23:53 GMT
> The problems include:
> 1. you appended .class where you should not. 2. You are missing entries
[quoted text clipped - 4 lines]
> http://mindprod.com/jgloss/jar.html
> for how to do it the old fashioned way.
Thanks for checking it out :)
the java code, and the example, comes from:
http://www.kevinboone.com/classpath.html
It's working sufficiently that I didn't realize that entries for other
classes are missing, thanks for pointing that out.
-Thufir