I'm getting the following error when trying to add JDK 9.
It's working with JDK 8, but not JDK 9.
Please advise.
Add Java 9 support for Oxygen. Read this link. Java 9 stable release has launched only today. So it is not yet available in the base Oxygen package. If you are in a hurry to use Java 9 with Eclipse, you can download the support patch from market place.
The official version of eclipse that supports Java 9 is v4.7.1a (Notice the "a" at the end)
The release notes are here
It is available since October 11
This version also includes support for JUnit 5
You can download it here as before
I had the same problem. I downloaded the newest Eclipse, 4.7.1, and could not add a JRE/JDK 9.
This is what I did to solve the problem: Help -> Check for Updates. Three updates were found. I installed the first one, "Eclipse for RCP and RAP Developers", and voilà!
I could finally add a JRE/JDK 9. It worked via both "Add..." and "Search..." buttons.
Related
I want to create a Java 9 project with Netbeans but netbeans IDE 8.2 is not working with "Java 9.0.4". Menu buttons doesn't response anything.
When I make some search Can't create project on Netbeans 8.2
Uninstalling jdk 9.0.4 offered as solution. Is there any way to create a Java 9 project with Netbeans?
NetBeans 8.2 does not support Java 9, but there is a beta version of NetBeans 9 available for download:
https://www.apache.org/dyn/closer.cgi/incubator/netbeans/incubating-netbeans-java/incubating-9.0-beta/incubating-netbeans-java-9.0-beta-bin.zip
The download is a zip file which runs on all platforms. It supports all Java releases including JDK 9, and JDK 10. It is to be formally released later this month.
You can view and report bugs here: https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-330?filter=allopenissues
Also note that you can run NetBeans 8.2 and NetBeans 9 beta concurrently.
See here for more information: https://netbeans.apache.org/
Another approach is to run the nightly dev build of NetBeans (http://bits.netbeans.org/download/trunk/nightly/latest/) which supports JDK 9 but not JDK 10. Hoever, this is a release from Oracle which is currently in the process of handing over NetBeans to Apache, and I doubt if there is much support if you have problems.
I am sure it is simple problem, but I am new to Java and PHP, I want to learn Java, I bought a book, I have also a couple of books as PDF from internet, at the Beginning of the book there is always intructions, how you can install for example NetBeans to start programming. I have installed jdk 8 and NetBeans 8.2.
The problem is, when I start NetBeans, the Buttons for creating new Project not function and is not reacting on my click. I have installed all plugins. I have searched the internet. I have found, that I should click create new Project, I will get a dialogue, then I should choose the desired project. But it shows nothing when I click that button, it simply does not react. Please help me.
It might have been caused by JDK 9. You could have changed the JDK 9 to previous version and it would have worked.
For that you would have to go to:
\NetBeans 8.2\etc
Then you can edit: netbeans.conf . Just change the directory for JDK from 9 to previous version if it is installed. (or install JDK 8 and then do the same process)
I have uninstalled the NetBeans 8.2, which I downloaded it alone from NetBeans website, after that I have downloaded it as a complete package together with Java SDK from Java website, now it functions wonderful
Netbeans 8.2 is bundled with Oracle JDK 8. Just download the installer for your platform and install it. I have tested the installer with Windows 10 and it works like a charm.
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.
My current project is built on Java 6. I'm thinking of upgrading it to Java 8.
Here is the details of the build.properties
xdoclet.home=D:/**/xdoclet-1.2.3
jboss.deploy.dir=D:/**/jboss-6.1.0.Final
application.dir=D:/**/**/cal
middlegen.home=D:/**/middlegen-2.0-b1
compiler.home=C:/Program Files/Java/jdk1.6.0_24/bin/javac .
I've tried building the project on JDK 8 and it is building successfully.
I know that I have to upgrade every libraries so that it can work with JDK 8.
How can I make sure about the dependencies to be correct as there are so many jars? And also Do I have to change my Jboss Application Server to Wildfly Application Server as Jboss AS 7 doesn't support JDK 8?
Please suggest how to approach. Any help appreciated.
And also let me know if it's better to build the project from Scratch in JDK 8 than upgrading it to JDK 8.
1) If you need to use jdk8 than you have to switch too the newer jboss.
2) It is not required to updated all jar's since jdk8 can run older jars
it there is no compatibility problem.
3) If you already have an large probject it is faster to keep it.
4) You can review your code and use the new java 8 features like "<>" and "try()"
For more qualified answer your question is to unspecific.
I would like to suggest you to update JBOSS 6 to wildfly 8 if there is a change required for the updation of JDK 6 to JDK 8.
But there is some other way!!! you can run your JBOSS 6 externally and add the the project.war file in JBOSS>>standalone>>deployment.
For Upgrade of JDK 8,i would suggest to go through JDK 8 feature and see where you can implement the new feature of java in your source code and have a mock testing class for the same.Make sure you have a mock project as it is the good practice for the enhancement of the project.
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.