Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Rep Power

    Default Not able to debug simple hello world program

    Hi all,
    I am a biginner to java programming and eclipse.
    I wrote a simple helloworld program as follows:

    package hello;

    public class Hello {
    public static void main(String args[]){
    System.out.println("Hello World");


    The program runs successfully and gives the output to the console:
    Hello World

    I double clicked the line with println to add a break point. But when i press F11 to Debug the program the debug view shows the following error:
    Hello [Java Application]
    hello.Hello at localhost:35874
    Thread [main] (Suspended (exception ClassNotFoundException))
    ClassLoader.findBootstrapClass(String) line: not available [native method]
    Launcher$ExtClassLoader(ClassLoader).findBootstrap Class0(String) line: not available
    Launcher$ExtClassLoader(ClassLoader).loadClass(Str ing, boolean) line: not available
    Launcher$AppClassLoader(ClassLoader).loadClass(Str ing, boolean) line: not available
    Launcher$AppClassLoader.loadClass(String, boolean) line: not available
    Launcher$AppClassLoader(ClassLoader).loadClass(Str ing) line: not available
    Launcher$AppClassLoader(ClassLoader).loadClassInte rnal(String) line: not available
    /usr/java/jre1.6.0_05/bin/java (Jun 12, 2008 6:29:20 PM)

    The error shows: Source not found.

    Please help me to solve this problem.

    Thanks in advance

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Cebu City, Philippines
    Rep Power


    I wonder why you've tried to debug such code...

    Im not an Eclipse user, but i found this on the web. Maybe that could help you....

    kind regards,
    freedom exists in the world of ideas

Similar Threads

  1. SciTE-debug 0.9.1
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 04-10-2008, 04:14 PM
  2. Peculiarty in code of simple program...
    By Kreuz14 in forum New To Java
    Replies: 4
    Last Post: 01-23-2008, 04:27 AM
  3. how to debug the servlet
    By tommy in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 08:53 PM
  4. help with simple program in java
    By katie in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 08:03 PM
  5. help with simple java program
    By leonard in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts