From: Alan W. I. <ir...@be...> - 2001-10-21 01:48:59
|
I tried plplot java with both the IBM jdk and Blackdown version. (Both are version 1.1.8.) (BTW, kaffe is not a complete JDK so it is out of the running.) Both the IBM and Blackdown versions worked with no problems up to and including make jdemos. After that, however, no example would work. Here was my environment (for the Blackdown version. The IBM version was the same except for JAVA_HOME.) pwd /home/software/plplot_cvs/HEAD/plplot/tmp printenv JAVA_HOME /usr/lib/jdk1.1/ printenv CLASSPATH java Note I also tried this as an absolute path and it did not work. printenv LD_LIBRARY_PATH /home/software/plplot_cvs/HEAD/plplot/tmp ls java/plplot/examples/ x01.class* x04.java@ x08.class* x11.java@ x15.class* x18.java@ x01.java@ x05.class* x08.java@ x12.class* x15.java@ x19.class* x02.class* x05.java@ x09.class* x12.java@ x16.class* x19.java@ x02.java@ x06.class* x09.java@ x13.class* x16.java@ x03.class* x06.java@ x10.class* x13.java@ x17.class* x03.java@ x07.class* x10.java@ x14.class* x17.java@ x04.class* x07.java@ x11.class* x14.java@ x18.class* Here is the error message when I attempted to execute the first example. java plplot/examples/x01 Invalid class name: plplot/examples/x01 Usage: java [-options] class . . . To test that my jdk was working, I compiled the following incredibly complicated programme: ************** class HelloWorld { public static void main(String args[]) { System.out.println("Hello World!"); } } javac compiled it and java ran it without problems. I also tried appletview on several rather complicated examples such as molecule viewing, etc. They all worked. Thus, I am stumped why plplot java does not work for me when I believe I have followed Geoffrey's cookbook exactly. But wait.... After thinking about that last sentence I tried moving my hello world programme around. If I execute it as java HelloWorld (i.e., no partial path before HelloWorld and with CLASSPATH set to the *entire path*) it works fine. But any attempt to have a partial pathname with it, e.g., setenv CLASSPATH /home; java irwin/HelloWorld produces the same bad symptoms as above. So for my version of java it seems no partial path can be part of the class name when java executes a class. Armed with that knowledge, I tried setenv CLASSPATH java/plplot/examples java x03 Error loading class x03: Wrong name so clearly this "full CLASSPATH" strategy isn't the whole answer. Do you have any ideas how to overcome these CLASSPATH problems, Geoffrey? Does JDK-1.1.8 have a limitation that your JDK does not have? Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ |