Jdk 1.6 will not compile: cannot access java.lang.Object
- From: rzeira@xxxxxxxxxxx
- Date: Thu, 17 Jan 2008 07:11:31 -0800 (PST)
Hi all,
I just installed Jdk 1.6 update 4 and tried my first compilation. I
compiled something that previously compiled easily. However, with Jdk
1.6 I got the error:
SomeFile.java:45: cannot access java.lang.Object
bad class file: C:\Tools\Jdk16\jre\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of
the classpath.
private UserRec currRec = null;
I compile directly with javac from a DOS prompt. I tried to compile
few other files and got the same results.
Please help!
.
- Follow-Ups:
- Re: Jdk 1.6 will not compile: cannot access java.lang.Object
- From: Juha Laiho
- Re: Jdk 1.6 will not compile: cannot access java.lang.Object
- Prev by Date: Re: CFP: 8th International Conference on Hybrid Intelligent Systems (HIS 2008)
- Next by Date: Re: Jdk 1.6 will not compile: cannot access java.lang.Object
- Previous by thread: CFP: 8th International Conference on Hybrid Intelligent Systems (HIS 2008)
- Next by thread: Re: Jdk 1.6 will not compile: cannot access java.lang.Object
- Index(es):
Relevant Pages
|