Ошибка eclipse a program files

I am facing some problems regarding eclipse for c/c++. I am trying to create a new project, I provide the code, and after running the code I get this error:

The program file specified in the launch configuration does not exist
C:UserselisabethworkspacemmDebugmm.exe not found

Please notice that I am working with spice toolkit; I set the path for the «include» files and the libraries, but still I can not have a result.

What causes this error and how can I resolve it?

KatieK's user avatar

KatieK

13.5k17 gold badges76 silver badges90 bronze badges

asked Dec 3, 2012 at 19:55

user1873644's user avatar

1

  1. Right click on your project —> Properties
  2. Run/Debug settings
  3. Delete whatever is set as «launch configuration for ‘……..’
  4. Project —> Clean
  5. Project —> Build Project

answered Jul 27, 2013 at 9:41

Nenad Bulatović's user avatar

Nenad BulatovićNenad Bulatović

7,19814 gold badges82 silver badges113 bronze badges

0

You can create a run configuration. Go to Run > Run Configurations. Click New button, fill C/C++ Application field, i.e., insert path to your executable. The new configuration will appear in the list which appears when you click to the arrow next to run button.

Of course this assumes your can build without problems, otherwise you won’t see an executable to point to.

answered Dec 6, 2012 at 14:34

incrediblehulk's user avatar

You can clean the project, build it again and run it as a local C/C++ application. Simplified steps as follows,

  1. Right click on the project
  2. Clean Project
  3. Again Right click on the project
  4. Build Project
  5. Again Right click on the project
  6. Run As ->
  7. Local C/C++ Application

answered Jun 14, 2014 at 19:26

Tahseen's user avatar

TahseenTahseen

872 silver badges9 bronze badges

As the error reads:

C:UserselisabethworkspacemmDebugmm.exe not found
  1. First of all you need to check whether there is an executable «mm.exe» in your Debug folder. (Of course, it is not there and that is why the error)

  2. Go to Project > Clean
    and you should see some files being deleted from your Debug folder

  3. Go to Project > Build Project
    and you should see some new files being generated e.g. mm.d, mm.o, mm. This «mm» is probably the executable you’re looking for

  4. Now that you know what your executable is, you should tell eclipse what file to execute instead of mm.exe. Go to Project properties and in run debug settings create a new configuration (or edit an existing configuration, if there is one already). In this configuration, in main tab, in C/C++ Application specify a full path to «mm». Which, in your case is — "C:UserselisabethworkspacemmDebugmm"
    A better way to do this in eclipse is:

    ${project_loc}/»your folder»/»your executable file»

e.g.${project_loc}/Debug/mm

Ankur's user avatar

Ankur

5,08619 gold badges37 silver badges62 bronze badges

answered Apr 20, 2013 at 17:08

sdevikar's user avatar

sdevikarsdevikar

4276 silver badges20 bronze badges

what worked for me is file->refresh

then do the Debug configuration again by choosing the right c/c++ binary again.

answered Aug 5, 2016 at 14:18

Samer's user avatar

SamerSamer

1,9133 gold badges34 silver badges54 bronze badges

Avoid troubles with configuration by going into Project properties > C/C++ build > Refresh Policy and specify your project folder. The configuration option «Search project» will show a correct folder then and you will see whatever you build there — Debug, Release or both. You don’t want to specify the folder using Browse option every time you import project or switch configurations.

answered May 15, 2013 at 18:10

Vlad's user avatar

VladVlad

4,3851 gold badge30 silver badges39 bronze badges

As this is the first SO discussion that appears for this topic on Google and none of the answers solved the problem my students were having, I would like to mention the solution we eventually found from this answer:

  1. Open project properties (Right click on your project, choose Properties on the menu)
  2. C/C++ Build -> Settings
  3. Click on Binary Parsers tab and check PE Windows Parser
  4. Keep clicking Move Up until it is at the top

This had been set to Elf, even though we were using a freshly downloaded Windows version of Eclipse.

Community's user avatar

answered Dec 15, 2017 at 15:07

James Raynard's user avatar

sometime missed closing curly brace can be part of a problem. Make sure prototype your function at the beginning of the file. Then right click your project in the left side bar. click clean project. then click build project and finally run project

answered Jul 11, 2018 at 22:16

Timucin's user avatar

I encountered similar issues and their related problems a few days ago. Finally, I found out that, just because I had moved my project folder (workspace folder of Eclipse) to another place so Eclipse could not find what its need as usual.

Solution: I just set the workspace to my new place (Hey Eclipse, my workspace now is here) :
Menu «File» -> «Switch workspace» -> «Other…» -> click «Browse…» button and point to new place then click «Select Folder» button and click «Launch» button.

Nice day.

answered Feb 11, 2022 at 23:36

thundernhut's user avatar

Если при запуске Eclipse появляется ошибка «A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: D:..eclipse-java-indigo-SR1-win32-x86_64eclipsejrebinjavaw.exe javaw.exe in your current PATH», то это говорит о том, что наш запускаемый Eclipse не может найти путь к JDK/JRE, а конкретно к файлу javaw.exe.

Eclipse Error javaw.exe

Один из предлагаемых вариантов лечения: добавлением пути к файлу javaw.exe в переменную окружения Path, о чем и написано в сообщении.

Так как у меня javaw.exe находиться по пути «C:Program Files (x86)Javajre6bin», то это путь и был добавлен в переменную окружения «PATH».

Для Windows 7 (32/64) последовательность действия следующая:
Заходим в свойства компьютера (Клавиши Win + Pause/Break).
Свойства системы. Windows 7
Потом в левом меню выбираем «Дополнительные параметры системы». Дополнительные параметры системы
Затем заходим в раздел «Переменные среды».
Переменные среды
Находим в списке переменных переменную «Path» и открываем диалог редактирования ее.
Редактирование переменной окружения Path
В диалоге редактирования добавляем через точку запятую путь «C:Program Files (x86)Javajre6bin».
Закрываем все кнопками Ок.

Пробуем еще раз запустить Eclipse. По идее все должно получиться (у меня получилось), ну или хотя бы мы должны увидеть другую ошибку. :)

Скачал Eclipse java, и при попытке запуска увидел такую ошибку: failed to load the jni shared library и путь к файлу. Гуглил, был совет установить Джаву и Эклипс для одной версии (х82 или х64) но и это не помогло. Больше советов не нашел. Или плохо искал. Никто не поможет? В долгу не останусь!

бонус за лучший ответ (выдан): 20 кредитов

Возможно в настройках эклипса (eclipse.ini) остался путь к jre для другой архитектуры.

Добавьте -vm [Путь к JDK]binjavaw.exe . eclipse.ini находится в той же директории, что и сама программа

автор вопроса выбрал этот ответ лучшим

v eclipse.ini menjajte preblezitelno tak /PS. isprobova na trio: w8 64bit, java7 64 i eclipse EE Developers 64b:

-startup

plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar

—launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222

-product

org.eclipse.epp.package.java.product

—launcher.defaultAction

openFile

—launcher.XXMaxPermSize

512M

-showsplash

org.eclipse.platform

-vm

C:Program FilesJavajdk1.6.0_32binjavaw.exe

—launcher.XXMaxPermSize

256m

/512m esli potjanet komp

—launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

/120m samoe to!

-Xmx512m

/ i 1024m

Я сделал чуть по другому (с установленной через exe-шник чет не пошла. Все ровно выходила ошибка). Скачал это http://download.oracle.com/otn-pub/java/jdk/7u21-b11/jre-7u21-windows-x64.tar.gz распаковал в папку с Eclips (необязательно в эту папку, но я на всякий случай чтобы носить с собой на флешке и Eclips и JRE), в PATH прописал папку bin. И все заработало.

tensa zange­tsu
[6.9K]

10 лет назад 

Нашёл в чем проблема. Возможно прозвучит глупо, но я установил Джаву в папку с Эклипсом, а в отдельный католог. Вот оттуда то и ругань с ошибками…

Попробуй использовать другую виртуальную машину

Знаете ответ?

Наверняка многие из вас сталкивались с ошибкой запуска Eclipse:

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:Program Files(x86)Eclipse Classic 4.2.2jrebinjavaw.exe javaw.exe in your current PATH

Эта ошибка говорит нам о том, что Eclipse не может найти путь к Java Runtime Environment или Java Development Kit. Сейчас я вам расскажу причины возникновения такой ошибки и способы ее устранения.

В Интернете многие советуют добавить путь к файлу javaw.exe в переменную окружения Path, но этого не стоит делать. Нет, не потому что можно что-либо сломать, а потому что появится другая ошибка:

Failed to load JNI shared library «Program Files (x86)Javajdk1.6.0_20jrebinclientjvm.dll»

Дело в том, что для работы Eclipse требуется виртуальная машина и внимание: именно той разрядности (x86 или x64), которую имеет установленная версия Eclipse. Другими словами, если у вас установлен Eclipse для платформы x86, то для запуска этой IDE требуется наличие установленной виртуальной машины для платформы x86.

Итак, когда вы определились с разрядностью Eclipse, вам нужно скачать виртуальную машину. Для этого, зайдите на сайт www.java.com/en/ и вверху страницы вибираем ссылку «Download», затем на открывшейся странице жмем ссылку «See all Java downloads» и скачиваем Java именно той разрядности, какой разрядности у вас Eclipse.

Если вы все сделали правильно, после установки Java, Eclipse запустится без каких-либо ошибок.

2013-05-19 20:06

Понравился сайт? Расскажи о нем друзьям:

Comments to Notes: 52

  • Forum
  • UNIX/Linux Programming
  • Trouble making Eclipse CDT work.

Trouble making Eclipse CDT work.

Hello, all. So, I’m a novice programmer who recently took to running eclipse for c++ coding on my Unix machine (Ubuntu). I can’t seem to get past two errors:

1) ‘Launch failed. Binary not found’.

2) ‘The program file specified in the launch configuration does not exist’.

I haven’t found a satisfactory solution for the first, and I have found nothing at all for the second. Does anyone know the solutions for these problems? Or perhaps just what these error messages entail? I don’t know too much.

Thanks!

How did you install Eclipse CDT?

apt-get install eclipse-cdt, 64-bit

Yeah, that should be fine. It sounds as if your project simply wasn’t built correctly (e.g. due to compile errors).

What do you mean? Any project for which this is a problem (basically anything beyond helloworld.cpp) builds and runs fine in other IDEs. Argh!

Last edited on

Do you have any idea what possible configuration hiccups could explain these errors?

Well, what are the error messages you get when you build the project (if any)?
(Build All/Ctrl+B or the hammer symbol)

Below is just one example:

This code has worked before (in codeblocks and with g++ from command line), but I have also gotten these errors before:

Invoking: Cross G++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF»conditionals.d» -MT»conditionals.d» -o «conditionals.o» «../conditionals.cpp»
../conditionals.cpp: In function ‘void conditionals()’:
../conditionals.cpp:9:2: error: ‘cout’ was not declared in this scope
../conditionals.cpp:10:3: error: ‘cin’ was not declared in this scope
make: *** [conditionals.o] Error 1

**** Build Finished ****

—————————————————————————————————————————————

separately compiled CODE. This code gives me error #2 (‘The program file specified in the launch configuration does not exist’). I wrote it to test this problem.

headers.h —
void threeNplusOne();

threeNplusOne.cpp —

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>                     // iostream inclusion doesn't seem to matter. 

void threeNplusOne()
{
    int seed;

    std::cout << "what seed? ";
    std::cin >> seed;

    do {
        (seed % 2 == 0) ? (seed = seed >> 1) : (seed = 3*seed + 1);
        std::cout << seed << std::endl;
    } while(seed != 1);

    return;
}

testing.cpp —

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

#include "headers.h"

using namespace std;

int main()
{
    threeNplusOne();

    return 0;
}

Last edited on

You didn’t include <iostream> in threeNplusOne.cpp, so it isn’t surprising that it doesn’t compile.

It doesn’t matter. It originally did (I changed it just because I wanted to see how the errors changed), and does now (I changed it back for ya!). Same errors.

You have errors in «conditionals.cpp», but you posted no such file.
Please provide complete information about your code, what you were doing and what happened as a result.

This code gives me error #2 (‘The program file specified in the launch configuration does not exist’). I wrote it to test this problem.

I find that hard to believe. Merely building the project will never attempt to launch it.

The error was had when launched, of course. And uh, this is embarrassing… for some reason there is a stray file from another project in this file, explaining these errors. Actually, it’s the originally named 3n+1, but unremoved. I’m going to have to get back to you on this. Thanks a lot for you help.

Last edited on

Also, what is the deal with the binaries? How do I get eclipse to make them for me?

You get them by building the project. They will be placed in your project’s folder.

Topic archived. No new replies allowed.

Возможно, вам также будет интересно:

  • Ошибка ecl стиральная машина lg что значит
  • Ошибка echo 02 the division 2
  • Ошибка emissions workshop фольксваген туран
  • Ошибка emissions workshop фольксваген пассат
  • Ошибка email failed to send

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии