I have a class that inherits JFrame, and should call a few native
methods. The problem is basically that javah seems to find only the
basic classes( /usr/local/java/lib/classes.zip ). The compilation to
bytecodes work excellent, but when running javah, I get
"NotfoundException with detail /javax/swing/JFrame". I tried to run
javah -v, and saw that java.lang and so on was loaded correctly, but the
swing components failed. Since the basic classes are zipped, and swing
is in jar-archives, I tried to unjar the archive swing.jar and then zip
it. Maybee javah was unable to read jar-archives? I moved swing.jar.
Again, javac worked, but javah can't find the classes. I use swing
1.1.1-beta1 and JDK 1.1.7. I know that my $CLASSPATH are correct.

Can this be fixed, or must I separate the program into two classes?

Grateful for help
//Olof Wolgast


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to