Replacing gcc java with sun java using alternative mechanism
Hi What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism. thanks in advance. -H
My recommendation is to install the jdk somewhere in your home
directory, set JAVA_HOME to point it and add $JAVA_HOME/bin to your
PATH
On 3/22/06, Hugo Garcia
Hi
What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism.
thanks in advance.
-H
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
yeah... that is what I do... but if I coiuld do it system wide then I
could get applications such as JBoss to work with the system wide JDK.
Also, I could then use standard rpm like Ant that are provided by SuSE
whithout having to worry about which java version is being used.
My only wish list for 10.1 is to have an easy standard way to replace
the jdk without breaking stuff. Currently, 10.1 uses the alternative
mechanism.... so... what are the steps to use the alternative
mechanism to install a JDK?
-H
On 3/22/06, Claes at work
My recommendation is to install the jdk somewhere in your home directory, set JAVA_HOME to point it and add $JAVA_HOME/bin to your PATH
On 3/22/06, Hugo Garcia
wrote: Hi
What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism.
thanks in advance.
-H
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hugo Garcia wrote: ...
My only wish list for 10.1 is to have an easy standard way to replace the jdk without breaking stuff. Currently, 10.1 uses the alternative mechanism.... so... what are the steps to use the alternative mechanism to install a JDK?
try /etc/java/java.conf
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
Hugo Garcia wrote:
Hi
What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism.
I don't know if the beta comes with a Sun Java package, but the ones from 10.0 should work fine if it doesn't. You will need jpackage-utils as well. The proper way to changed java/javac is by using update-alternatives --config java and update-alternatives --config javac
On 3/24/06, Marc Benstein
Hugo Garcia wrote:
Hi
What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism.
I don't know if the beta comes with a Sun Java package, but the ones from 10.0 should work fine if it doesn't. You will need jpackage-utils as well.
The proper way to changed java/javac is by using update-alternatives --config java and update-alternatives --config javac
I will try changing using alternatives as you suggest. The problem with the the Java supplied from 10.0 is that Java 1.5 is a JRE which can be used to run Java but NOT for developeing in Java. In essense all Java developers have to hack 10.0 and are always having to resolve conflicts in the system. I am hoping 10.1 does provide a mechamism to change the Java settings. thanks -H
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hugo Garcia wrote:
On 3/24/06, Marc Benstein
wrote: Hugo Garcia wrote:
Hi
What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism. I don't know if the beta comes with a Sun Java package, but the ones from 10.0 should work fine if it doesn't. You will need jpackage-utils as well.
The proper way to changed java/javac is by using update-alternatives --config java and update-alternatives --config javac
I will try changing using alternatives as you suggest.
The problem with the the Java supplied from 10.0 is that Java 1.5 is a JRE which can be used to run Java but NOT for developeing in Java. In
Err.. why? $ rpm -ql java-1_5_0-sun-devel|grep -w javac /usr/lib64/jvm/java-1.5.0-sun-1.5.0_06/bin/javac /usr/share/man/man1/javac-java-1_5_0-sun.1.gz The java-1_5_0-sun-devel package has the javac compiler. It's the same scheme for 1.4.2 and 1.5.0: - - java-VERSION-sun: that's the JRE - - java-VERSION-sun-devel: that's the javac compiler and JNI - - java-VERSION-sun-alsa: ALSA support for the Java Sound API - - java-VERSION-sun-plugin: the Java plugin for browsers (and a few more: -demo, -jdbc, -src) (and where "VERSION" is either "1_4_2" or "1_5_0") Why do you say that Java 5 supplied on SUSE 10.0 is only the JRE ?
essense all Java developers have to hack 10.0 and are always having to resolve conflicts in the system. I am hoping 10.1 does provide a mechamism to change the Java settings.
I really don't see what you mean. Works very well here on 10.0, I have
both 1_4_2 and 1_5_0 installed, and I compile quite a lot of Java code
(and Eclipse, and JBoss, and Tomcat, and Spring, ...).
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
Why do you say that Java 5 supplied on SUSE 10.0 is only the JRE ?
essense all Java developers have to hack 10.0 and are always having to resolve conflicts in the system. I am hoping 10.1 does provide a mechamism to change the Java settings.
I really don't see what you mean. Works very well here on 10.0, I have both 1_4_2 and 1_5_0 installed, and I compile quite a lot of Java code (and Eclipse, and JBoss, and Tomcat, and Spring, ...).
cheers - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
Thank you Pascal. It does work quite well. and with Daniel Bornkessel post on alternative java sources for 10.1, ftp://ftp.gwdg.de/pub/suse/i386/10.1/inst-source-extra/suse/i586 I guess I am all set. -H
On Wednesday 22 March 2006 23:08, Hugo Garcia wrote:
Hi
What is the proper procedure to replace the java implementation supplied with 10.1-b8 with Sun java? If possible I would like to use the alternative mechanism. I am a newbie with the alternative mechanism.
thanks in advance.
-H
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
Grab the packages from ftp://ftp.gwdg.de/pub/suse/i386/10.1/inst-source-extra/suse/i586 for switching between different Java versions use (as root): update-alternatives --config java update-alternatives --config javac (for JDK) as already mentioned in another posting. Greetings,+ -- Daniel Bornkessel Tel: +49 911 740 53 161 Novell :: SUSE R&D :: Internal Tools / Java Packaging ______________________________________________________________________ [====================================== ] SL 10.1 in: t=-1398885s
participants (5)
-
Claes@work
-
Daniel Bornkessel
-
Hugo Garcia
-
Marc Benstein
-
Pascal Bleser