Home » Eclipse Projects » Eclipse 4 » Unable To Launch (Running Karel on Luna)
Show: Today’s Messages :: Show Polls :: Message Navigator
Unable To Launch [message #1726241]
Thu, 10 March 2016 17:05
robert fl Messages: 13 Registered: March 2016
I get the unable to launch message when I try to run my first program. I have gone thru installing Eclipse instruction and I am at a lost as to what do to. I am on Luna and there is a screen shot included.
[Updated on: Sat, 12 March 2016 11:06]
Re: Unable To Launch [message #1726259 is a reply to message #1726241]
Thu, 10 March 2016 18:54
Paul Roubekas Messages: 207 Registered: March 2012 Location: Chattanooga, TN USA
A sequence of screen captures would help diagnose the problem. In other words what is being done to «launch» the class.
One thing I do see is that there is no «main()» method. Therefore «Run As» Java Application should have issues.
Re: Unable To Launch [message #1726360 is a reply to message #1726259]
Fri, 11 March 2016 19:25
robert fl Messages: 13 Registered: March 2016
Still working on my issue, I have noticed the the Karel program will not run as a application. Not sure how to force Eclipse to see the projects as application, not an app.
Re: Unable To Launch [message #1726366 is a reply to message #1726360]
Fri, 11 March 2016 20:26
Paul Roubekas Messages: 207 Registered: March 2012 Location: Chattanooga, TN USA
Have you tried adding a main() method?
I could be wrong, but for me that seem to me to trigger eclipse into seeing a class as a java application.
Eclipse Java error: This selection cannot be launched and there are no recent launches
I have looked everywhere on the internet and tried everything the forums say to do and nothing works. This error keeps coming up. I have tried running my java project (not for android) even the drop down run as button doesn’t work because it says «none applicable».
9 Answers 9
Eclipse needs to see a main method in one of your project’s source files in order to determine what kind of project it is so that it can offer the proper run options:
Without that method signature (or with a malformed version of that method signature), the Run As menu item will not present any run options.
Check, you might have written this statement wrong.
I have also just started java and was facing the same error and it was occuring as i didn’t put [] after args. so check ur statment.
When you create a new class file, try to mark the check box near
this will help you to fix the problem.
click on the project that you want to run on the left side in package explorer and then click the Run button.
Make sure the «m» in main() is lowercase this would also cause java not to see your main method, I’ve done that several times unfortunately.
Have you checked if:
I am a newbie who try to run a helloworld example and just got the same error as yours, and these work for me.
Check if the filename is same as the classname used by your program.
filename should be Dfs.java
It happens when sometimes we copy or import the project from somewhere. The source folder is a big thing to concern about.
One simple technique is, create a new project, inside the source folder, create a new class and paste the content over there.
Not the answer you’re looking for? Browse other questions tagged java eclipse or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
when i try to launch my java class it gives a error message;
«The application cannot be launched and there is no other recent launches.»
Also, when i look at the preference-> launching-> default launchers, there is nothing here.
In addition, there no Java Project option under the file->new directory.
What is the problem, can you help?
Re: unable to launch [message #790837 is a reply to message #790811]
Sat, 04 February 2012 23:13
David Wegener Messages: 1441 Registered: July 2009
On 02/04/2012 04:16 PM, yasin alm wrote: > hi, > > I have a problem that some other users face. > > when i try to launch my java class it gives a error message; > > «The application cannot be launched and there is no other recent launches.» > > Also, when i look at the preference-> launching-> default launchers, > there is nothing here. > In addition, there no Java Project option under the file->new directory. > > What is the problem, can you help? It sounds like you don’t have the Java development tools installed. What version/package of Eclipse did you download?
Re: unable to launch [message #791137 is a reply to message #790837]
Sun, 05 February 2012 10:36
yasin alm Messages: 3 Registered: February 2012
eclipse-jdt is installed, too.Version of both eclipse and jdt is 3.7.1
Re: unable to launch [message #791241 is a reply to message #791137]
Sun, 05 February 2012 14:07
Nick Clevery Messages: 50 Registered: January 2012
Re: unable to launch [message #792063 is a reply to message #791137]
Mon, 06 February 2012 15:14
David Wegener Messages: 1441 Registered: July 2009
The platform details indicate a very minimal Eclipse program. The JDT Feature isn’t listed in the Features and none of the JDT plugins show up in the Plugin list.
How did you install Eclipse? If you used your Linux distributions package mechanism (apt, yum, etc.) then you need to uninstall if from there, go to eclipse.org and download a zip file for the version/package of Eclipse that you want to use.
Distribution packaged Eclipse versions are very difficult to get working.
Re: unable to launch [message #794494 is a reply to message #792063]
Thu, 09 February 2012 11:17
yasin alm Messages: 3 Registered: February 2012
The platform details indicate a very minimal Eclipse program. The JDT Feature isn’t listed in the Features and none of the JDT plugins show up in the Plugin list.
How did you install Eclipse? If you used your Linux distributions package mechanism (apt, yum, etc.) then you need to uninstall if from there, go to eclipse.org and download a zip file for the version/package of Eclipse that you want to use.
Distribution packaged Eclipse versions are very difficult to get working.