waht is the process to be followed after setting path ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: waht is the process to be followed after setting path ?

  1. #1
    Join Date
    Dec 2006
    Posts
    1

    waht is the process to be followed after setting path ?

    hello everyone

    i am a beginner in java and would appreciate an answer to the problem i am facing.
    i work on windows xp os and after installing j2sdk5.0,i have set the environment variable path to c:\sun\appserver\jdk\bin,but i dont think this si working for me .everytime i compile a program ,i ahve to place the class file in bin and then run it ,otherwise it is not able to find the class.is thereanything that i have done wrong.please let me know

    thankyou in advance

  2. #2
    Join Date
    May 2005
    Location
    Ontario, Canada
    Posts
    173
    Hi,
    There are two paths that have to be modified as it is seen in the attachment.
    It looks to me that you have modified only one of them.
    Good luck,
    Attached Files Attached Files

  3. #3
    Join Date
    Dec 2006
    Location
    Kerala,India
    Posts
    51
    Path is used for calling javac or java from any location. That is the reason you are adding the location of java.exe and javac.exe in the path. Since you are copying the class file to another one location, there is nothing to do with path. Your CLASSPATH variable is not set properly. That is the reason you are required to copy the class files in to a location which has already been added in the CLASSPATH variable. ADD current path ( just add "./") to the CLASSPATH, program will run successfully.

Similar Threads

  1. Setting class path at runtime
    By swmk in forum Java
    Replies: 14
    Last Post: 09-08-2007, 06:01 AM
  2. Setting Java path in Windows2000
    By Alimar in forum Java
    Replies: 2
    Last Post: 05-02-2002, 07:38 AM
  3. Setting Search Path (Environment)
    By Juergen Thuemmler in forum VB Classic
    Replies: 0
    Last Post: 03-05-2002, 09:22 AM
  4. Setting an initial browse path
    By Travis Hall in forum VB Classic
    Replies: 4
    Last Post: 10-31-2000, 01:20 AM
  5. Setting an initial browse path
    By Travis Hall in forum VB Classic
    Replies: 0
    Last Post: 10-30-2000, 07:08 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center