Classes.zip and javah

G

greyham433

I'm having a problem with using javah for the simple hello world
program as given on the Sun tutorial site. I can compile my .java file
but then I enter at the prompt:
javah -jni HelloWorld

and it gives the error:

java.lang.Object not found: aborting

I've looked at other posts about this issue and a file classes.zip has
come up where they say to add the path to the file to the CLASSPATH but
it doesn't make any difference. Currently my CLASSPATH is:

..;C:\Documents and Settings\greyham\My Documents\

I have also tried the command:
clspack -auto

but I get the error message:

Cannot open C:\WINNT\java\classes\Classes.zip for output
Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top