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 IDE 2018-19 на Linux Mint.После написания кода программы и нажатия на соотвествующую кнопку или на клавишу F12,ничего не происходит,настройки «Run Configurations» так же не открываются и возникает ряд ошибок,в том числе: «An error has occurred. See error log for more details. java.lang.NullPointerException».«The selection cannot be launchpad,and there are no recent launches».
Версия Java: java version «1.8.0_191» Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) Server VM (build 25.191-b12, mixed mode)
P.s.Являюсь новичком в Linux Mint,возможны отсутствия каких-либо настроек системы и переменных окружения.
P.s.s. Если написал не в тот раздел,просьба не ругать.
Решено:проблема заключалась в несовместимости JDK и Eclipse,после установки Eclipse-Neon все заработало.
Чтобы не было таких проблем, лучше сначала попробовать писать и запускать программки без IDE. Потом будет понятнее, что именно представляет собой запуск в IDE и где причина проблемы.
Ошибка не имеет отношения к Mint. Вы что-то неправильно делаете в Еclipse. По крайней мере, надо создать проект, оттранслировать его, потом запускать командами в меню. Run Configuarations позволяют выбрать параметры запуска, если нужны особые. Для Java это как минимум имя класса, содержащего main. В большинстве случаев Run Configuration создаётся автоматически.
В общем, изучайте использование Eclipse.
Ещё лучше научиться пользоваться Eclipse раз уж начал. Потом ознакомиться с остальным по желанию.
Что касается IDEA, то есть разница между бесплатной и коммерческой версией, причём коммерческая не лучше бесплатной Eclipse (ИМХО).
И хоть я ни на кого не намекаю, но по моим наблюдениям хоть IDEA иногда предпочитают хорошие програмисты, но у плохих программистов просто повальное увлечение ею. Не знаю, чем это вызвано. Может, им умный мальчик Вовочка сказал, что IDEA самая лучшая, а взрослые дяди и не знают. Чего не знаю, гадать не буду.
Details of error: —- Error in final launch sequence Failed to execute MI command: -exec-run Error message from debugger back end: Error creating process /cygdrive/c/Users/Genius/workspace/Project/Debug/Project.exe, (error 193). Error creating process /cygdrive/c/Users/Genius/workspace/Project/Debug/Project.exe, (error 193). —-
Could I be missing something in configuration?
—— Error in final launch sequence Failed to execute MI command: -exec-run Error message from debugger back end: Error creating process /cygdrive/e/Users/Genius/workspace/Project/Debug/Project.exe, (error 193). Error creating process /cygdrive/e/Users/Genius/workspace/Project/Debug/Project.exe, (error 193). ——
While searching over this issue, I had came across posts in different forums stating Launch of program failed as it had issues with permissions and better to have workspace in primary partition (not sure why?). To square out that I copied over workspace contents to C:\ (C:\Users\Genius\workspace\) but that also did not help.
—- Error in final launch sequence Failed to execute MI command: -exec-run Error message from debugger back end: Error creating process /cygdrive/c/Users/Genius/workspace/Project/Debug/Project.exe, (error 193). Error creating process /cygdrive/c/Users/Genius/workspace/Project/Debug/Project.exe, (error 193). ——-
There are no spaces in the path.
From cygwin prompt, I can compile, debug and run program fine. So I have feeling there could be some settings my project would be missing.
Running program in gdb on cygwin prompt the one generated by cygwin runs fine: —— Genius@Genius-PC /cygdrive/e/Users/Genius/workspace/Project/src $ gdb.exe a.exe GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type «show copying» and «show warranty» for details. This GDB was configured as «i686-pc-cygwin». Type «show configuration» for configuration details. For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type «help». Type «apropos word» to search for commands related to «word». .. Reading symbols from /cygdrive/e/Users/Genius/workspace/Project/src/a.exe. done. (gdb) start Temporary breakpoint 1 at 0x4012dd Starting program: /cygdrive/e/Users/Genius/workspace/Project/src/a.exe [New Thread 6880.0xc40] [New Thread 6880.0×2064]
Temporary breakpoint 1, 0x004012dd in main () (gdb) continue Continuing. #1 Move disk 2 from 1 to 3. #1 Move disk 1 from 1 to 2. #2 Move disk 1 from 1 to 2. #2 Move disk 2 from 1 to 3. #1 Move disk 1 from 2 to 3. #2 Move disk 1 from 2 to 3. [Inferior 1 (process 6880) exited normally] ——
But when I try to load the executable in gdb generated by Eclipse, I see the same on cygwin also:
Help to resolve above is highly appreciated.
Error 193 means that Project.exe is not a valid executable. There seems something wrong with your compiler settings. In this thread http://stackoverflow.com/questions/2229247/gdb-fails-with-error-193-when-debugging-mingw-compiled-code a similar problem was reported. See second answer.
Error 193 means that Project.exe is not a valid executable. There seems something wrong with your compiler settings. In this thread link removed a similar problem was reported. See second answer.
Thanks Axel, that did the trick, now atleast program starts in debugger. In addition I installed mingw-core and mingw-g++ packages available for cygwin.
Though the next issue I am running into is being not able to Debugger perspective is not able. When I run the program as Debug, it launches Debug perspective but than I see message «No source available for «ntdll!ZwReadFile() at 0x7786f905» and due to this breakpoints and stepping through code in Debugger perspective is not operational at present. Will try to look around for this issue. In case if you know how to resolve pls let me know.
Update: The above problem «No source available for «ntdll!ZwReadFile() at 0x7786f905» went away. Had to clean Debug Configuration. Deleted the earlier generated listing of Project.exe and performed clean build again and this time it went fine. Only issue was during exit, it seems its displaying the message as below. Not sure if that’s an issue or not.
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.
Home » Newcomers » Newcomers » Unable to launch Eclipse in Ubuntu (Eclipse cannot be launched in Ubuntu. I found the same error reported by others.. )
Show: Today’s Messages :: Show Polls :: Message Navigator
Unable to launch Eclipse in Ubuntu [message #1806003]
Tue, 30 April 2019 10:36
Emil Oanta Messages: 2 Registered: April 2015
Several similar errors were reported, without any solution, so far:
I removed and re-install Eclipse several times using various methods but the error is the same. I still want to use Eclipse in my projects, because I consider it is a reliable IDE. However, now I am under presser to complete a project and I don’t like to search for alternatives to Eclipse.
Any idea is welcome!
Re: Unable to launch Eclipse in Ubuntu [message #1806035 is a reply to message #1806003]
Wed, 01 May 2019 07:34
Ed Merks Messages: 32092 Registered: July 2009
You should install the Eclipse version you get from https://www.eclipse.org/downloads/ because if you get it from somewhere else, e.g., Ubuntu Developer Tools, then I have no idea which version you have. Furthermore it sounds like it’s an older version that don’t work with Java 9 or higher which is a known issue with older versions of Eclipse.
Re: Unable to launch Eclipse in Ubuntu [message #1806329 is a reply to message #1806035]
Tue, 07 May 2019 18:49
Patrick Moran Messages: 141 Registered: March 2018
When Eclipse crashes itself or when I write software that asks the computer to do something impossible and/or harmful, it is rather astounding how far the knock-on effects can go on. I think that reinstalling Eclipse from the official site is the right way to go, but before you do that I think it would be helpful to make sure that your system is free of all old Eclipse traces. and also run whatever software is available to you to check your file system and other system attributes to assure that there are no sunken logs in those waters./
Re: Unable to launch Eclipse in desktop icon [message #1815999 is a reply to message #1806003]