DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Afroze syeda Guest

    classpath for running java prog


    I have installed jdk1.2 and jdk1.1.1. i can compile the programms but could'nt
    able to run it.i tried to set the path & the classpath several time but it
    shows the "noclassdeffounf error".can you please help me.

  2. #2
    Jasper Guest

    Re: classpath for running java prog


    hi!

    if you're using a windows-system:
    do the following (you can type it anywhere in any folder):

    set classpath=%classpath%;.

    explanation: the "." means that the directory where you're at always
    will be added to the classpath. this is the reason for the fact that
    your own java-class was not able to run. don't forget to set all java
    libs in your classpath, but you've probably done that already.

    good luck!!


    "Afroze syeda" <syedaafrozmehdi@yahoo.com> wrote:
    >
    >I have installed jdk1.2 and jdk1.1.1. i can compile the programms but could'nt
    >able to run it.i tried to set the path & the classpath several time but

    it
    >shows the "noclassdeffounf error".can you please help me.



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