cannot access java lang string class file has wrong version 49.0, shuold be 48.0

cannot access java lang string class file has wrong version 49.0, shuold be 48.0

Post by Dino Bulju » Thu, 07 Oct 2004 01:24:39


HI

I am quite new to java and have noticed some problems with my
NetBeans IDE 3.5.1 after installing j2sdk1.5.0 couple of days ago.

I noticed that all my String variables or methods containg String
keyvord (such as main) get red underlined. When I move mouse coursor
over, it says:

"cannot access java lang string class file has wrong version 49.0,
shuold be 48.0"

My code will compile, but the red underlined String data types are
quite frustrating especially if the code gets large.

My path is set as:
D:\Program Files\Java\jdk1.5.0\bin (which is the directory where my
jdk is stored)
My docs are in:
D:\Program Files\Java\jdk-1_5_0-doc\docs

I haven't notice the same while I was using j2sdk1.4.2
PS I still have j2sdk1.4.2 installed on my machine in different
direcory.

Can somebody help me with this problem please
 
 
 

1. Unable to locate System Class "java\lang\string"

2. lang fatal error LNK1181: cannot open input file '.\Debug\lang.lang.resources'

Hello!

Some background information so you have a chance to answer the question.
I use Windows form (C++) and the IDE is VS2003.
This application deals with Globalization.CultureInfo which mean it can
display two different languages in the GUI.
Because of this Globalization.CultureInfo I must add two different
AssemblyResourceFile(resx) which is added by selecting
File->AddNewItem->AssemblyResourceFile(resx)

Before I add these AssemblyResourceFile(resx) I have no errors when building
the application.
But after I add these AssemblyResourceFile(resx) by selecting
File->AddNewItem->AssemblyResourceFile(resx) and enter a filename for each.

I get link error after having added these AssemblyResourceFile(resx).

The link error say lang fatal error LNK1181: cannot open input file
'.\Debug\lang.lang.resources'

I must do something wrong here. Have you any suggestion?
The project name is lang.

//Tony

3. New fast version of PTLIB for HP-48 (+49/50)

4. Passing java.lang.Class type as an argument to Java method

5. I am having trouble adding a poem....what am I doing wrong?

6. Javadoc including "java.lang.String" instead of just "String" for return values

7. to use import java.lang.* or import java.lang.Math or none at all?

8. java.lang.Set with elements of type java.lang.Set

9. Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object (ant/tomcat/spring)

10. Error occurred during intialization of VM java/lang/NoClassDefFoundError: java/lang/Object

11. modifying java.lang.String.java

12. warning: [deprecation] in java.util.Date(java.lang.String) has been deprecated

13. java.lang.ExceptionInInitializerError: java.lang.ArrayIndexOutOfBoundsException

14. java.lang.ClassFormatError: Truncated class file

15. java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory