I work with a product that requires jdk 1.3. Yet I also need to use jdk 1.4 for other work. I've had jdk 1.3 installed and working fine. I downloaded the 1.4 jdk from sun and installed it. I created a simple hello world app that uses a String split() method in it to confirm that 1.4 is working. I'm able to compile the class ok, but when I run it I get a NoSuchMethodError on the line calling split(). I've set my classpath to have the jdk1.4 before my 1.3 jdk and after. I've taken the 1.3 jdk line out altogether, but nothing seems to work. Any ideas would be greatly appreciated, thanks.
Setting the classpath is not the whole story. If the "java" executable you run is the one from 1.3, it will use the 1.3 libraries no matter what. Make sure that your "path" is set so that you run the 1.3 binaries.
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jan 11, 2002
Thanks for the reply, yep, I switched the path to my 1.4 exe's to the very front of my path and it worked. Thanks for the help, I was always under the impression PATH settings were only for compiling.