LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-06-2012, 09:54 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,033

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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).

Last edited by tronayne; 10-06-2012 at 09:55 AM.
 
Old 10-06-2012, 10:42 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

Rep: Reputation: Disabled
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
 
Old 10-06-2012, 12:02 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,033

Original Poster
Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Quote:
Originally Posted by Alien Bob View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 10:04 AM
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
[SOLVED] Use Java scanner delimiters separate artist year title etc? (Java)? mitchell7man Programming 9 04-13-2010 07:24 PM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration