Eclipse and openJDK

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Eclipse and openJDK

Postby xyz » Thu Mar 29, 2012 22:46

Hello,
I only can find eclipse-ecj-3.7.1 which is probably not the eclipse IDE.

How can I install eclipse IDE and openJDK?

Thank you in advance.
xyz
Young Hen
 
Posts: 39
Joined: Wed Mar 28, 2012 10:09

Re: Eclipse and openJDK

Postby joost » Fri Mar 30, 2012 7:19

eclipse-sdk
User avatar
joost
Sagely Hen
 
Posts: 2313
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: Eclipse and openJDK

Postby xyz » Fri Mar 30, 2012 10:40

Too bad that it is no the latest one.

Any plans to include/replace oracle java with openJDK?
xyz
Young Hen
 
Posts: 39
Joined: Wed Mar 28, 2012 10:09

Re: Eclipse and openJDK

Postby micia » Fri Mar 30, 2012 12:35

You can use the eclipse you normally download from its homepage, since it doesn't require any installation :)

Sabayon does use openJDK rather than Sun/Oracle JDK, but you can still use the proprietary java implementation if you want.
User avatar
micia
Sagely Hen
 
Posts: 2710
Joined: Wed Nov 26, 2008 16:41

Re: Eclipse and openJDK

Postby xyz » Wed Apr 11, 2012 7:44

Thank you.

I installed oracle-jdk-bin-1.7.3 but got the following error:
$ java
* Home for VM 'sun-jdk-1.6' does not exist: /usr/lib/jvm/sun-jdk-1.6
* Invalid System VM: sun-jdk-1.6

I can not find the update-alternatives –config java described here http://www.linuxnix.com/2010/12/how-to- ... linux.html

What did I do wrong.
xyz
Young Hen
 
Posts: 39
Joined: Wed Mar 28, 2012 10:09

Re: Eclipse and openJDK

Postby camelinahat » Wed Apr 11, 2012 13:25

SL Does not use the update-alternatives. Instead we use eselect from Gentoo. To update your Java virtual machine, as root you need to run:
Code: Select all
# eselect java-vm list

Determine the correct option for the JavaVM you want to use, and then use:
Code: Select all
# eselect java-vm set <number>

If you want to change the java-vm plugin that is used by your browsers, you will also need to do the same with java-nsplugin.
User avatar
camelinahat
Baby Hen
 
Posts: 10
Joined: Wed Mar 21, 2012 14:01
Location: Cape Breton, NS Canada

Re: Eclipse and openJDK

Postby xyz » Sat Apr 14, 2012 11:28

Thank you it is working. However, why I got before I had not java installed the following massage:

$ java
* Home for VM 'sun-jdk-1.6' does not exist: /usr/lib/jvm/sun-jdk-1.6
* Invalid System VM: sun-jdk-1.6


and not
$ java
bash: java: command not found

?

Why I getting the following error massages:

$ eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/emul-linux-x86-java-1.6: No such file or directory
grep: /usr/share/java-config-2/vm/icedtea-6: No such file or directory
grep: /usr/share/java-config-2/vm/icedtea6-bin: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.6: No such file or directory

[1] emul-linux-x86-java-1.6
[2] icedtea-6
[3] icedtea6-bin
[4] icedtea-7
[5] icedtea-bin-6
[6] oracle-jdk-bin-1.7
[7] sun-jdk-1.6 system-vm


and why sun-jdk-1.6 is system-vm I did not installed it?

Are these bugs?

$ eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/emul-linux-x86-java-1.6: No such file or directory
grep: /usr/share/java-config-2/vm/icedtea-6: No such file or directory
grep: /usr/share/java-config-2/vm/icedtea6-bin: No such file or directory
grep: /usr/share/java-config-2/vm/sun-jdk-1.6: No such file or directory
[1] emul-linux-x86-java-1.6
[2] icedtea-6
[3] icedtea6-bin
[4] icedtea-7
[5] icedtea-bin-6
[6] oracle-jdk-bin-1.7
[7] sun-jdk-1.6 system-vm

$ eselect java-vm set user 6
$ su
# eselect java-nsplugin set 64bit oracle-jdk-bin-1.7
xyz
Young Hen
 
Posts: 39
Joined: Wed Mar 28, 2012 10:09


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests