This content has been marked as final. Show 3 replies
I have the jdk installed on d:\glassfish3 and am pointing the classpath to d:\glassfish3\jdk7Wrong
(also tried d:\glassfish3\jdk7\jre as well) with no luck.Also wrong.
Try not setting it at all, or else set it to be a list of JAR files including lib/rt.jar.
Thanks. Maybe I should explain a little better.
I am using JBuilder 2006 to my IDE. This environment requires that you put in the path to the JRE/JDK.
I have uninstalled and downloaded the jdk again and this time i'm getting a strange error:
"test.java": cannot access javax.crypto.Cipher; bad class file: D:\Program Files\Java\jre7\lib\jce.jar\javax\crypto\Cipher.class, class file has wrong version 51.0, should be 49.0, Please remove or make sure it appears in the correct subdirectory of the classpath. at line 19, column 21
Now this is strange because i'm using the right library.
Is there something that I'm missing here?
Again, thanks for your help.
This environment requires that you put in the path to the JRE/JDK.Certainly, but that's not the same thing as setting the CLASSPATH.
class file has wrong version 51.0, should be 49.0The class file came from a later version of Java than is being used to compile the pRogram. you have two JDKs installed. Use the later one, maybe even remove the earlier one.