LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-11-2003, 05:50 AM   #1
Hotkey
LQ Newbie
 
Registered: May 2003
Location: Dortmund, Germany
Posts: 2

Rep: Reputation: 0
Question Java Installation on Mandrake


Hi all !

I got a problem with installing java on my Mandrake (9.1) Linux.
I downloaded the sdk 1.4 as a .bin file from java.sun.com.

Then i managed (yes, im a complete new to linux ;-) ) to execute the
install script.
After a little search i found the java installation in my /user/java/j2[...]/bin path.

The first problem i have, is that when i type simply "java" in my terminal nothing happens. I have to change to my java installation path and type "./java" or "./javac" to get the interpreter/compiler to work.

As i have read in some other threads, i tried to put my installation path to my environment variable with export PATH=/usr/java/j2sdk1.4.1_02/bin/:$PATH

When i type in a "echo $PATH" the new directory is listed, but after a system restart it's gone again.
I also tried to enter "source ~/.bashrc" after the export command, but that gives me the following error :
bash: TMOUT: readonly variable
(tried the command both as normal user and root)


So many questions here ;-) I would be glad if you can help me with one or more of my questions.
As im a newb. to linux - Some detailed Information about the "backgrounds" or some link to a good tutorial would help me as well :-)
 
Old 05-11-2003, 06:10 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
The point of sourcing bashrc is that you put that line in there:
PATH=/usr/java/j2sdk1.4.1_02/bin/:$PATH

Save and exit. THEN source the file:
source .bashrc

Cool
 
Old 05-11-2003, 11:46 AM   #3
Hotkey
LQ Newbie
 
Registered: May 2003
Location: Dortmund, Germany
Posts: 2

Original Poster
Rep: Reputation: 0
hmm, i again get this message :
[hotkey@hotkey hotkey]$ source ~/.bashrc
bash: TMOUT: readonly variable

I've put the line in my bashrc like the following :
# User specific aliases and functions
PATH=/usr/java/j2sdk1.4.1_02/bin/:$PATH

Is this right? And what exactly does the "source" function ?
 
  


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
java installation Prageem Linux - Software 4 09-20-2005 10:48 AM
Java 2 SDK 1.4.2 Installation smacarth Linux - Software 20 02-22-2004 01:11 PM
Installation of Java WiWa Linux - Software 2 12-04-2003 04:37 PM
Java installation shyamlahari Linux - General 6 10-09-2003 04:18 PM
Help in Java installation JIV Programming 6 04-27-2003 11:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:57 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