Run Time Error


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Run Time Error

  1. #1
    Join Date
    Oct 2005
    Posts
    7

    Run Time Error

    hi
    i have prob in running my java program.......
    it gets compiled and generates class file........but when i give the command for execution it says
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
    plz help me.........
    neer

  2. #2
    Join Date
    Jul 2005
    Location
    SW MO, USA
    Posts
    299
    Looks like the java program is not finding your program/class file. The program needs to be on the classpath or in the same directory as you issure the java command.
    What directory is the .class file in? Is it the same directory where you issued the java command?

    If you have problems Please copy and paste the commandline and the error message here.

  3. #3
    Join Date
    Oct 2005
    Posts
    22
    Please paste the full error message.As Norm says, the classpath is not set properly.

    The classpath for the servlet.jar as well as for the java.exe should be set to work.

    Thanks
    G.Rajasekhar

  4. #4
    Join Date
    Oct 2005
    Posts
    7
    Hi everybody..........
    Thanx for ur responses.........i am done with the prob.
    neer

    Quote Originally Posted by neer
    hi
    i have prob in running my java program.......
    it gets compiled and generates class file........but when i give the command for execution it says
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
    plz help me.........
    neer

Similar Threads

  1. Run Time Error 3021
    By Mano in forum VB Classic
    Replies: 0
    Last Post: 02-25-2002, 11:41 PM
  2. Activex Component Run time error
    By KENHOW in forum VB Classic
    Replies: 1
    Last Post: 07-09-2001, 01:00 PM
  3. DTSRun error when run as scheduled job
    By sharonc in forum Enterprise
    Replies: 2
    Last Post: 06-11-2001, 10:54 PM
  4. Run Time Error
    By Philip Morley in forum VB Classic
    Replies: 2
    Last Post: 02-19-2001, 01:46 AM
  5. Run time error
    By Mark in forum Java
    Replies: 4
    Last Post: 07-23-2000, 10:36 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