Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Unable to run Java project
Unable to run Java project [message #1822599] Tue, 10 March 2020 12:17 Go to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
I downloaded Luna Eclipse for Java - eclipse-java-luna-R-win32-x86_64
When I run eclipse.exe I get a message
Quote:

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.

But I installed JDK 13. (jdk-13.0.2).
How can I resolve the problem?
Re: Unable to run Java project [message #1822601 is a reply to message #1822599] Tue, 10 March 2020 12:25 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Please choose compatible versions: Eclipse Luna is very old, Java 13 is much newer, hence Luna cannot recognize the JRE.
Re: Unable to run Java project [message #1822606 is a reply to message #1822601] Tue, 10 March 2020 13:05 Go to previous messageGo to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Stephan Herrmann wrote on Tue, 10 March 2020 12:25
Please choose compatible versions: Eclipse Luna is very old, Java 13 is much newer, hence Luna cannot recognize the JRE.

What version do you recommend?
Re: Unable to run Java project [message #1822607 is a reply to message #1822606] Tue, 10 March 2020 13:08 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
The latest release :), i.e., Eclipse 2019-12 (which will be superceded by 2020-03 on March 18).
Re: Unable to run Java project [message #1822608 is a reply to message #1822607] Tue, 10 March 2020 13:10 Go to previous messageGo to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Stephan Herrmann wrote on Tue, 10 March 2020 13:08
The latest release :), i.e., Eclipse 2019-12 (which will be superceded by 2020-03 on March 18).

I have this release installed. But it has no Java IDE. Only C/C++ Project environment.
Re: Unable to run Java project [message #1822609 is a reply to message #1822608] Tue, 10 March 2020 13:17 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Quote:
But it has no Java IDE. Only C/C++ Project environment.


Then you probably didn't install the package you want. Did you see that there is a package called "Eclipse IDE for Java Developers"?
Re: Unable to run Java project [message #1822610 is a reply to message #1822609] Tue, 10 March 2020 13:27 Go to previous messageGo to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Stephan Herrmann wrote on Tue, 10 March 2020 13:17
Quote:
But it has no Java IDE. Only C/C++ Project environment.


Then you probably didn't install the package you want. Did you see that there is a package called "Eclipse IDE for Java Developers"?

Yes but it goes as a stand alone packet - eclipse-java-kepler-SR1-win32-x86_64.zip.
Should I port it in IDE somehow?

[Updated on: Tue, 10 March 2020 13:28]

Report message to a moderator

Re: Unable to run Java project [message #1822612 is a reply to message #1822610] Tue, 10 March 2020 13:36 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Quote:
eclipse-java-kepler-SR1-win32-x86_64.zip


This is *not* the newest release, in fact it's even older than Luna. I have no idea where you are looking. Is it so hard to use https://download.eclipse.org? For fundamental questions regarding download I actually suggest another forum: https://www.eclipse.org/forums/index.php/f/89/

Quote:
Should I port it in IDE somehow?


Of course you can point an existing installation to the update site containing the latest bits, but given you spoke about Luna, I strongly recommend to make a clean new installation instead of fetching many years worth of updates and fiddling around to make everything compatible. Plus: if your previous installation didn't run, then there simply is no way to install any updates.
Re: Unable to run Java project [message #1822633 is a reply to message #1822612] Tue, 10 March 2020 15:36 Go to previous messageGo to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Stephan Herrmann wrote on Tue, 10 March 2020 13:36
Quote:
eclipse-java-kepler-SR1-win32-x86_64.zip


This is *not* the newest release, in fact it's even older than Luna. I have no idea where you are looking. Is it so hard to use https://download.eclipse.org? For fundamental questions regarding download I actually suggest another forum: https://www.eclipse.org/forums/index.php/f/89/

Quote:
Should I port it in IDE somehow?


Of course you can point an existing installation to the update site containing the latest bits, but given you spoke about Luna, I strongly recommend to make a clean new installation instead of fetching many years worth of updates and fiddling around to make everything compatible. Plus: if your previous installation didn't run, then there simply is no way to install any updates.

OK. I downloaded the new eclipse-java-2019-12-R-win32-x86_64. What should I do with it? It's not like a plug-in to the Eclipse.
Re: Unable to run Java project [message #1822645 is a reply to message #1822633] Tue, 10 March 2020 17:17 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 123
Registered: February 2018
Senior Member
Evgeny Erenburg wrote on Tue, 10 March 2020 16:36
OK. I downloaded the new eclipse-java-2019-12-R-win32-x86_64. What should I do with it? It's not like a plug-in to the Eclipse.

Well, it is Eclipse IDE. Just unzip the archive then run eclipse.exe
Re: Unable to run Java project [message #1822663 is a reply to message #1822645] Wed, 11 March 2020 06:01 Go to previous messageGo to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Emmanuel Chebbi wrote on Tue, 10 March 2020 17:17
Evgeny Erenburg wrote on Tue, 10 March 2020 16:36
OK. I downloaded the new eclipse-java-2019-12-R-win32-x86_64. What should I do with it? It's not like a plug-in to the Eclipse.

Well, it is Eclipse IDE. Just unzip the archive then run eclipse.exe

The same problem - it says
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse.
Re: Unable to run Java project [message #1822665 is a reply to message #1822663] Wed, 11 March 2020 07:18 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
You must have Java 8 (or higher) 64 bit installed on your system:

https://wiki.eclipse.org/Eclipse/Installation#Install_a_JVM

If you'd used the Eclipse Installer instead of unzipped a package it would have sent you to a page like this:

https://download.eclipse.org/oomph/jre/?vm=1_1_8_0_64_0&pi=http://www.eclipse.org/downloads/images/java.png&pn=Eclipse%20IDE%20for%20Java%20Developers


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Unable to run Java project [message #1822666 is a reply to message #1822665] Wed, 11 March 2020 07:55 Go to previous messageGo to next message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Ed Merks wrote on Wed, 11 March 2020 07:18
You must have Java 8 (or higher) 64 bit installed on your system:

https://wiki.eclipse.org/Eclipse/Installation#Install_a_JVM

If you'd used the Eclipse Installer instead of unzipped a package it would have sent you to a page like this:

https://download.eclipse.org/oomph/jre/?vm=1_1_8_0_64_0&pi=http://www.eclipse.org/downloads/images/java.png&pn=Eclipse%20IDE%20for%20Java%20Developers

Thank you. Now I can open an existing project but when I try to build I get this error -
The project cannot be built until build path errors are resolved. Do I need to configure something?
Re: Unable to run Java project [message #1822670 is a reply to message #1822666] Wed, 11 March 2020 08:57 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 123
Registered: February 2018
Senior Member
Evgeny Erenburg wrote on Wed, 11 March 2020 08:55
Thank you. Now I can open an existing project but when I try to build I get this error -
The project cannot be built until build path errors are resolved. Do I need to configure something?

You are likely missing a dependency, the solution depends on what is missing exactly. Could you:

  • Check the error displayed in the Problems view to have more details about what is missing,
  • Tell us what kind of project it is (Maven, plain Java, etc.),
  • Open the project's build path (right-click on the project > Properties > Java Build Path > Order and Export) and check if a resource is marked as missing (with a little red cross)

Re: Unable to run Java project [message #1822673 is a reply to message #1822670] Wed, 11 March 2020 09:22 Go to previous message
Evgeny Erenburg is currently offline Evgeny ErenburgFriend
Messages: 10
Registered: February 2020
Junior Member
Emmanuel Chebbi wrote on Wed, 11 March 2020 08:57
Evgeny Erenburg wrote on Wed, 11 March 2020 08:55
Thank you. Now I can open an existing project but when I try to build I get this error -
The project cannot be built until build path errors are resolved. Do I need to configure something?

You are likely missing a dependency, the solution depends on what is missing exactly. Could you:

  • Check the error displayed in the Problems view to have more details about what is missing,
  • Tell us what kind of project it is (Maven, plain Java, etc.),
  • Open the project's build path (right-click on the project > Properties > Java Build Path > Order and Export) and check if a resource is marked as missing (with a little red cross)


I don't know how to find the project's kind. But I found this is missing -
Unbound classpath container: 'JRE System Library [jre1.8.0_25]'
Can I download and install the library?

I see. Thank you. It's an old library. I choose the new one jre1.8.0_241 and it works.

[Updated on: Wed, 11 March 2020 09:41]

Report message to a moderator

Previous Topic:Photon and JD-Eclipse
Next Topic:Where can I find the "error history" in the console?
Goto Forum:
  


Current Time: Fri Mar 29 15:06:39 GMT 2024

Powered by FUDForum. Page generated in 0.04882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top