Add Comment
|
Related Links
|
TrackBack
Setting up Java CLASSPATH on Microsoft Windows Server 2003Java 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: Chieh Cheng 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: Chieh Cheng 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: Chieh Cheng 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: Chieh Cheng
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. Add CommentSpam Control | * indicates required field TrackBackTrackBack 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
55 Users Online
|
Copyright © 1996 - 2024. All Rights Reserved. |