4 Replies - 985 Views - Last Post: 04 February 2012 - 09:07 AM Rate Topic: -----

#1 tomasmk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 12-October 11

Eclipse wont let me launch my code as a Java Application

Posted 04 February 2012 - 08:02 AM

Hi,
I'm helping a friend that has been working on C++ and now needs to learn Java. He downloaded the C++ version of Eclipse, of course. Problem is, now that we are starting with some real simple Java programs, Eclipse wont even launch them. It doesnt gives me the option to launch as Java Applet. On my computer I would go to Run As--->Java Application. Here it only says "none applicable".

Yes I have already installed the compiler, and yesterday we were able to run some java from eclipse, so I dont know why its not giving me this option anymore.

Thanks for your help!

Is This A Good Question/Topic? 0
  • +

Replies To: Eclipse wont let me launch my code as a Java Application

#2 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2194
  • View blog
  • Posts: 5,222
  • Joined: 10-September 10

Re: Eclipse wont let me launch my code as a Java Application

Posted 04 February 2012 - 08:04 AM

Can't help without the code. Even then it's questionable, but we'll do our best.

This post has been edited by GregBrannon: 04 February 2012 - 08:04 AM

Was This Post Helpful? 0
  • +
  • -

#3 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1752
  • View blog
  • Posts: 4,409
  • Joined: 14-March 10

Re: Eclipse wont let me launch my code as a Java Application

Posted 04 February 2012 - 08:12 AM

I would advice download a Java Version of Eclipse then, this will simply the work of needing a C++ version to run Java code!!
Was This Post Helpful? 1
  • +
  • -

#4 blackcompe  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1131
  • View blog
  • Posts: 2,484
  • Joined: 05-May 05

Re: Eclipse wont let me launch my code as a Java Application

Posted 04 February 2012 - 08:18 AM

smohd is probably right. The C++ bundle doesn't have JDT (org.eclipse.jdt). Download the Java bundle.

This post has been edited by blackcompe: 04 February 2012 - 09:12 AM

Was This Post Helpful? 0
  • +
  • -

#5 GregBrannon  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2194
  • View blog
  • Posts: 5,222
  • Joined: 10-September 10

Re: Eclipse wont let me launch my code as a Java Application

Posted 04 February 2012 - 09:07 AM

Quote

Yes I have already installed the compiler, and yesterday we were able to run some java from eclipse, so I dont know why its not giving me this option anymore.

And this was on your friend's computer with his C++ install of Eclipse?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1