[fedora-java] JRE not recognised in eclipse IDE

Adam Young ayoung at redhat.com
Mon Jun 13 13:11:42 UTC 2011


>> I installed eclipse-platform-3.5.2-2.fc13.x86_64 on Fedora 13.
>> Java has been installed on the system.
>> ca1 at localhost ~]$ java -version
>> java version "1.6.0_18"
>> ......
>>
>> But, Java runtime is not recognised in the Eclipse IDE.
>> Under Menu....... Window>Preferences there are no installed JREs options.
>> Also, no Java project, class options in the menu is available.
>>
> Hello, you want eclipse-jdt and java-1.6.0-openjdk-devel;
> and pls dont use html formatted messages ;)
> Cheers
>
Spent a little bit of time chasing this down myself last night with  
akurtakov and hicham.  It is looking like a  32 vs 64 bit issue:  I have 
no Java support on 64 bit, but they both have it working on 32.  THis is 
on F15 with all of the openjdk RPMs installed as well as eclipse-jdt.

I ran eclipse and saw no Java support (no Java perspective, and 
File->new->Project didn't have Java as an option.)

Tried removing ~/.eclipse.  No difference
Tried uninstalling all of the rpms, making sure that there was no 
/etc/eclipse.conf,  and the workspace was gone as well as no 
~/.eclipse.  No difference.

We saw a strange side effect, which was that, once I removed the babel 
rpm  (eclipse-nls.noarch)  and then deleted the directory under 
/usr/share/eclipse, I was getting an OSGi error that it couldn't find 
the repo.  Might have been a red herring, but it seems indicative of a 
dependecy that isn't fully separated out.

If I run from the upstream tarball, I can see a plugin listed under 
help->about...->Installation Details->Plugins

called org.eclipse.jdt.core and org.eclipse.jdt.ui

But the (not working) RPM version does not have these plugins listed.

I'm guessing that this is a problem at the OSGi layer, that the plugins 
are not getting activated.


Does anyone have a working Fedora Eclipse on 64 bit?


I have the following installed.

[ayoung at ayoung ~]$ rpmquery -a | grep eclipse
icu4j-eclipse-4.2.1-2.fc15.x86_64
eclipse-swt-3.6.2-5.fc15.x86_64
eclipse-platform-3.6.2-5.fc15.x86_64
eclipse-jdt-3.6.2-5.fc15.x86_64
tomcat5-jasper-eclipse-5.5.31-3.fc15.noarch
eclipse-rcp-3.6.2-5.fc15.x86_64

[ayoung at ayoung ~]$ rpmquery -a | grep openjdk
java-1.6.0-openjdk-src-1.6.0.0-57.1.10.1.fc15.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-57.1.10.1.fc15.x86_64
java-1.6.0-openjdk-1.6.0.0-57.1.10.1.fc15.x86_64
java-1.6.0-openjdk-javadoc-1.6.0.0-57.1.10.1.fc15.x86_64
java-1.6.0-openjdk-demo-1.6.0.0-57.1.10.1.fc15.x86_64






More information about the java-devel mailing list