Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Help installing Java & configuring CLASSPATH

  Asked By: Jamil    Date: Jan 15    Category: Java    Views: 803
  

I'm a beginner at
this Java issues so I need help. I followed the installation
instructions that appear in the Java Sun official webpage but it's
just not working. I think I have a problem with the CLASSPATH and
PATH variables.

I have just installed the Java 2 SDK version 1.4.0_03 on a Linux
Red Hat 7.2 Operating System. I don't remember the kernel it has but
will check it if it's necessary.

I had this file:

j2sdk-1_4_0_03-linux-i586-rpm.bin

First, I copied that file to a new directory:

/usr/local/jdk1.2

Then I executed:

chmod a+x j2sdk-1_4_0_03-linux-i586-rpm.bin

And then:

./j2sdk-1_4_0_03-linux-i586-rpm.bin

That created the next file:

j2sdk-1_4_0_03-fcs-linux-i586-rpm

Then I executed:

rpm -iv j2sdk-1_4_0_03-fcs-linux-i586-rpm

And that created a new directory with all of the Java files. The
directory is:

/usr/java/j2sdk1.4.0_03


Then I type in the command line the next to configure the
variables:

set CLASSPATH=/usr/java/j2sdk1.4.0_03/lib:/home/claus/java:.

set PATH=$PATH:/usr/java/j2sdk1.4.0_03/bin

(/home/claus/java is the directory where I want to work)


But it doesn't work!!

I don't know what I'm missing.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Adalwin Fischer     Answered On: Jan 15

Try to use java  vm command  line parameters.
Just like;

java -cp ${CLASSPATH}:${YOURRUNTIMEPATH} yourpacakage.yourmainclass

 
Didn't find what you were looking for? Find more on Help installing Java & configuring CLASSPATH Or get search suggestion and latest updates.




Tagged: