classpath for running java prog


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: classpath for running java prog

  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.
    Share on Google+

  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.


    Share on Google+

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