LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2003, 05:30 PM   #1
alm
Member
 
Registered: Mar 2003
Location: Sweden
Distribution: RedHat
Posts: 32

Rep: Reputation: 15
How to install JDK's variables?


I need to install the variables for Java VM.
I have downloaded and installed the jre build which contains everything, but apparently I need to set the CLASSPATH variable and some others - or am I missing something? I can't find it anywhere in the documents!?
My rpm-package put everything under /usr/java/jdk/
and the README states the VM is under /usr/java/jdk/jre

Thankful for any help.
 
Old 06-12-2003, 06:32 PM   #2
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
In bash.rc or whatever shell you use

export CLASSPATH="/somewhere
 
Old 06-12-2003, 07:29 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Why do you need to do this? What application needs the Java VM.
 
Old 06-13-2003, 03:28 AM   #4
alm
Member
 
Registered: Mar 2003
Location: Sweden
Distribution: RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the reply.
If you know what directory I need to export it would make me glad.

The application is a webserver made by a korean company which I wanted to try out. It is called webtoB.
 
Old 06-13-2003, 10:26 AM   #5
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Hmm it's been a while since I used Java...

If I remeber, the classpath is just a path your .class files so it could point to anywhere on your system. The only thing I can think of is run a find on the files the application says it can't find and point the classpath to it.
 
Old 06-13-2003, 08:21 PM   #6
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
the JRE doesn't contain everything, the SDK does

The JRE is merely the Java Runtime Environment, whereas the the SDK contains the JRE and also all the stuff to develop with.

http://java.sun.com has stacks of info on how to install the stuff.

What exactly are you trying to do anyway?
The JVM is java itself, so if java runs (type java in the console) then everything should be right, the path to it can be determined with
whereis java
but really it should be in /usr/bin/java (which is generally a symlink to its real location)
 
Old 06-15-2003, 10:35 AM   #7
alm
Member
 
Registered: Mar 2003
Location: Sweden
Distribution: RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for taking the time to answer.
I am sure I can get it to work now. If I can't, I'll post again.

Best regards.
 
  


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
please ..help me on variables bruse Linux - Newbie 8 04-17-2005 12:57 AM
variables? Soulful93 Programming 7 06-13-2004 01:24 AM
Shel scripting: variables pointing to variables and case Dark_Helmet Programming 5 06-08-2003 12:07 PM
variables granny Linux - Newbie 2 02-12-2003 05:36 PM
Variables hubabuba Linux - Software 1 05-17-2002 12:48 PM


All times are GMT -5. The time now is 04:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration