DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2005
    Posts
    9

    Question Help with CLASSPATH variable please

    Hi everyone!!

    Please, help to set up my classpath variable. I know I know I have guidelines in API but I don't achieve it, I'm so clumsy.

    I've formated my hard disk and installed everything again, but the classpath is wrong because I can't compile my java files.

    I've tried with this:

    C:\Program Files\Java\jdk1.5.0_06\scr.zip;C:\Program Files\Java\jdk1.5.0_06\javac.exe;C:\Program Files\Java\jdk1.5.0_06\java.exe


    I've also tried with the same lines but unnaming files (finishing with '\')

    What am I doing wrong?

    Thank you very much for your attention and help.
    Merry Christmas and Happy New Year!!

    And I hope the Three Wise Men bring you everythin!!

  2. #2
    Join Date
    May 2005
    Posts
    75
    The CLASSPATH variable is asking where to look for your compiled programs. It will be a directory name.

  3. #3
    Join Date
    Dec 2005
    Location
    Bangalore
    Posts
    13
    Try this one :

    C:\Program Files\Java\jdk1.5.0_06\bin;C:\Program Files\Java\jdk1.5.0_06\lib;

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Quote Originally Posted by sandeepkk2005
    Try this one :

    C:\Program Files\Java\jdk1.5.0_06\bin;C:\Program Files\Java\jdk1.5.0_06\lib;
    You don't need the bin directory in the classpath and you should not have a semicolon at the end (it gives some problems).

    Try setting classpath to C:\Program Files\Java\jdk1.5.0_06\lib;.
    Happiness is good health and a bad memory.

  5. #5
    Join Date
    Nov 2005
    Posts
    9
    Hi there!!

    First of all, THANK YOU VERY MUCH for answering.

    The thing is that none of the suggestions worked and I don't know why. This is becoming in the typical annoying fly...

    Any other suggestion? Maybe I have to install something else?

  6. #6
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    How are you trying to invoke the compiler? Are you using a DOS window?

  7. #7
    Join Date
    Dec 2005
    Posts
    48
    I think the best way is to use jcreator LE(free),Yon can config the classpath from GUI.


    java email verify

Similar Threads

  1. Replies: 0
    Last Post: 06-15-2002, 09:03 AM
  2. sql variable problem
    By Lymarie in forum Database
    Replies: 0
    Last Post: 04-02-2001, 10:16 AM
  3. @@FETCH_STATUS variable
    By Larry Hunter in forum Database
    Replies: 1
    Last Post: 03-18-2001, 10:31 PM
  4. Replies: 3
    Last Post: 02-10-2001, 08:24 AM
  5. Re: Passing an object name through a variable
    By mrfelis in forum VB Classic
    Replies: 9
    Last Post: 04-25-2000, 10:08 PM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links