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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-06-2002, 05:13 AM
|
#1
|
LQ Newbie
Registered: May 2002
Posts: 15
Rep:
|
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..
|
|
|
05-06-2002, 05:43 AM
|
#2
|
Member
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747
Rep:
|
try
> which javac
and see if it returns someting
if it doensn't, some configuration is incorrect..
gl
|
|
|
05-06-2002, 07:24 AM
|
#3
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
Post the output of
[bash]# which java
[bash]# echo $PATH
|
|
|
05-07-2002, 06:12 AM
|
#4
|
Member
Registered: Feb 2002
Location: England
Distribution: MDK8.2
Posts: 128
Rep:
|
Are you using KDE/konsole and auto login to X windows?
|
|
|
05-07-2002, 02:56 PM
|
#5
|
Member
Registered: Feb 2002
Location: Turkiye
Distribution: Pardus
Posts: 147
Rep:
|
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.
|
|
|
05-07-2002, 03:55 PM
|
#6
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
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.
|
|
|
05-07-2002, 11:23 PM
|
#7
|
Member
Registered: Feb 2002
Distribution: Slack
Posts: 50
Rep:
|
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
|
|
|
09-27-2002, 06:12 PM
|
#8
|
LQ Newbie
Registered: Sep 2002
Posts: 2
Rep:
|
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..
|
|
|
09-28-2002, 08:49 AM
|
#9
|
Member
Registered: Feb 2002
Distribution: Slack
Posts: 50
Rep:
|
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.
|
|
|
09-30-2002, 11:27 AM
|
#10
|
LQ Newbie
Registered: Sep 2002
Posts: 2
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:14 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|