SDB:Installing Java - openSUSEIs this article the best way to instal Oracle Jdk ? Or is it a best attempt ?
It it seems untenably long. Has anyone installed in a more maintainable method?
SDB:Installing Java - openSUSEIs this article the best way to instal Oracle Jdk ? Or is it a best attempt ?
It it seems untenably long. Has anyone installed in a more maintainable method?
On 2013-10-18 11:16, flebber wrote:
>
> ‘SDB:Installing Java - openSUSE’
> (http://en.opensuse.org/SDB:Installing_Java)Is this article the best way
> to instal Oracle Jdk ? Or is it a best attempt ?
Er… excuse me, but… how is this related to programming-scripting,
which is the theme of this forum?
I think you should request a moderator to move this post to the
applications forum.
> It it seems untenably long. Has anyone installed in a more maintainable
> method?
The article explains more than one method. No other known way.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
For most users’s needs openjdk that is present in openSUSE repos should be good enough to run applets and LibreOffice
If openJDK is not good enough and you want to run jars/LibreOffice and browser applets then you need JRE alone
Start here :- SDB:Installing Java - openSUSE
If you want to develop using java start here :- SDB:Installing Java - openSUSE
for developing using openjdk install openjdk-devel package
I am programming with Java and need the Java JDK, that wouldn’t fit in Applications as my goal with the question is to program Java on Opensuse using the Oracle JDK.
If you want to develop using java start here :- SDB:Installing Java - openSUSE
Yes that seems the main method.
Thinking I should create a bash script for this, is anyone good at bash scripting who could tell me what would be a good way to make the script adapatable to versions for upgrading.
What I mean is:
For the first section of commands
sudo mkdir /usr/lib64/jvm-exports/jdk_Oracle
cd /usr/lib64/jvm-exports/jdk_Oracle
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar jaas-1.7.0_Orac.jar
sudo ln -s jaas-1.7.0_Orac.jar jaas-1.7.0.jar
sudo ln -s jaas-1.7.0_Orac.jar jaas.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/jce.jar jce-1.7.0_Orac.jar
sudo ln -s jce-1.7.0_Orac.jar jce-1.7.0.jar
sudo ln -s jce-1.7.0_Orac.jar jce.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar jdbc-stdext-1.7.0_Orac.jar
sudo ln -s jdbc-stdext-1.7.0_Orac.jar jdbc-stdext-1.7.0.jar
sudo ln -s jdbc-stdext-1.7.0_Orac.jar jdbc-stdext-3.0.jar
sudo ln -s jdbc-stdext-1.7.0_Orac.jar jdbc-stdext.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar jndi-1.7.0_Orac.jar
sudo ln -s jndi-1.7.0_Orac.jar jndi-1.7.0.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar jndi-cos-1.7.0_Orac.jar
sudo ln -s jndi-cos-1.7.0_Orac.jar jndi-cos-1.7.0.jar
sudo ln -s jndi-cos-1.7.0_Orac.jar jndi-cos.jar
sudo ln -s jndi-1.7.0_Orac.jar jndi.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar jndi-ldap-1.7.0_Orac.jar
sudo ln -s jndi-ldap-1.7.0_Orac.jar jndi-ldap-1.7.0.jar
sudo ln -s jndi-ldap-1.7.0_Orac.jar jndi-ldap.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar jndi-rmi-1.7.0_Orac.jar
sudo ln -s jndi-rmi-1.7.0_Orac.jar jndi-rmi-1.7.0.jar
sudo ln -s jndi-rmi-1.7.0_Orac.jar jndi-rmi.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/jsse.jar jsse-1.7.0_Orac.jar
sudo ln -s jsse-1.7.0_Orac.jar jsse-1.7.0.jar
sudo ln -s jsse-1.7.0_Orac.jar jsse.jar
sudo ln -s /usr/lib64/jdk_Oracle/jre/lib/rt.jar sasl-1.7.0_Orac.jar
sudo ln -s sasl-1.7.0_Orac.jar sasl-1.7.0.jar
sudo ln -s sasl-1.7.0_Orac.jar sasl.jar
how if/when 1.7.1 is released and I want to update could I have the bash script be able to do that without having to manually change every reference to 1.7.0 to 1.7.1? So a placeholder in the script for #version.
Why do not you simply set JAVA_HOME (JDK_HOME, JRE_HOME - you should know better being Java developer )?
Yeah can set them after it’s installed. Trying to find a way to instal and maintain oracle Jdk on opensuse.
I do a couple things, and it’s all easier than the document found.
sudo zypper in /path/to/oracle-jdk.rpm
I do not bother updating my entire system to use that, because I use the
JDK for specific things and am fine with whatever the default JRE is for
most other operations including browser stuff.
Also, sometimes I need multiple versions installed at the same time for
silly issues related to specific applications and JREs/JDKs. For that I
have an ‘apps’ directory within my ‘home’ for all things non-RPM-installed
where I keep as many as I need. The steps for this are as simple as
above, but no ‘root’ requirement:
In both cases I set JAVA environment variables to whatever I use and all
is well.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…