LinuxQuestions.org
Visit Jeremy's Blog.
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 11-07-2003, 01:30 PM   #1
nejiron
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Rep: Reputation: 0
Having trouble getting java to work on Linux...


I installed the latest rpm's, j2sdk-1_4_2_02-linux-i586.rpm and j2re-1_4_2_02-linux-i586.rpm, and I still cant use java, javac, or javax

i tried exporting the path, and adding some code to the profile file, but it doesn't seem to be working.

if anyone knows what I need to do to get it working, that would be great.
 
Old 11-07-2003, 01:49 PM   #2
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
This questoin has been asked many many many times. Try searching.
 
Old 11-07-2003, 02:05 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by hackers_
This questoin has been asked many many many times. Try searching.
You should at least give a link to a possible thread or solution. This is not just a RTFM or go search site with no help provided to them whatsoever. At least be more prone to give some type of advice or ask for error messages, etc. This has been asked before but its impossible to get everyone to search first before asking.

nejiron,

If your provide maybe a little more details on your issue we might be more of help. Any errors? Why you htink its not working, etc? And of course a search on the site might find your answer before anyone might post it for you, once we get more details.

Regards.
 
Old 11-07-2003, 02:40 PM   #4
nejiron
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I am not sure what the problem is. I have installed the packages listed about and I still can not use javac or javax or any java commands. I have read many things that say you need to export path or add stuff to usr/profile which I have done, but I still cannot get it to work.

I was wondering if anyone can tell me what I actually need to do to get it to work. From the time it is installed from an rpm to the point I can say javac or javax or java --version and actually get a response
 
Old 11-07-2003, 02:50 PM   #5
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
add these lines to end of your /etc/profile:

Code:
JAVA_HOME=/usr/java/j2sdk1.4.1_01
pathmunge $JAVA_HOME/bin after
export JAVA_HOME
open a new shell and try:

java -version

you should see output with the java version. if not (like you get a command not found), try to log out and log back in.
 
Old 11-07-2003, 02:58 PM   #6
nejiron
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Original Poster
Rep: Reputation: 0
finally got it to work

the thing that i didnt do was add the stuff to my .bash_profile

i had everything else already done

thank you for those that responded
 
  


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
Having trouble with Java KezzerDrix Mandriva 12 03-30-2005 09:06 AM
Hushmail.com e-mail: Anyone get this to work with their Linux browser and Java? furfurdemon666 General 8 08-06-2004 02:38 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM
Trouble w/java raysr Linux - Newbie 7 01-10-2004 02:24 PM
Having trouble compiling/running java on linux nejiron Linux - Software 12 11-11-2003 12:38 AM

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

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