Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Proper Eclipse Exporting

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Proper Eclipse Exporting

    I am trying to figure out how to export my project correctly. It works fine inside the eclipse environment, but running it outside creates class errors.
    My class is AutoPost.java. Do I have to do an export with all the library information?

    Exception in thread "main" java.lang.NoClassDefFoundError: AutoPost/java
    Caused by: java.lang.ClassNotFoundException: AutoPost.java
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Proper Eclipse Exporting

    You have to run the class not the source file: java AutoPost

Similar Threads

  1. IDE Eclipse Exporting Problem
    By DanielJamesCollier in forum Java IDEs
    Replies: 2
    Last Post: January 2nd, 2013, 06:26 PM
  2. Exporting Runnable JAR File
    By cr80expert5 in forum Object Oriented Programming
    Replies: 3
    Last Post: January 26th, 2012, 09:35 PM
  3. Exporting to an Excutable Jar
    By KeyLay in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 28th, 2011, 07:21 PM
  4. Exporting Data to Excel Spreadsheet
    By PineAppleKing in forum Java Theory & Questions
    Replies: 5
    Last Post: May 19th, 2011, 03:03 PM
  5. Replies: 1
    Last Post: April 21st, 2011, 09:59 AM