Eclipse Juno can't run any Java project

25
2014-05
  • URL87

    I use Eclipse Juno - Eclipse IDE for C/C++ Developers , and I can't run any Java project , mean even there is no "Run" option .

    For example when I right click on the Main class I just see (no "Run") -

    enter image description here

    I use jdk1.7.0_17 and jre7 and they both locates at -

    C:\Program Files\Java\jdk1.7.0_17
    C:\Program Files\Java\jre7
    

    My JAVA_HOME environmental variable point on C:\Program Files\Java\jre7;C:\Program Files\Java\jdk1.7.0_17; .

    Using Win7 .

    I could run java before until I added Egit extension for the Eclipse .

    Any solution please ?

    Edit:

    That's what has under "Run configurations" -

    enter image description here

    Could it be this Eclipse version isn't provide Java running ?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    windows vista - I can not start Eclipse anymore
  • Jonas

    Today, I can not start Eclipse anymore. It worked fine yesterday, then I got a few Windows Updates before turning off the computer. And I also updated to the latest Java RE 1.6_u20 yesterday, but Eclipse has worked fine after that.

    When I start Eclipse 3.4 today, the UAC ask me for the Administrator password, and then the Eclipse Splash shows up for a short while, after that nothing more happens. And If I try to start Eclipse 3.5, the same thing happens except the UAC.

    What can the problem be? How can I solve this?

    Update: I have now downloaded the newest Eclipse from the hompage. I unzipped and tryed to start, but I get the same symptoms. Isn't it compatible with the newest JRE 1.6_u20?

    Update 2: I have tried many things now, but I can not run Eclipse without UAC asking for the Administrator password. And Eclipse doesn't find my printer. Something is wrong with my Eclipse setup. I have tried to download Eclipse again, but it doesn't even start. It could be something with my JRE configuration too. Any suggestions?

    If I log in as Administrator on my computer start Eclipse, then UAC still pops up and says "An unidentified program wants access to your computer" (translated by me), and I have to agree before Eclipse starts.

    Update 3: It seem to be a problem with JRE on my computer, see I can not start a .jar-file by double-clicking, only from command-line in Windows. Any suggestions?


  • Related Answers
  • ukanth

    Edit your eclipse.ini file and add/change -vm option and then start eclipse.exe

    -vm 
    D:/work/Java/jdk1.6.0_13/bin/javaw.exe
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256M
    -framework
    plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m
    

    You can find more information about these settings on stackoverflow

  • simonn

    Try running eclipsec.exe (rather than eclipse.exe) from a command prompt window. You may see something written to the console before eclipse crashes.

    Have you made any changes to eclipse.ini?

    Have you tried adding the location of the JRE to your eclipse command line option (the -vm argument)?