Forum Stats

  • 3,853,894 Users
  • 2,264,290 Discussions
  • 7,905,498 Comments

Discussions

Compling files not working... (using JCreator)

813375
813375 Member Posts: 2
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??

Answers

  • PhHein
    PhHein Member, Moderator Posts: 7,245 Silver Trophy
    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.
  • 759887
    759887 Member Posts: 21
    uninstall both and then reinstall jdk and jcreator
  • 813375
    813375 Member Posts: 2
    edited Nov 13, 2010 3:40AM
    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
This discussion has been closed.