Community
Participate
Working Groups
Build Identifier: Indigo 20110615-0604 I've had a terrible time with Eclipse lately. I use Glassfish and Eclipse to build webapps and after Glassfish 3.1.1 was installed 2 weeks ago, the problems began. At this point, I've wiped out GF and Eclipse and started over. I installed Indigo this week and when I go into the Windows->Preferences->Java->Installed JRE's, I get the message "Could not find the main class org.eclipse...LibraryDetector. I could not find that class in my installed jars. I then removed Indigo, cleaned my PC again, and tried to install Helios. The problem there is much worse. There I get An error has occurred. See the log file which tells me: java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:617) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) Please help! I'm using Windows Vista Reproducible: Always Steps to Reproduce: 1. See above 2. 3.
Which file did you download? What is its name? Where did you unzip it? Where is your Java runtime installed?
Either try a clean drop from http://download.eclipse.org/eclipse/downloads/ or an EPP from http://www.eclipse.org/downloads/ .
Also, make sure that the JRE bits (32 vs 64) match your download.
Hi guys! Sorry it's taken so long, but I wanted to explore further my situation based on your comments. I've attached a file with screen shots and I get the error message shown on the screen shot every time I go to Windows->Preferences->Java->Installed JRE's. The file I downloaded was the ZIP file from http://www.eclipse.org/downloads/eclipse-jee-indigo-win32.zip Pertinent Settings—I set these settings based on values from my PC at work which is working fine with Helios: JAVA_HOME: C:\Program Files\Java\jre6 Path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_18\bin CLASSPATH: None Steps to reproduce: 1.Remove .metadata directory 2.Remove \Users\<user>\.eclipse directory 3.Download Eclipse and unzip into a c:\Downloads\Eclipse directory. 4.Copy the Ecliipse unzipped directory to c:\Program Files directory. 5.Start Eclipse using the command line: "C:\Program Files\eclipse\eclipse.exe" -Data c:/webprojects
Created attachment 201961 [details] Screen Shots and other pertinent info
>1.Remove .metadata directory This basically destroys your workspace. If you then try to run that workspaces this is doomed to fail. Please try with a fresh workspace.
I realize that I'll have to re-create my projects and that's not a problem for me. The .metadata directory is created by Eclipse the first time it's run after I remove it. Figured that was working as designed. How would you recommend that I create a "fresh workspace"? Also, could you advise how I check my Eclipse directory for the presence of LibraryDetector?
(In reply to comment #7) > How would you recommend that I create a "fresh workspace"? Just point it at a non-existing folder and let Eclipse handle the creation. > Also, could you advise how I check my Eclipse directory for the presence of > LibraryDetector? What is the full trace of the error where it complains about not finding LibraryDetector?
> Just point it at a non-existing folder and let Eclipse handle the creation. So removing .metadata is essentially the same thing..... > > Also, could you advise how I check my Eclipse directory for the presence of > > LibraryDetector? > > What is the full trace of the error where it complains about not finding > LibraryDetector? Which file would contain the error? I looked in Users\myname\.eclipse....lots of files! I see the message from a popup dialog which I've included in my attachment.
(In reply to comment #9) > > Just point it at a non-existing folder and let Eclipse handle the creation. > > So removing .metadata is essentially the same thing..... Generally speaking, yes. However, since there may be project folders lying around, if you were to create a new project again Eclipse may detect those folders and reuse the settings inside those projects. > Which file would contain the error? The workspace/.metadata/.log file is your workspace's log file. > I see the message from a popup dialog which I've included in my > attachment. Your attachment is a Word document and I am having problems viewing it. Please use an alternate format or just attach the screenshots to this bug directly instead of embedding them inside a document.
> > > Just point it at a non-existing folder and let Eclipse handle the creation. > > > > So removing .metadata is essentially the same thing..... OK, no problem. I'll have to reset my env again to do this. Will tackle that tonight. > > Generally speaking, yes. However, since there may be project folders lying > around, if you were to create a new project again Eclipse may detect those > folders and reuse the settings inside those projects. > > > Which file would contain the error? > > The workspace/.metadata/.log file is your workspace's log file. > > > I see the message from a popup dialog which I've included in my > > attachment. > > Your attachment is a Word document and I am having problems viewing it. Please > use an alternate format or just attach the screenshots to this bug directly > instead of embedding them inside a document. Actually, I'm using OpenOffice.org saving files as MS Word's doc format. NP, I'll either put it into a JPG. FMI, how can I attach a screenshot into bugzilla? That'd be useful at work for sure!
(In reply to comment #11) > how can I attach a screenshot into > bugzilla? The same way you attached the Word document to Bugzilla.
(In reply to comment #12) > (In reply to comment #11) > > how can I attach a screenshot into > > bugzilla? > > The same way you attached the Word document to Bugzilla. OK, so basically I have to save a windows screen shot to a JPG or other graphic file and then attach that....Cause I don't see how I can paste a clipboard image into Bugzilla. See the 2 images I just attached. To reproduce, I created a new shortcut icon pointing to a nonexistent -data c:\test directory, started Eclipse, opened Window->Preferences->Java->Installated JRE's. That's when the error appears.
Created attachment 202040 [details] Empty Installed JRE's
Created attachment 202041 [details] Error after Installed JRE dialog appears
Here's the log results from the above comment: !SESSION 2011-08-23 18:36:44.660 ----------------------------------------------- eclipse.buildId=I20110613-1736 java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product -Xmx512M Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -Xmx512M -data c:\test !ENTRY org.eclipse.jdt.launching 4 4 2011-08-23 18:40:26.687 !MESSAGE Failed to retrieve default libraries for C:\Program Files\Java\jre6
(In reply to comment #13) > OK, so basically I have to save a windows screen shot to a JPG or other graphic > file and then attach that....Cause I don't see how I can paste a clipboard > image into Bugzilla. Sounds like you are not using the web browser to interface with Eclipse then. Do you get the same problem when you get a download from here? http://download.eclipse.org/eclipse/downloads/
Can you please try with a build from http://download.eclipse.org/eclipse/downloads/ ?
>!ENTRY org.eclipse.jdt.launching 4 4 2011-08-23 18:40:26.687 >!MESSAGE Failed to retrieve default libraries for C:\Program Files\Java\jre6 This indicates that your JRE is broken or corrupt. Please download a new Oracle Java JDK 6 and start eclipse using the -vm argument, so that you are sure that this JDK is used, e.g. eclipse.exe -vm c:\java\jdk6\....
(In reply to comment #19) The LibraryDetector class resides in <path to your eclipse install>\eclipse\plugins\org.eclipse.jdt.launching_<version>.jar and is used to print out the details of a given JRE (JDK). > >!ENTRY org.eclipse.jdt.launching 4 4 2011-08-23 18:40:26.687 > >!MESSAGE Failed to retrieve default libraries for C:\Program Files\Java\jre6 If for some reason we cannot run the LibraryDetector class (as was reported), we will fail to populate the installed JRE infos and print the mentioned message - so there might in fact be nothing wrong with his JRE (JDK) just the fact that his Eclipse install is busted and is missing the launchingsupport.jar file. For more information on exactly how we run LibraryDetector please see StandardVMType#generateLibraryInfo(..) Lowering the severity as this is sounding more and more like a configuration issue and not a bug.
(In reply to comment #20) > (In reply to comment #19) > > The LibraryDetector class resides in <path to your eclipse > install>\eclipse\plugins\org.eclipse.jdt.launching_<version>.jar and is used to > print out the details of a given JRE (JDK). > > > >!ENTRY org.eclipse.jdt.launching 4 4 2011-08-23 18:40:26.687 > > >!MESSAGE Failed to retrieve default libraries for C:\Program Files\Java\jre6 > > If for some reason we cannot run the LibraryDetector class (as was reported), > we will fail to populate the installed JRE infos and print the mentioned > message - so there might in fact be nothing wrong with his JRE (JDK) just the > fact that his Eclipse install is busted and is missing the launchingsupport.jar > file. > > For more information on exactly how we run LibraryDetector please see > StandardVMType#generateLibraryInfo(..) > > Lowering the severity as this is sounding more and more like a configuration > issue and not a bug. Thank you, Michael....That's the info I needed. I do have the jar file <path to your eclipse install>\eclipse\plugins\org.eclipse.jdt.launching_<version>.jar. My version # is 3.6.0v2010509 while all the other jar files are 3.7.0vxxxx. Let me know if it'd help for me to attach the zip file to this bug. As an update, I finally got Java JDK 1.6.27 installed. Checked my java configs and all looks well..still need to test with the -vm in the startup command.
Here's an update. Still not resolved, but here are the steps Ive taken since last responding. I've installed Java 1.6.0.27 JDK and JRE and uninstalled all other versions. I've also gone thru regedit (Windows registry editor) and cleaned out anything Java related that's not version 1.6.0.27. Making sure the system path points to the JDK 1.6.0.27/bin folder, I can open a DOS window and enter java -version and javac - version. Both give me 1.6.0.27. The JAVA_HOME setting is also pointing to the JDK 1.6.0.27 folder. I then deleted the .eclipse directory in my User directory as well as the -data directory. I aslo reloaded the Eclipse installation folder just to be sure previous tests hadn't corrupted it. Using -vm <java 1.0.27 directory>/bin, I started Eclipse. It comes up fine but when I go to Windows->Preferences->Java->Installed JRE's, the LibraryDetector message appears. If I stop Eclipse and restart it, it'll do the same thing when I go to the Installed JRE's folder. But, while Eclipse is open, the message doesn't appear again. Also, the Installed JRE's dialog appears with the JDK 1.6.0.27 already set as the default. I know I haven't spoken of this before, but it was the reason I started on this upgrade journey to start with. I use Glassfish as a server for my J2EE development and when I try to start it, it fails telling me that port 1114848 is out of range. At one point, I think I was able to get past this message by going back to version 3.1 from 3.1.1. From your perspective, is Eclipse Indigo compatible with Glassfish 3.1.1.? I'll repeat my glassfish installation steps again overnight just to be sure I somehow didn't go back on version 3.1.1. But, from what I've read, Eclipse cannot read the domain.xml configuration file and that's the reason for the 1114848 and 1118080 ports. Let me know if you'd like a new bug for this one!
GM all! A new day dawns with the LibraryDetector problem resolved. There was a path to an unused JRE for another product (QT) that preceeded my path to the 1.6.0.27 version of the JRE/JDK. The error message for the LibraryDetector no longer appears. Yesterday, I wrote: I know I haven't spoken of this before, but it was the reason I started on this upgrade journey to start with. I use Glassfish as a server for my J2EE development and when I try to start it, it fails telling me that port 1114848 is out of range. At one point, I think I was able to get past this message by going back to version 3.1 from 3.1.1. From your perspective, is Eclipse Indigo compatible with Glassfish 3.1.1.? I'll repeat my glassfish installation steps again overnight just to be sure I somehow didn't go back on version 3.1.1. But, from what I've read, Eclipse cannot read the domain.xml configuration file and that's the reason for the 1114848 and 1118080 ports. Let me know if you'd like a new bug for this one! Last night I reloaded GF 3.1 (not 3.1.1) and the port problem still persisted. Do you want a new bug for it so this one can be marked fixed/invalid?????
(In reply to comment #23) > GM all! A new day dawns with the LibraryDetector problem resolved. There was a > path to an unused JRE for another product (QT) that preceeded my path to the > 1.6.0.27 version of the JRE/JDK. The error message for the LibraryDetector no > longer appears. Thanks for reporting back gbarnard, glad to hear you got it working! > Last night I reloaded GF 3.1 (not 3.1.1) and the port problem still persisted. > Do you want a new bug for it so this one can be marked fixed/invalid????? Glassfish is not developed by Eclipse, you would have to file a bug with them. Since this turned out to be a configuration issue, closing as WORKSFORME