LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Java 7 in 13.37 or 14 (http://www.linuxquestions.org/questions/slackware-14/java-7-in-13-37-or-14-a-4175430844/)

tronayne 10-06-2012 09:54 AM

Java 7 in 13.37 or 14
 
I didn't want to hijack the "Java 6 in 14" thread, so here goes.

I'm wondering if the java.SlackBuild in the /extra directory in Slackware 14 is correct in that it does not install a JRE in /usr/lib64/java/jre but rather in /usr/lib64/java? At least, it doesn't install it in 13.37 (at least on my box -- I'm waiting for the DVD to arrive).

Building JDK with that SlackBuild does install the JRE in /usr/lib64/java/jre, however.

I'm building from both the Oracle JDK and JRE tar.gz files (yeah, I know that JDK is supposed to also install the JRE and I stated with the JRE then went to the JDK when I couldn't figure out how to modify the SlackBuild -- still can't figure that out).

Is it just me or is there actually something different I'm not aware of? I have tried Alien's OpenJava JRE (which does install in the "right" place but it is "glitchy" with a couple of existing Java applications I have where, for whatever reason, the Oracle release works as expected, most notably Moneydance).

Alien Bob 10-06-2012 10:42 AM

The official Sun and later Oracle binaries always installed the JRE directly into /usr/lib/java IIRC... as long as it works I should not be worried.
Indeed, OpenJDK installs the JRE into /usr/lib/java/jre . If that works too, no problems :-)

What you must not do, is mix both. You have to uninstall any existing Java package before you move to the other version (Oracle <--> OpenJDK) and also, do not install both JRE and JDK packages... your java apps will fail.

Eric

tronayne 10-06-2012 12:02 PM

Quote:

Originally Posted by Alien Bob (Post 4798841)
What you must not do, is mix both. You have to uninstall any existing Java package before you move to the other version (Oracle <--> OpenJDK) and also, do not install both JRE and JDK packages... your java apps will fail.

I know that, I always do removpkg/installpkg when fiddling with this sort of thing and I know enough not to install both JRE and JDK (know just enough to be dangerous, eh?) -- good to be reminded, though!

OK, the Oracle JRE SlackBuild is supposed to go into /usr/lib[64]/java, no /jre appended, where Oracle JDK installs JRE in .../java/jre, got that, no problem. I'll quit worrying about it and get on with life.

And all this screwing around because of the Java problem a few weeks ago along with the release of Java 7. Cripes.

Thanks for the information.


All times are GMT -5. The time now is 12:22 AM.