Find the answer to your Linux question:
Results 1 to 4 of 4
Before running the bin file that i downloaded from the Sun site, i removed every installed package related with java. I removed the packages (libraries, development,...) from the Control Center ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Location
    Greece
    Posts
    10

    Installing j2sdk1.4.2


    Before running the bin file that i downloaded from the Sun site, i removed every installed package related with java. I removed the packages (libraries, development,...) from the Control Center > yast2 modules > install/remove software.
    The installation of the bin file was completed with no problems.
    When i try to open a terminal and write "java ___.java" i get a message "no such command".
    When i wirte "echo $CLASSPATH" i get nothing.
    When i write "echo $JAVA_HOME" i get "/usr/lib/java"
    I made then some changes in my .bashrc file and i added two new aliases:
    "steJava = ......./j2sdk1.4.2/bin/java"
    "steJavac = ......./j2sdk1.4.2/bin/javac"
    Now i can develop an application using the steJava and steJavac commands, but i think that it is better to set the CLASSPATH and use the original java and javac commands.

    Any ideas?

  2. #2
    Just Joined!
    Join Date
    Aug 2003
    Location
    USA
    Posts
    7
    Just make sure the path to java and javac is in your PATH. Set CLASSPATH and JAVA_HOME if you need to.

  3. #3
    Just Joined!
    Join Date
    Sep 2003
    Location
    Greece
    Posts
    10
    When you say my PATH you mean /home/[me]?
    And how can i set the CLASSPATH and JAVA_HOME?

  4. #4
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    the $PATH environment is where Linux searches for programs to execute if you don't supply an absolute path in the command... to check your path, type
    Code:
    echo $PATH
    it should output something like this:
    Code:
    PATH=/bin;/usr/bin;/sbin;/usr/sbin;/usr/X11/bin
    to add something to the path, type
    Code:
    export PATH=$PATH;<dir to add>;<dir to add>
    then you can edit /etc/profile and add the line
    Code:
    export PATH=$PATH;<dir to add>
    hope that helps...
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •