Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

Setting up Java CLASSPATH on Microsoft Windows Server 2003

Java CLASSPATH environmental variable is a combination of execution path and library path. This variable helps Java Runtime Environment (JRE) and Java Development Kit (JDK) locate executable and library classes. Setting up the CLASSPATH variable on an user basis is relatively simple.

To get into the "Environment Variables" dialog, click on the "Start" button, right click on the "My Computer", click on "Properties" on the pop-up menu, click on the "Advanced" tab, and finally click on the "Environment Variables" button. You will be greeted with the dialog box shown below.

Attached Image:

Environment Variables.png

Chieh Cheng
Mon, 13 Mar 2006 18:35:42 -0800

Most likely, you will not have a pre-defined CLASSPATH variable in the user variables section. Therefore, click on the "New" button to create it. If the variable already exists, you can click on the "Edit" button to edit the value. In either case, you will see a dialog like below.

Attached Image:

New User Variable.png

Chieh Cheng
Mon, 13 Mar 2006 18:36:29 -0800

Fill the dialog in with the CLASSPATH information. The "Variable name:" text field should contain "CLASSPATH". The "Variable value:" text field should contain the CLASSPATH locations. I typically use ".;c:\classes;" in my CLASSPATH variable. The period in that string means Java should search for classes in the current directory. The semi-colon is delimiter. The CLASSPATH then specifies that Java should look in "c:\classes" if it couldn't find the class in the current directory. The following shows the dialog box filled in.

Attached Image:

Filled In.png

Chieh Cheng
Mon, 13 Mar 2006 18:37:28 -0800

Click the "OK" button to set the variable. You will see the variable show up with the value in the user variables section. The screenshot below shows the added variable. Click the "OK" button to close the "Environment Variables" dialog box. Finally, click on the "OK" button in the "System Properties" to close it. Now you are done.

Attached Image:

CLASSPATH Added.png

Chieh Cheng
Mon, 13 Mar 2006 18:38:00 -0800

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 4 + 3?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

76 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.