LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-06-2002, 05:13 AM   #1
Harish_f
LQ Newbie
 
Registered: May 2002
Posts: 15

Rep: Reputation: 0
Java is not working in redhat linux7.0


Dear All,
I have installed j2sdk-1_4_0-linux-i386-rpm.bin succussfully.
it installed /usr/java/j2sdk1.4.0 folder with all the files..

then i opend .bashrc file from /home/guest folder
I added following way

#JAVA
JAVA_HOME=/usr/java/j2sdk1.4.0
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

then i saved and run the file like this

source ~/.bashrc

Eventhough I am not able to run any java command

pls give me suggestion..
 
Old 05-06-2002, 05:43 AM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
try
> which javac
and see if it returns someting
if it doensn't, some configuration is incorrect..

gl
 
Old 05-06-2002, 07:24 AM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Post the output of

[bash]# which java

[bash]# echo $PATH
 
Old 05-07-2002, 06:12 AM   #4
jISV
Member
 
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128

Rep: Reputation: 15
Are you using KDE/konsole and auto login to X windows?
 
Old 05-07-2002, 02:56 PM   #5
CARTMAN
Member
 
Registered: Feb 2002
Location: Turkiye
Distribution: Pardus
Posts: 147

Rep: Reputation: 16
Yuo have Java SDK (Software Development Kit) . Its used to create Java aplications . You need to get JRE (Java Runtime Environment) to use java in your browser or anything like that if thats what you mean.
 
Old 05-07-2002, 03:55 PM   #6
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Quote:
Originally posted by CARTMAN
Yuo have Java SDK (Software Development Kit) . Its used to create Java aplications . You need to get JRE (Java Runtime Environment) to use java in your browser or anything like that if thats what you mean.
Actually the SDK comes with a JRE.
 
Old 05-07-2002, 11:23 PM   #7
cludwin
Member
 
Registered: Feb 2002
Distribution: Slack
Posts: 50

Rep: Reputation: 16
Try a different Compiler a.k.a. Jikes from IBM, I remember reading something about rh7.0 and suns compiler not getting along. Besides jikes is faster anyway.

cludwin
 
Old 09-27-2002, 06:12 PM   #8
pkyone
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Rep: Reputation: 0
JRE 1.3 cannot run on Redhat Linux ...

I am using KDE/konsole and auto login to X windows. After I install jre 1.3 to /usr/local folder, ln java to /bin/java, and on prompt type "java" or "java -version", the system just hangs there.
What is going on here?
While I typed in "whereis java", it showed "/bin/java"

Your advice is greatly appreciated..
 
Old 09-28-2002, 08:49 AM   #9
cludwin
Member
 
Registered: Feb 2002
Distribution: Slack
Posts: 50

Rep: Reputation: 16
I think it sounds like you copied your virtual machine from your JAVA_HOME/bin to /bin/java. This will not work cause now the VM can't see the rest of your java library.

So if you want to write java programs, what you want to do is install the Java SDK not the JRE (I think they are up to 1.4.1 now). First I would create the folder /usr/local/java. That is where I keep all my sucessive SDK's. Then I would install my Java SDK into this folder.

when you are done it should look something like this:
/usr/local/java/j2SDK1.4.1/

next you want to make symbolic links to the Virtual machine(AKA java) and also the compiler (AKA javac), put these links in your /usr/bin or just your /bin directory.

e.g.
ln -s /usr/local/java/j2SDK1.4.1/bin/java java
ln -s /usr/local/java/j2SDK1.4.1/bin/javac javac

This way when you want to upgrade to the next SDK you install to /usr/local/java and just change your symbolic links.

Hope this helps,
cludwin

Last edited by cludwin; 09-28-2002 at 08:50 AM.
 
Old 09-30-2002, 11:27 AM   #10
pkyone
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Rep: Reputation: 0
Hi cludwin:
Thanks for your prompt response.
I only need to install VM to run the java program. Our product needs only JRE 1.3.0. It seems to me that this version is not compatible with Linux KDE. I say this because it works with JRE 1.3.1_04 by going thru the same procedure.
I just want to confirm the fact that JRE 1.3.0 is not compatible with KDE.
Only if anyone knows how to tweak and make JRE 1.3.0 work in KDE please let me know. Greatly appreciate.

pkyone
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Linux7.3 kay Linux - Networking 0 03-11-2003 12:17 AM
Installing redhat Linux7.0 dark_light Linux - General 3 06-19-2002 08:28 AM
Ask help on installing jdk1.3 on Redhat linux7.1! jane207 Linux - Software 8 11-05-2001 04:16 PM
cbq isolated bounded not working in linux7.1 cybercop12us Linux - Newbie 0 10-08-2001 12:54 AM
CBQ - bounded ,isolated not working in Linux7.1 cybercop12us Linux - Networking 0 10-08-2001 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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