3 Replies Latest reply: Nov 13, 2010 2:40 AM by 813375 RSS

    Compling files not working... (using JCreator)

    813375
      Hi to all
      I started learning Java few days ago, and when i started using JCreator the complier stop working.
      I downloaded jdk1.6.0 and installed and Java docs too.
      I configered in JCreator the path of the java files.

      and when i try to run somthing this is the error msg:

      -----------------------------------------------------------------------------------------------------------------------------
      --------------------Configuration: First - JDK version 1.6.0 <Default> - <Default>--------------------
      java.lang.NoClassDefFoundError: ListFiles
      Caused by: java.lang.ClassNotFoundException: ListFiles
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      Could not find the main class: ListFiles. Program will exit.
      Exception in thread "main"
      Process completed.
      -----------------------------------------------------------------------------------------------------------------------------


      PLZ someone help with this one... what is the problem??
        • 1. Re: Compling files not working... (using JCreator)
          PhHein
          ListFiles is not on your classpath.

          If you are a beginner step away from JCreator or any other IDE and start learning the basics first. The IDE hides path, classpath and packaging from you.
          Start here: http://download.oracle.com/javase/tutorial/getStarted/index.html using an editor and the command line to comppile and run.
          • 2. Re: Compling files not working... (using JCreator)
            759887
            uninstall both and then reinstall jdk and jcreator
            • 3. Re: Compling files not working... (using JCreator)
              813375
              tried to unistall JDK... during the uninstal - there is an error... :\
              but i uninstalled JCreator and same problem......
              plz help me figure it out....

              --------------------Configuration: <Default>--------------------
              java.lang.NoClassDefFoundError: ListFiles
              Caused by: java.lang.ClassNotFoundException: ListFiles
              at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
              Could not find the main class: ListFiles. Program will exit.
              Exception in thread "main"
              Process completed.

              Edited by: 810372 on 10:40 13/11/2010