Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Installing Java JDK and setting PATH

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-02-2009
Member
 
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

Reply With Quote
  #2  
Old 25-02-2009
Member
 
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.
Reply With Quote
  #3  
Old 25-02-2009
Member
 
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
Quote:
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.
Reply With Quote
  #4  
Old 25-02-2009
Member
 
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
Reply With Quote
  #5  
Old 25-02-2009
Member
 
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!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Installing Java JDK and setting PATH"
Thread Thread Starter Forum Replies Last Post
Method to change the java path in Windows 7 Maal-Gaadi Windows Software 5 04-09-2011 09:03 PM
Setting Of Java to The Point At Manual Java winni Software Development 4 10-01-2011 10:05 PM
Setting the Default Locale in Java Sheenas Software Development 5 27-02-2010 06:16 PM
How to display an image in a Userform on setting the path ANSEL Software Development 3 27-10-2009 12:46 AM
Change Default Windows Installation Path to Your Desired Path phones Tips & Tweaks 0 24-03-2009 12:32 AM


All times are GMT +5.5. The time now is 06:20 PM.