Eclipse problem with OpenJDK [SOLVED]
Maseood Raisi
amrmesh at gmail.com
Tue Mar 22 11:04:25 UTC 2011
On 3/19/2011 12:39 AM, Paolo Galtieri wrote:
> On 03/18/11 13:47, Maseood Raisi wrote:
>> On 3/18/2011 11:19 PM, Paolo Galtieri wrote:
>>> On 03/18/11 10:20, Maseood Raisi wrote:
>>>> Hi everybody
>>>> I want to use eclipse-Helios (CPP version) by using fedora 14 but the
>>>> system reports a crash in OpenJDK, how can I solve it?
>>>> I download and install the Oracle-JRE but it continue to run with Openjdk.
>>>> How can I change the default JRE to Oracle-JRE?
>>>> Can using Oracle-JRE solve this problem?
>>>>
>>>>
>>> Maseood,
>>> you just need to go into the Eclipse preferences and specify the
>>> location of the JRE.
>>>
>>> Window->Preferences->Java->Installed JREs
>>>
>>> Paolo
>> before eclipse running, the system shows a crash and close it; so , I
>> can't change the JRE inside the eclipse...
>>
> Try moving the ~/.eclipse directory out of the way first, and then start
> eclipse.
>
> Paolo
After extracting jdk-6u24-linux-*.bin For installing Oracle-JDK use
commands:
alternatives --install /usr/bin/java java
[Oracle-JDK-PATH]/jdk1.6.0_24/jre/bin/java 20000
alternatives --install /usr/bin/javaws javaws
[Oracle-JDK-PATH]/jdk1.6.0_24/jre/bin/javaws/javaws 20000
alternatives --install /usr/bin/javac javac
[Oracle-JDK-PATH]/jdk1.6.0_24/bin/javac 20000
alternatives --install /usr/bin/jar jar
[Oracle-JDK-PATH]/jdk1.6.0_24/bin/jar 20000
For swaping between OpenJDK and Oracle-JDK use commands:
alternatives --config java
alternatives --config javaws
alternatives --config javac
alternatives --config jar
OR
You can specify the jvm in eclipse.ini as well, add following option in
eclipse.ini:
-vm
[Oracle-JDK-PATH]/jdk1.6.0_24/jre/bin/java
--
Maseood Raisi
Tel: (+98) 936-581-3205
Email: amrofr at gmail.com
More information about the users
mailing list