Main Menu
General Computer
>
Easy Computer Tips
>
Operating Systems
>
Computer Installations
>
Computer Softwares
Computer Networking
>
Home Network
>
LAN/WAN Network
>
Wireless Network
> Cisco Network
Computer Hardware
>
Scanner
>
Printer
>
Laptop
Troubleshooting
>
Pc Troubleshooting Tools
Web Development
>
Java
>
PHP
>
CSS
Web Designing
>
Coral Draw
>
Flash
> Adob Photoshop
Business Promotions
>
SEO
>
Link Building
>
Internet Marketing
NEWSLETTER
Enter Name Here:
Enter E-Mail Address Here:
PEOPLE to FOLLOW US, WE to LEAD THEM.
General Computer Computer Network Computer Hardware Outlook Express
Web Development Web Design Business Promotions PC Troubleshooting
 

How to set Java path and classpath

This article gives you the complete description about java, how to set java path and how to set java class path. This process explains step by step in detail in this section. Following these instructions and get the proper solution of java setting


Set java path and classpath in Winpdow XP

  1. Start the Control Panel: Go to Start button and then Control Panel in the box which appears.
  2. Now click on Performance and Maintenance
  3. Click on System
  4. Click on the Advanced tab
  5. Click on Environment Variables
  6. Create a new user environment variable
  7. Create classpath

A variable field appear, enter the word classpath. This is the name of the new environment variable. If there is no classpath variable defined, Java will simply use the classes in the current directory and Java's own built in classes. If a classpath variable is defined, Java will not use the current directory unless it is included in the value of classpath
8.   Add one more path to the value of classpath
After javabookEd3.zip enter a semicolon and then the full directory location of the directory in which the galapagos directory is located. Do not include the name of the galapagos directory. On my PC, the galapagos directory is located in the directory D:\Data\00-UMUC-Wu-Java\WuClasses. Add this path to the end of the existing value for classpath. Do not forget the semicolon to separate this value from the previous. Do not include the galapagos directory.

On my PC the full classpath is the following.

Yours will be different if you put javabookEd3.zip and galapagos in different directories.
9.    Exit the dialog boxes.
10.  Use the predefined classes in a Java application
You should now be able to use class from the javabook or galapagos packages in your Java applications. You must also include an import statement at the beginning of your source code. You only need the import statement for the package that your application needs. If you were going to use only classes from the javabook package and none from the galapagos project, then it would only be necessary to include the javabook line below
11.  Test the predefined classes
The classpath must contain the exact location of the predefined class on your PC. The import statement must also be correct.  If you mistype either one or made any other mistake with them, you will see errors similar to those below. In that case check the values of the classpath and import statements. Correct them as needed, and try again.

By following this article you can able to set java path and java class path in detail and step by step process.

 

 

 
Home About us Misc How Tos Sitemap IT Forum Add Link Contact us
 
Copyright © 2008. PCHOWTOSOLUTION.COM All rights reserved