Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have probably removed some classes that I shouldn't have removed, because when I'm making a project in eclipse, everything works fine when I set my project to use java SE 1.5, but when I try to use version 1.6, it says the type 'java.lang.object' cannot be resolved. rerunning the java installation package doesn't wrk, how can I fix this?

the output of the ls command someone requested in the comments:

total 64
lrwxr-xr-x   1 root  wheel    5 18 mrt 16:03 1.3 -> 1.3.1
drwxr-xr-x   3 root  wheel  102 14 jan  2008 1.3.1
lrwxr-xr-x   1 root  wheel    5  5 sep  2010 1.4 -> 1.4.2
lrwxr-xr-x   1 root  wheel    3 25 mrt  2010 1.4.1 -> 1.4
drwxr-xr-x   8 root  wheel  272 23 jul  2009 1.4.2
lrwxr-xr-x   1 root  wheel    5 18 mrt 16:03 1.5 -> 1.5.0
drwxr-xr-x   8 root  wheel  272 23 jul  2009 1.5.0
lrwxr-xr-x   1 root  wheel    5 18 mrt 16:03 1.6 -> 1.6.0
lrwxr-xr-x   1 root  wheel   59 18 mrt 16:03 1.6.0 -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
drwxr-xr-x  10 root  wheel  340 18 mrt 16:03 A
lrwxr-xr-x   1 root  wheel    1 18 mrt 16:03 Current -> A
lrwxr-xr-x   1 root  wheel    3 18 mrt 16:03 CurrentJDK -> 1.5

the java settings utilityenter image description here

share|improve this question

migrated from stackoverflow.com Jun 23 '11 at 17:02

This question came from our site for professional and enthusiast programmers.

    
Please do a 'ls -l /System/Library/Frameworks/JavaVM.framework/Versions/' in terminal and post your output. –  ZeroPage Jun 23 '11 at 13:50
    
I am assuming you tried uninstalling before reinstalling? –  sealz Jun 23 '11 at 13:51
    
doing that now. –  bigblind Jun 23 '11 at 13:55
    
Looks normal too me, you could register as an apple developer (it's free) and then get access to developer.apple.com/java/download where you can download java for reinstallation. –  ZeroPage Jun 23 '11 at 14:05
    
Btw, have you tried to change your java runtime with the /Applications/Utilities/Java Preferences.app ? –  ZeroPage Jun 23 '11 at 14:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.