LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-27-2005, 09:33 PM   #1
Rayston
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Rep: Reputation: 0
JAVA on Slackware? How?


I am completely lost on how to get java working on slackware? Anyone know of any tutorials or threads that have covered this in a step by step "for dummies" way?

Thanx

Rayston
 
Old 12-27-2005, 11:48 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
When you say you want to get Java working, what do you mean? Do you want to be able to view applets on web pages/run Java programs on Slack? Do you want to develop Java programs? If the former, it'd help to know what browser you're running.
 
Old 12-28-2005, 12:50 AM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm assuming that you'll be installing Java, upgrading it as new versions come and that you run Mozilla as your browser - because that's what I do ;-)

I downloaded jdk-1_5_0_06-linux-i586.bin from java.sun.com to my hard drive. Next I ran `chmod u+x jdk-1_5_0_06-linux-i586.bin && ./jdk-1_5_0_06-linux-i586.bin` to install it (I installed it to /usr/local/jdk1.5.0_06 but that's just my preference). I have a symlink created with `ln -s /usr/local/jdk1.5.0_06 /usr/local/jdk` and in my /etc/profile I have the following 2 lines:
export JAVA_HOME="/usr/local/jdk"
export PATH="${JAVA_HOME}/bin:$PATH"

Next, since my mozilla package is installed under /usr/lib/mozilla-1.7.12 I ran `ln -s /usr/local/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-1.7.12/plugins/libjavaplugin_oji.so`.

That gives me access to Java in my path for tools like Eclipse as well as in my browser for applets.
 
Old 12-28-2005, 07:02 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I've always found it easiest to use the Java packages that come with Slackware. The JRE is in the l folder and the JDK is in extras.
 
Old 08-20-2007, 08:45 PM   #5
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
Quote:
Originally Posted by gilead View Post
I'm assuming that you'll be installing Java, upgrading it as new versions come and that you run Mozilla as your browser - because that's what I do ;-)

I downloaded jdk-1_5_0_06-linux-i586.bin from java.sun.com to my hard drive. Next I ran `chmod u+x jdk-1_5_0_06-linux-i586.bin && ./jdk-1_5_0_06-linux-i586.bin` to install it (I installed it to /usr/local/jdk1.5.0_06 but that's just my preference). I have a symlink created with `ln -s /usr/local/jdk1.5.0_06 /usr/local/jdk` and in my /etc/profile I have the following 2 lines:
export JAVA_HOME="/usr/local/jdk"
export PATH="${JAVA_HOME}/bin:$PATH"

Next, since my mozilla package is installed under /usr/lib/mozilla-1.7.12 I ran `ln -s /usr/local/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-1.7.12/plugins/libjavaplugin_oji.so`.

That gives me access to Java in my path for tools like Eclipse as well as in my browser for applets.

Hey there man. I added those lines to /etc/profile like you specified, though i had to change /usr/local/jdk to /usr/lib/java, since apparently the bin directory is over there. I executed java -showversion and i do get the version displayed. The application that i am trying to install still cannot find java installed on my computer. What am i doing wrong? FYI, i run Slack 12. Thanks for the help.
 
Old 08-20-2007, 09:01 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Did you source /etc/profile (or logout and login again)? To check, can you confirm that echo $JAVA_HOME returns /usr/lib/java and that echo $PATH contains /usr/lib/java/bin?

If both of those variables are correct, I'd check the docs for the application you're trying to install and see what it requires apart from JAVA_HOME and PATH.
 
Old 08-24-2007, 01:33 AM   #7
trebek
Member
 
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426

Rep: Reputation: 30
Thanks, i worked it out, the problem is i did so many things i can't trace back on my own steps so i can learn from what i did to get it going. Doesn't this happen very often to you guys? This is a big problem since i may stumble on the same problem more than once and the last time i didn't memorize what i did. So i'll be damned.

Thanks for the help. LQ rules.
 
Old 08-24-2007, 07:09 AM   #8
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
For what it's worth, I installed everything from the 1st 2 slackware 12 CDs and java was installed along with everything else. aboutlugins in firefox shows the java plugins in use.
 
Old 08-24-2007, 09:29 AM   #9
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by trebek View Post
Thanks, i worked it out, the problem is i did so many things i can't trace back on my own steps so i can learn from what i did to get it going. Doesn't this happen very often to you guys? This is a big problem since i may stumble on the same problem more than once and the last time i didn't memorize what i did. So i'll be damned.

Thanks for the help. LQ rules.
I take notes when I'm doing something new and bookmark links that I use as reference. I started my notes using the back of scrap paper off the printer and now have enough to fill a couple manila folders. Kind of a messy solution! If I had to start over I would keep all my notes in a bound notebook or even better a 3-ring binder so I could reorganize them.
 
  


Reply



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
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 06:30 AM
How do you install Java in slackware? gbdavidx Slackware 9 11-21-2004 02:35 AM
install java in Slackware The Chain Linux - General 5 11-13-2004 10:50 PM
Java and Slackware-current AstainHellbring Slackware 4 10-23-2004 10:08 AM
Slackware 10, Where is Java? atogbe Slackware 7 08-06-2004 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration