Results 1 to 4 of 4

Thread: Class path for java

  1. #1
    Join Date
    May 2008
    Beans
    2

    Class path for java

    I have installed jdk-6u4-linux-i586.bin which is downloaded from sun.java.com.
    i have installed the .bin file in /usr/java/jdk1.6.0_04 ..How do i set class path for it ? i have searched in google but none of my trials are success can any one plz help me?

  2. #2
    Join Date
    Apr 2007
    Location
    Toronto
    Beans
    104
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Class path for java

    I am not sure what you downloaded but the Sun Java 6 SDK is in the repositories.

    Code:
    sudo apt-get install sun-java6-jdk
    This installs the JDK as well as sets up the class path.

    If you already know what you want to set JAVA_HOME and CLASSPATH to, you can just run

    Code:
    sudo gedit /etc/environment
    and then add a line for each variable

  3. #3
    Join Date
    May 2008
    Beans
    2

    Re: Class path for java

    @ AaronMt thxs for ur reponse ..

    i have installed successfully the bin file and i want to set the class path..what must be the content of /etc/environment to set the class path for java?

  4. #4
    Join Date
    May 2006
    Beans
    42
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Class path for java

    What do you want to do here? The global classpath that you set up in /etc/environment is hardly useful. Most Java programs have a start script which sets up the classpath for their needs.

Bookmarks

Posting Permissions

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