How come Intellij works well with JDK 10.0.2, while netbeans won't even open a new project? I tried to work with Netbeans, but it wouldn't open. However Intellij works very well.
Only NetBeans version 9.0 supports for Java version 9 and 10. Visit Apache NetBeans 9.0 to know more and download.
I assume you are using Netbeans 8.2 or previous versions. As per release note it supports up to Java 8. Now Netbeans is governed by the Apache Software Foundation. It is renamed as Apache Netbeans starting from version 9.0. You can download from the link here. It does support all the latest versions of Java including Java 11.
Related
So, I migrated from Java 6 to Java 8 and from Eclipse Kapler to Neon. Before I used eclipse-SDK-3.7.1-linux-gtk-x86_64 for the SDK in my build.xml.
Now I'm trying to figure out which SDK I need to use and where should I download it. Should it be eclipse-SDK-4.6-linux-gtk-x86_64? How do I know which version of SDK is the needed for Eclipse Neon and JDK 8?
Neon was indeed version 4.6, but it was released in June of 2016, meaning it's old enough to have been archived. The current release, 2020-03, is capable of writing for Java 8 just fine.
In Netbeans 8.2, it says to use Java JDK 8.1 or higher. When I use the latest version of JDK, Netbeans will load up but I can’t open or make new projects. When I get 8.1 I can’t use certain features of languages, like timers in Java.
What JDK should I use to have both Netbeans functioning and have all features of Java usable?
This document describes how to install NetBeans IDE 8.2 on your system. Please see the NetBeans IDE 8.2 Release Notes for information about supported operating systems and hardware configurations for the IDE. To learn about the new features included in this release of the IDE see the NetBeans IDE 8.2 Release Information page.
And use 8u191 or 8u192 for Netbeans 8.2
Somewhat specific to Ubuntu, or at least Linux: install Java with SDKman which is somewhat like RVM but for Java. Quite simple to install, it will then manage your JDK versions.
Additionally, umake, or ubuntu-make, will install your IDE or other developer tools. This utility is best installed through the snap package manager to get the latest version.
From umake it's a simple command to then install developer tools such as NetBeans. Currently this installs NB 8.2 which will not run on any JDK nine or higher.
Use SDKman to manage your JDK version (and gradle, and kotlin, and ...). Use umake to handle your IDE version.
My two cents
In the next week or so, umake should upgrade to NetBeans o. There was a bit of a mixup when Apache took over but the umake maintainers are on the ball.
Or, just download NB 9 directly. You'll have to use an older JDK, as specified in the first answer by user5377037.
Why are you running NB 8.x?
After some experiences with Scratch, they told me the best option for beginners is Java, if I want to learn something usefulin future. I downloaded Java SE (JDK 10) and Netbeans and installed both. Netbeans ask for a folder that is Java, which I just installed. But it doesn't recognize the folder and says firstly no compatible version found and later the specified JDK folder does not contain JDK. What is wrong?
You have installed JDK 10 I guess. There was a contradiction in your question since you have downloaded JDK10 and installed JDK8. First of all, I would like to mention that the latest version of of Netbeans supports only JDK8.
Try installing JDK 8 and reconfigure Netbeans accordingly.
NetBeans only supports JDK 8. Install that and point to the folder for JDK 8 when NetBeans asks. If it doesn't ask again you can do it manually, shown here Changing java platform on which netbeans runs
I have downloaded and installed tomcat 9 to my machine, but on Eclipse > Window > Preferences > Server > Runtime Environment, after clicking on Add, I see only Tomcat 7 and Tomcat 8, but not Tomcat 9.
What I have done:
1) installed tomcat 9 to local server;
2) updated eclipse to Mars (latest as of 2015-11-25);
3) installed eclipse "JST Server Adapters" and "JST Server Adapters Extensions"
Note:
My purpose of using tomcat 9 is it seems to be the only version that explicitly support java 8 and later, and my web app is using java 8. (http://tomcat.apache.org/whichversion.html)
I also have tomcat 7 exist in project but I also want to keep it in the machine, not to delete it.
Please see screenshot.
Please let me know about any config that I missed!
There are two things to note here:
Tomcat 9 is not released yet. Not a final version that is. If you check the official website, you will see that the only available version is an M1 version. Hence there is no support from Eclipse WTP for this early version. It will come soon, but not yet.
Tomcat 9 is not the only version that explicitly supports Java 8. If you check this page, you will see that "Supports Java version: 8 and later", which in this context means, that it officially support only Java 8 and above. It does not mean however this is the only one supporting Java 8. Theoretically you should be able to use any Tomcat version, in practice a Tomcat 8 will work perfectly well, since it support Java 7 and above. The majority of people with a Java8 + Tomcat combination are using Tomcat 8. Tomcat 8 also has Eclipse WTP support.
I was able to get the adapters for Apache 9 by installing Eclipse Java EE Developer Tools 3.9.4
Use a later version of eclipse e.g. Eclipse Neon.
It should work.
I tried all the above methods but still was unable to find solution for the problem then I did the following and that helped me to add Apache tomcat to my Eclipse IDE:
After following Help>Eclipse Marketplace and installing Eclipse Java EE Developer Tools 3.10 still tomcat was not available so I went to Help>Eclipse Marketplace>Installed>Eclipse Java EE Developer Tools 3.10>Change I put tick on the following and then I got the Apache Tomcat finally in my Eclipse IDE:
JST Server Adapters
JST Server Adapters Extensions
JSF Tools-Tag Library Metadata(Apache Trindad)
Git Integration for Eclipse
Use later EE version of Eclipse! Contains Tomcat adapters 8.5 and 9.0
I had same problem, but not now.
On my side, eclipse marketplace was stucked on previous WST server adapters.
I've used old update feature Windows > Install New Software
In main update site, I found Web, XML, Java EE and OSGi Enterprise Development part, where WST Adapters where ready to update ...
Eclipse MarketPlace often embed too much features & plugins.
On my own point view, easier to keep a light eclipse ;-)
Tested on eclipse 2020-09
Basically I want to do java programming on my windows system having Windows SP3. Which version of java and Eclipse do I need to download?
Does JDK 1.6 (universal supporter) support all Eclipse and Apache tomcat???
Just go with the latest JDK 1.8 and Eclipse Luna. JDK 1.6 is no longer supported, and 1.7 is pretty much dead as well. Java 8 is far more modern anyway with its new features (lambda expressions, JavaFX 8, new Date framework, etc) and you'll be more competent as a developer knowing those features.
Also, if you are interested in Apache Tomcat you can also check out IntelliJ IDEA instead of Eclipse. I understand it is much easier to do servlet development on.