Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Not Able to Run Java Program From Eclipse

  1. #11
    Join Date
    Jan 2010
    Beans
    9

    Re: Not Able to Run Java Program From Eclipse

    Here you go... & Thanks for your time...
    Attached Images Attached Images

  2. #12
    Join Date
    Jan 2010
    Beans
    9

    Re: Not Able to Run Java Program From Eclipse

    Quote Originally Posted by TrekCaptainUSA View Post
    I had issues with Eclipse and Java previously. Here's what I did to fix it: I didn't install Eclipse from the repos. I just downloaded the .tar.gz file from the Eclipse website, extracted to a folder in my /home folder, and it works like a charm.

    If you've got issues when using Eclipse and Java, its quite possible that the issue is in the version of Eclipse (hence why I downloaded the files and untar'd them)

    http://www.eclipse.org/
    I am going to try that also..

  3. #13
    Join Date
    Jan 2010
    Beans
    9

    Re: Not Able to Run Java Program From Eclipse

    Quote Originally Posted by parmendratyagi View Post
    I am going to try that also..
    This is also not working...Now i am getting below exception....

    Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/equinox/launcher/Main
    Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.launcher.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
    Could not find the main class: org.eclipse.equinox.launcher.Main. Program will exit.

  4. #14
    Join Date
    Aug 2006
    Location
    Boulder
    Beans
    64
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Not Able to Run Java Program From Eclipse

    Quote Originally Posted by parmendratyagi View Post
    Here you go... & Thanks for your time...
    Did you try to compile the class first?

  5. #15
    Join Date
    Jan 2010
    Beans
    9

    Re: Not Able to Run Java Program From Eclipse

    Quote Originally Posted by jtuchscherer View Post
    Did you try to compile the class first?
    Eclipse is the auto compilation and i also cross checked the bin directory.
    .class are present there.

  6. #16
    Join Date
    Jan 2010
    Beans
    9

    Re: Not Able to Run Java Program From Eclipse

    Hi All,
    I have the solution of this problem. Actually i have while install linux i made 3 partition. I install linux on one partition and using another partition to store data.
    I have create the workspace on the one of them partition (partition on which linux is not install)..

    I move the workspace under /home/user_name/ and it start working.

    Thank you all for your time.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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