Eclipse: acabo de desinstalar Java 1.7 (todavía tengo Java 1.6 en mi máquina), pero ahora Eclipse no reconocerá ningún elemento de Java

I'm extremely confused about how to set up Java on Eclipse. I don't get how classpath/system variables/etc all works. I set my Java compiler settings from 1.7 to 1.6 after I uninstalled 1.7 (I still have 1.6). But it's still not working. Any help?

preguntado el 09 de marzo de 12 a las 23:03

Have you gone to Window>Preferences and set your compiler compliance level to 1.6? Does your project have a project-specific compiler compliance level? Do your settings point to the correct JRE? -

What do you see in Preferences > Java > Installed JREs? -

@Tim was my post useful? -

2 Respuestas

Open Eclipse. Follow Project => Properties => Java Build Path.

Come onto Bibliotecas tab and on the right hand side you will see some buttons, click Agregar biblioteca.

Seleccionar Biblioteca del sistema JRE and click "Next" button. By clicking on Installed JREs button you will see the JREs that your Eclipse recognizes. If the JRE version is not visible there, you can use "Add" button to add a new JRE, and make sure you set the path of new JRE correctly. Sample path on my machine: C:\Program Files (x86)\Java\jre6

respondido 09 mar '12, 23:03

Probably you have to set up classpath: http://javarevisited.blogspot.com/2011/01/how-classpath-work-in-java.html, or may be you have only JRE (not JDK)?

respondido 09 mar '12, 23:03

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.