LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-26-2004, 12:21 AM   #1
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Rep: Reputation: 30
Java (jre/sdk) debian install


heya guys, anyone know how, up and above what i did here, to get java working on a basic debian install (just a base bf24 install, added some libraties, xwindows/fluxbox)

i downloadded the jre self extracting file and ran it

i accepted the licence agreement, it then made a folder in the directorie (home directorie) then moved that folder to /usr/local

i then linked the plugin file (i386/ns610-gcc32/libjavaplugin_oji.so) to the firefox plugins folder, well pretty much it isnt acually installed because i went and tested it at their site and it diddnt work.


i get the feeling i missed something, i use to use rpm's for fedora/redhat, but i think they did more processes then just simply unzipping the file to a folder.

can someone fill me in on what i have to do (and if i did do it right, maby a library i need to have it work )

thanks alot guys

-Zaskar
 
Old 02-26-2004, 03:09 AM   #2
Zaskar
Member
 
Registered: Feb 2004
Location: NY
Distribution: Debian (Testing)
Posts: 219

Original Poster
Rep: Reputation: 30
its odd, ive done it right as far as instalation goes i think, so it has to be something else.

could it be something to do with kernel configuration? do i need to select it in the modules section at install? bewcause when i do "java -version" it gives me that command java not found.

i have it linked to the ns610-gcc32 one.

anyone have an idea why the plugin wont work? did i need to modifie a file to have java start up as a process or something? :/

im using the bf24 kernel, so not shure if its in there either.

thanks guys, this is the last thing that i need to figure out :/


-Zaskar
 
Old 03-17-2004, 10:39 PM   #3
tvn
Member
 
Registered: Mar 2004
Posts: 96

Rep: Reputation: 15
nothing with the kernel configuration, you Have to add the java's bin to your $PATH
 
Old 03-18-2004, 07:53 AM   #4
londonboi
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian (unstable Branch) 2.6 Kernel
Posts: 71

Rep: Reputation: 15
Hi, I have the same problem installing java on my computer, I gave up months ago, so it nice to know I am not the only one having problems

TVN: How exactly do you add javas bin to the $PATH

Londonboi
 
Old 03-18-2004, 01:14 PM   #5
tvn
Member
 
Registered: Mar 2004
Posts: 96

Rep: Reputation: 15
Assumming you're using bash as your shell , and your jsk or jre is installed at /opt/java/jsk1.4.2

then just add the following in your ~/.bash_profile

# Java stuffs
JAVA_HOME=/opt/java/jsk1.4.2

PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH
####################

afterward you should log out and relogin -- or you can type source ~/.bash_profile then type something like java or javac etc to see if they are found
 
Old 04-01-2004, 03:26 AM   #6
go_sooner
Member
 
Registered: Feb 2004
Location: Norman, OK, USA.
Distribution: Mandrake 10.0
Posts: 33

Rep: Reputation: 15
Thank you very much

Hi TVN

Your hint really helped me a lot. Previously I was uninstalling and reinstalling to see if Java works in debian.

Now, I learnt a new stuff. Cool.

Thanks.

Vgn
 
Old 04-01-2004, 07:32 PM   #7
hjles
Member
 
Registered: Jan 2003
Posts: 64

Rep: Reputation: 15
java.sh

Hey:

Here is a file I use called 'java.sh":

export JAVA_HOME="/usr/java/j2sdk1.4.2_04"
export JDK_HOME="$JAVA_HOME"
export JAVA_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME/bin"

This file sits in /etc/profile.d and gets executed at boot.
Of course, you should change it to reflect where you've installed java.
Also, the JDK_HOME is only needed if you installled the sdk.

-charlie
 
  


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
Java SDK & JRE Install Avi Linux - Software 1 10-02-2005 09:32 PM
java SDK install jet_zeng Linux - Software 5 05-10-2005 12:57 PM
Sun's JRE/SDK Installation on Debian (great site) OneManArmy Debian 0 05-23-2004 10:29 AM
Java SDK 1.4.2 install. lifted_one Programming 4 11-06-2003 01:55 AM
Java SDK 1.4 Install KptnKrill Linux - Newbie 6 08-14-2003 09:47 PM

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

All times are GMT -5. The time now is 08:19 PM.

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