Results 1 to 5 of 5

Thread: Installing Java JDK and setting PATH

  1. #1
    Join Date
    Feb 2009
    Posts
    71

    Installing Java JDK and setting PATH

    Hello Friends,

    I have downloaded new java JDK for programming in JAVA language, I have installed JDK properly but my friend told me it is required to setup environmental variable so that all the programs will run properly.

    Please tell me where and how to set PATH for the variable.

    Regards

  2. #2
    Join Date
    Apr 2008
    Posts
    193

    Re: Installing Java JDK and setting PATH

    Hi,

    you will set your system's PATH variable to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify the full path to the executable every time you run it, such as:

    C:> \j2sdk1.4.1\bin\javac MyClass.java

    While you do not need to set your system's PATH variable to run Java, other software you will install later expects that your PATH variable will already have been set.

    It's useful to set the PATH permanently so it will persist after rebooting.

  3. #3
    Join Date
    Mar 2008
    Posts
    258

    Re: Installing Java JDK and setting PATH

    The steps below show you how to set the environment variables in a command window. The settings are only valid for that window. If you close the command window or open a new command window, you must set the environment variables again.
    Tip: You can also set environment variables permanently. For example, on Windows you can use the Control Panel to permanently set the environment variables.

    To set the environment variables:

    1. Set the DERBY_HOME environment variable to the location where you extracted the Derby bin distribution. For example, if you installed Derby in the /opt/Derby_10 directory on UNIX or in the c:\Derby_10 directory on Windows, use the following command to set the DERBY_HOME environment variable:

    In Windows set the command as
    set DERBY_HOME=c:\Derby_10.
    Be certain that the java.exe file, version 1.4.2 or, higher is in your command execution PATH. Open a command window and run the java -version command.

    Add the DERBY_HOME/bin directory to the PATH environment variable so that you can run the Derby scripts from any directory.

    In Windows set the command set PATH=%DERBY_HOME%\bin;%PATH%. If you use the Control Panel to update your system PATH, add %DERBY_HOME%\bin to the end of the PATH environment variable

    Tip: When the DERBY_HOME environment variable is set and the underlying /bin directory is included in the PATH environment variable, you can use shortened commands to start the Derby tools. Otherwise, either you must be in the directory where the script that starts the Derby tool is located, or you must specify the full path to the location of the script when you want to start the tool.

  4. #4
    Join Date
    Oct 2008
    Posts
    167

    Re: Installing Java JDK and setting PATH

    For setting the Java environment variables for Windows are as follows follow the following:
    http://publib.boulder.ibm.com/infoce...cmbapmst26.htm

  5. #5
    Join Date
    Feb 2009
    Posts
    7

    Re: Installing Java JDK and setting PATH

    Hey thanks for such a nice question I have just downloaded the java JDK & needed to install & I think this is going to help me in the process!

    Thanks again!

Similar Threads

  1. Method to change the java path in Windows 7
    By Maal-Gaadi in forum Windows Software
    Replies: 5
    Last Post: 04-09-2011, 08:03 PM
  2. Setting Of Java to The Point At Manual Java
    By winni in forum Software Development
    Replies: 4
    Last Post: 10-01-2011, 09:05 PM
  3. Setting the Default Locale in Java
    By Sheenas in forum Software Development
    Replies: 5
    Last Post: 27-02-2010, 05:16 PM
  4. How to display an image in a Userform on setting the path
    By ANSEL in forum Software Development
    Replies: 3
    Last Post: 26-10-2009, 11:46 PM
  5. Replies: 0
    Last Post: 23-03-2009, 11:32 PM

Posting Permissions

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