What JDK should I use for netbeans? - java

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?

Related

How do I uninstall Netbeans 8.2 ide previously installed with jar file?

I followed the answer given here:
https://stackoverflow.com/a/27647491/5904193 to install Netbeans ide 8.2 with jdk 10.0.2 on windows 10 64 bits OS.
After installation, I found that the jdk was generally incompatible with the ide. So I finally got the latest Netbeans version 9.1 from Apache.
This works with my jdk so I decided to clean things up by uninstalling Netbeans 8.2. Attempting to uninstall directly with the uninstall executable fails with the same error as the installer. That is it requests jdk 8 or higher (I have only jdk 10 installed).
I then tried using the jar file trick by extracting the Uninstaller and executing the jar file with Java. Things happened (lots of output in the console screen and uninstall actually completed) but all the program files remain, I can still see the program in Programs and Features and I could even start the app using the desktop shortcut that was not even touched by the uninstall.
I suspect I could uninstall it normally if I installed jdk 8. But, I mean, there has to be a way to uninstall it without jdk 8 after being able to install without that jdk. Thanks.
"But, I mean, there has to be a way to uninstall it without jdk 8
after being able to install without that jdk."
There is no reason that should be true since you did not did not meet the "required software" standard for NetBeans 8.2, which states "Java SE 8 is required to install and run NetBeans IDE 8.2", nor did you follow the standard installation process.
So you "installed" NetBeans 8.2, but not successfully. Since it wasn't installed properly it's not surprising that the uninstall process is failing.
After installation, I found that the jdk was generally incompatible
with the ide.
That's because:
You didn't install NetBeans properly.
Regardless of that, NetBeans 8.2 does not support the use of any JDK > 8.
I suspect I could uninstall it normally if I installed jdk 8.
Perhaps, and unfortunately I think that is what you need to try. However, since you chose not to follow the normal NetBeans 8.2 installation process don't be too surprised if you still have problems.

Netbeans does not recognize the Java folder

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

Do I need to install Java plugins for Eclipse Neon if I already have JDK and JRE installed?

I've been using Eclipse Neon (4.6.0) which only supports C/C++ by default. Now that I need to program in Java, I want to integrate Java to the IDE I'm using. So I went to install the "Eclipse JDT Plug-in Developer Resources" Java plugin, including "Eclipse Java Development Tools."
But then, I have the JDK and JRE installed from Oracle very much prior to this day. Now I wonder...
Do I need to install the Eclipse Java plugins from Eclipse even if I already have the Java JDK and JRE installed in my computer?
If yes, then there must be a difference between the Eclipse JDK and Oracle's JDK. What's the difference?
If no, how can I link the JDK and JRE (if either/both is needed) to the project, such that I can finally program in Java?
Clear and concise answers are very much appreciated.
TL;DR: Yes, you need the JDT plugin with your JDK
Long answer
There is no such thing as an Eclipse JDK, (albeit the SDK used for creating plugins but that's not what you want)
Eclipse needs at a minimum, the JRE to run itself. If you need to program in Java, you install the JDK.
As for the Eclipse JDT plugin, it is needed for making Eclipse ready for Java development (necessary things like the Java perspective for example)
Cheers!
The JRE is the Java Runtime. You need it to run Eclipse.
The JDK are the command-line tools to compile Java code. Eclipse has a compiler and most of those tools re-implemented in it "Java Development Tools", so you don't need a JDK to start coding. However, you might need some of its features later, but not worth caring about it right now.
Eclipse Java Development Tools plugin provides the main tools inside the IDE to develop Java code. The Java Editor -providing completion, documentation, navigation, instant error reporting...- and Java Debugger are the 2 main ones. If you want to be productive at writing and debugging Java code, you need to install those into your IDE. Otherwise, it won't be much better than a plain text editor.

which java version need to be uninstall

I already researched on how to install Eclipse Luna. One of the things to consider before installing Eclipse is to choose the JDK (planning to use JDK 8). It said that it is recommend that if I have an older version of Java, I need to uninstall it. But here's the problem: I don't know which I should uninstall. Here is the list of installed versions in my control panel (Windows 7 64bit):
Java 7
Java(TM) 6 Update 45
Java(TM) SE development kit 6 (i think this one but what's with (TM)?)
It is strongly recommended to specify what JVM (preferably a JDK) Eclipse should run in, via the eclipse.ini file. That way you can have any number of JDKs and/or JREs without problem. In fact, Eclipse also allows you to have multiple Java versions on your machine and each project in Eclipse can dictate exactly which one it uses. You can easily mix-and-match projects that use different Java versions, and they're all independent of the JVM that Eclipse itself is running in.
run java -version at the command line to see which one is in your PATH. This is the one that will run the Eclipse workspace.
Unless you have clear requirements to use older Java versions, I would recommend to uninstall all of them. And just have the latest JRE or better JDK installed.
In my case, I have a JRE to run the Eclipse workspace that is maintained by the Admin people and a private JDK (to provide additional tools, such as javadoc) to support the software development. You can have several Java versions installed (without having them in the PATH environment listed). You can point to them in the workspace settings or in specific Eclipse projects, e.g., to use a Java 6 for a certain project.
I think Eclipse Luna needs Java 7.
A Java 7 JRE/JDK is required for most of the Luna package downloads based on Eclipse 4.4.
In my opinion you can uninstall Java(TM) 6 Update 45 & Java(TM) SE development kit 6

How can I setup my Netbeans IDE for making Java ME applications?

Ok, I have Netbeans 6.7.1 installed with the default Java SDK. I'm using Linux Mint.
Now I'm told that I have to download Java Platform Micro Edition Software Development Kit 3.0
So, should I download this? And once I download and install this in Linux, what do I have to install for Netbeans so I can create a Mobile Application? I'm fairly new to this environment so please any advice is welcome! :)
Make sure you have Java installed (version >= 6 ) and then simply go to: http://netbeans.org/downloads/ and download the version that comes with JAVA ME support. Then install it, and you are ready to go :)
And no, you shouldn't download JAVA ME SDK 3.0 since it is not supported in linux. sigh
While at it I'd recommend you to read also the links below:
Also if you're just getting started here are some nicely written tutorials with examples:
http://today.java.net/pub/a/today/2005/02/09/j2me1.html
http://today.java.net/pub/a/today/2005/05/03/midletUI.html
http://today.java.net/pub/a/today/2005/07/07/j2me3.html
http://today.java.net/pub/a/today/2005/09/27/j2me4.html
I think this only applies if you download a version without JavaME modules. If you download the version with JavaME modules, you don't have to do this. The provision is to allow you to install multiple versions of the emulator (including Nokia's) and work with them.
If you have downloaded a version of NetBeans without ME, then do this
1. Download the JavaME SDK and install that eg. /opt/java/javame
2. Install ME modules in NetBeans. Tools -> Plugins -> Installed and activate JavaME
3. Add the SDK in NetBeans Tools -> Java Platforms -> Add Platform -> Java ME Platform Emulator and follow the instructions
I'm using NB 6.8 BTW.
In NetBeans, go to the "Tools/Plugins" menu, then in the "Available plugins" tab, select the plugins which are part of the "Java ME" category. now click "instal"... NetBeans will take care of downloading, installing and configuring everything for you.

Categories