java 8 support for Eclipse Indigo [duplicate] - java

I just read How to have Eclipse use JDK8 to compile a project?
What i added jdk8 to eclipse as,
From the answers of How to have Eclipse use JDK8 to compile a project?
I tried to Update the JDT/Core, JDT/UI bundles from http://dist.springsource.com/snapshot/TOOLS/java8/e43
But it shows error as,
"Eclipse Java Development Tools Patch for Java 8 Support (BETA)" is not applicable to the current configuration and will not be installed.
"Eclipse Plug-in Development Environment Patch for Java 8 Support (BETA)" is not applicable to the current configuration and will not be installed.
How Can i fix it ?

I can say that Java 1.8 does in fact work with Eclipse Luna ( the beta version released around March 17, 2014) or later. I tried it and it was good.
Also, I noticed that in the Eclipse Marketplace, there are now plugins to install functionality into Kepler to support JDK1.8. I haven't tried the plugin myself though.

This is a old topic but I just wanted to point out that I have searched enough to find that Indigo version can't be updated to S.E 1.8 here the link which is given on eclipse website to update the Execution Environment but if you try it will throw error for Indigo.
Here is the link where the Information about execution environment is given.
This shows the step by step to update Execution environment.
I have tried to update Execution environment and I got the same error.

Related

The incompatible between windows builder versions and java versions and eclipse version

I encounter this problem as below:
"Eclipse is running under 0, butthis Java project has a 1.8 Java compliance level, so WindowBuilder will not be able to load classesfrom this project. Use a lower level of Java for the project, or run Eclipse using a newer Javaversion. "
I tried several ways but it did not work. I installed both java 17 and java 1.8 and changed the jre to 1.8 & the complier to 1.8. In the end, it still did not work.
The eclipse version I am using is 2018. I need it to start the SWING application and now I am into troubles.
Can you give me some suggestions? Thanks in advance!

When I download eclipse what version of JDK and JRE is being used and how can I change it?

I have downloaded the new eclipse 2022-06 and I wanted to know that what version of Java does it run on. What is the JDK and JRE and how can I create a project to run on Java 7 with a compatible JRE? Where do I select those settings or what do I additionally need to download?
Take a look at the official documentation: Eclipse/Installation
You will find for each version of Eclipse the required JRE/JDK to run it.
Instead, if you are looking for how to run a project with a different JRE/JDK, you can take a look at this guide: How to Change Java Version in an Eclipse Project

Google app engine deployment error : JDK not JRE

I'm trying to deploy the app with a .jsp file, which I figured is the reason I get an error because other projects without .jsp files have no problem.
When I try to deploy the app, I get the error : "Cannot get the System Java Compiler. Please use a JDK, not a JRE"
I tried resolving the problem using Mahmoud's solution here : Google app engine deployment : JDK not JRE
But once I have changed the eclipse.ini file, I launch Eclipse and get this error : "Version 1.7.0_80 of the JVM is not suitable for this product. Version 1.8 or greater is required"
You need to install JDK8 or JRE8 for Eclipse to execute and JDK7 for compile this application to build.
As mentioned in the error, JDK7 is not compatible with Eclipse. So you need to set your system JDK to 8 for Eclipse. Alternatively, you could instead modify the environment variables or startup script for Eclipse to reference JDK8 and avoid making this a system wide change.
Although for security purposes, I do recommend using the latest JDK/JRE as the system one for most cases.
Then within Eclipse, set the project JDK to 7.
Click through the following:
Windows -> Preferences -> Java -> Installed JRE
There you can remove the "JRE System Library", then you can add and configure another already installed JRE/JDK for this specific project.
You need the JDK for building which includes a JRE, but for deploying you only need the JRE.
The JDK includes the ability to compile Java source into executable code, where as the JRE can only execute that executable code.
You can download JDK from Oracle's site here: Oracle Java JDK 8

Java Card 3 Platform development kit is installed failed

I am new to Java Card development. During in the installation of development kit, I have some troubles and have no idea.
First of all, I downloaded the Java Card Platform from Oracle and install it step by step according to: https://docs.oracle.com/javacard/3.0.5/guide/eclipse_java_card_plug-in.htm#JCUGC126
But during installation the following error appeared:
I checked that the path of JC_classic_HOME is okay. Maybe the problem is caused by the incompatibility of the Java Card Platform and JCOP. So, I unload the JCOP and install it again, but the error also exist.
Just as the guide said: https://docs.oracle.com/javacard/3.0.5/guide/install_and_setup_the_development_kit.htm#JCUGC118
java version "1.8.0_111"
gcc version 5.3.0
eclipse IDE version 3.5.1
Apache version 1.9.7.
I know eclipse IDE is optional. My classmate used Visual Studio 2010、 gradle and JCDK3.0.3 build the project. But my object need eclipse IDE.
I have no idea, and I want someone give me some advice. Thank you!
What version of JDK and Eclipse are you using?
According to the user guide, JDK 7(8) and Eclipse Luna are recommended
I'm using the recommended version of JDK and Eclipse, didn't encounter the error above. Perhaps, you could take a try!

Eclipse + Java 8 support?

How can I get Java 8 to work with Eclipse?
I have followed this guide but doesn't work. I've also seen the Eclipse Java 8 wiki page, but they don't explain what to do with the checked out git repositories.
For Kepler SR2 (4.3.2) a feature patch needs to be installed in order to get JAVA 8 support. Follow these steps:
Eclipse - Help (MENU) > Install New Software...
enter the following URL into the 'Work with' field:
http://download.eclipse.org/eclipse/updates/4.3-P-builds/
press 'Enter'
select category 'Eclipse Java 8 Support (for Kepler SR2)'
click 'Next'
click 'Next'
accept the license
click 'Finish'
restart Eclipse when asked
source: link
#Elisabeth
In order to have the desired JRE/ JDK on BuildPath, follow these steps.
Right click on Project from Package Explorer
Select BuildPath and then select Configure Builpath
Select Libraries Tab from the popped up Properties window
Select the current JRE System Library
Click Remove button
Click on Add Library button
Select JRE System Library
There you will be able to add your desired JRE/ JDK version using 3 different methods.
If you don't find your desired version of JRE/ JDK there in those 3 options, then you will have to install that first. The following link helps you in detail with screen shots to do the same. Hope it helps.
source: link
As written in https://wiki.eclipse.org/JDT_Core/Java8 :
"Starting with I20140318-0830 all our Luna (4.4) builds contain the Eclipse support for Java™ 8. For Kepler SR2 (4.3.2) a feature patch is available. "
So right now you need to download a non stable eclipse release.
Go to :
http://download.eclipse.org/eclipse/downloads/
There download a release older than or equals to I20140318-0830
Then you choose your version according to your OS :
click on the (http) link, the download will start :
Note that according to eclipse website :
Java™ 8 has not yet landed in our standard download packages. But you can add it to your existing Eclipse Kepler SR2 package. It will be included in the Luna packages starting with M7 on May 9/2014.
so after May 9/2014 getting eclipse working with java 8 will be simpler.
Now that Java 8 has shipped, Eclipse has released support for it. Java 8 is available as an 'update' for Eclipse Kepler (Eclipse 2013 release) and is available in integration / nightly builds towards Eclipse Luna (Eclipse 2014 release). For more information about enhancements and how to install it in your current version of the IDE, see http://eclipsesource.com/blogs/2014/03/25/eclipse-support-for-java-8/
It appears that this is still very much a work in progress (hence, there will be stability issues). Is there a particular reason you want to use Java 8?
This explains what you should be doing:
Checkout the BETA_JAVA8 branch of the following git repositories:
JDT/Core repository - git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git
You need to install a JDK8 build as an installed JRE in order to run the tests using the JavaSE-1.8 Execution Environment.
For more information on how to work with git repositories, look at http://wiki.eclipse.org/Platform-releng/Git_Workflows .
As API Baseline, use 3.8 (or 3.8 RC4 until 3.8 is released).
I have not downloaded this repo, but I would assume it contains the eclipse jdt core (as the name states). I would just wait until a stable release is finished.
As already stated here:
The Kepler release does not include Java 8 support, as Java 8 still isn't released yet. Try again with the next Eclipse release or use Eclipse beta releases like the one by e(fx)clipse. Have a look at this bug report from time to time for progress on Java 8 in Eclipse's JDT.
EDIT: Starting with I20140318-0830 all Luna (4.4) builds contain support for Java 8. The final version of Eclipse Luna (4.4) will be released at the end of June 2014. For Kepler SR2 (4.3.2) a feature patch needs to be installed.
Link to the Eclipse Java 8 support Update site
https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler
For Eclipse Mars.1 Release (4.5.1) you have to download extra package with
jre-8u73-windows-x64.tar.gz
to your java8/jre folder and point it in -VM section in eclipse.ini. It works for me.

Categories

Resources