I have downloaded the full eclipse for C++ in Ubuntu 9.2 (running on virtual box). However whenever I am trying to run ./eclipse I get a Java exception as:

Exception in thread "main" java.lang.InternalError: Expected reflection field doesn't exist at java.lang.VMClass.getDeclaredConstructors(Native Method) at java.lang.Class.getDeclaredConstructors(Class.java:430) at java.lang.Class.newInstance(Class.java:1116) at java.util.logging.LogManager.createInstance(LogManager.java:854) at java.util.logging.LogManager.readConfiguration(LogManager.java:572)
at java.util.logging.LogManager.readConfiguration(LogManager.java:527) at java.util.logging.LogManager.initLogManager(LogManager.java:203)
at java.util.logging.LogManager.getLogManager(LogManager.java:168)
at java.util.logging.Logger.getLogger(Logger.java:252) at java.util.logging.Logger.getLogger(Logger.java:211) at java.util.logging.Logger$1.run(Logger.java:94) at java.security.AccessController.doPrivileged(AccessController.java:96) at java.util.logging.Logger.(Logger.java:90) at gnu.java.util.jar.JarUtils.(JarUtils.java:65) at java.util.jar.Manifest.read(Manifest.java:162) at java.util.jar.Manifest.(Manifest.java:89) at java.util.jar.JarFile.readManifest(JarFile.java:303) at java.util.jar.JarFile.(JarFile.java:202) at java.util.jar.JarFile.(JarFile.java:181) at jamvm.java.lang.JarLauncher.main(JarLauncher.java:33)

Am I missing anything ? My /usr/bin/java version is 1.5.0 and jamvm version is 1.5.3. My jre version seems to be 1.6.

link|improve this question

38% accept rate
how did you install eclipse? – fossfreedom Aug 3 '11 at 5:07
@fossfreedom, I am just trying to run ./eclipse. So a window is popped up with the same exception. – iammilind Aug 3 '11 at 5:12
understand - just trying to understand the "download" part of your question. Did you install via software center or did you download eclipse as a .tar.gz file and uncompress it etc? – fossfreedom Aug 3 '11 at 5:16
@fossfreedom, I downloaded the .tar.gz and untar-unzipped it. Then I tried to run ./eclipse. At first it was giving error as Java was not present. So I installed java (jamvm) and then I did java -version. It showed that it's in place. JRE is also 1.6 (but you can let me know the command to check it). Then again tried to run .eclipse and getting this runtime error. – iammilind Aug 3 '11 at 5:20
1  
... I posted an answer - then I realised "Ubuntu 9.2" part of your question - what is that? Do you mean 9.04 or 9.10? If you are using a VM - then use 11.04. Then installation will be very much easier! – fossfreedom Aug 3 '11 at 5:33
show 1 more comment
feedback

closed as too localized by jrg Feb 23 at 21:02

This question is unlikely to ever help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. See the FAQ for guidance on how to improve it.

1 Answer

Not sure about your problem. But have you tried to follow https://help.ubuntu.com/community/EclipseIDE ? I never install Eclipse in Ubuntu before 10.04.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.