How to find the proper SDK version for Eclipse Neon? - java

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.

Related

Do I downgrade my JDK or upgrade my gradle?

I am currently using Gradle 3.0, which supports JDK 9. I tried to download JDK 9 from Oracle's official website but you need an account for the archived versions (they require a company name and a work phone, none of which I can provide). My version of JDK is 15.0.1. As far as I know, the latest version of Gradle supports it. However, I'm not sure how to update Gradle in my workspace. Would updating it cause any errors since it's a huge gap between the versions?
For reference, the older version of Gradle came with the mod developer kit of the forge. I am currently working on the 1.8.9 version of Minecraft. I am using IntelliJ, not Eclipse. I apologize if I didn't structure my question properly.
IntelliJ IDEA has JDK downloader that offers multiple JDK versions/vendors. You can use JDK 1.8 for Gradle 3.0 or JDK 11 for Gradle 5.0+:
Just Install sdkman.io
Then upgrading the Gradle/maven/jdk and many other JVM project is as easy as running a command.
You can also switch between versions in a very convenient way.

Which version of Java is supported by Eclipse Helios?

I'm new to Eclipse and Java. Whenever I run the Java program in Eclipse there is a major.minor 52 exception. I want to know which version of Java is supported by Eclipse Helios. My computer is Windows 7 32-bit OS. So I can't download any other version of Eclipse. Please help me with a favorable answer.
The class file major.minor version 52 error means that Java 8 or newer is required.
Eclipse Helios (3.6) is very old (10 years and 14 releases old). It probably doesn't understand anything above Java 6.
There are 32 bit version of Eclipse newer than this.
Eclipse 4.9 (2018-09) was the last 32 bit Eclipse - that supports Java 8.
OK. Lets start with some history.
Eclipse Helios (3.6) was released in 2010. It supported the latest version of Java that was available at the time; i.e. Java 7.
Eclipse Juna (4.4) was the first release of Eclipse to support Java 8 language features.
Java 7 has been end-of-life for a few years now.
Java 8 (the oldest available version of Java with free support) was released in 2014. This corresponds to the classfile version number (52) of the application that you are trying to run.
Java 8 is also that last version of Java for which you can get a Windows 32 bit version from Oracle.
So what can you do?
If you want to run a pre-built Java application which has classfile version 52, you will have to download and install Java 8.
If you are prepared to rebuild the application, then depending on the application you will probably still need to upgrade to Java 8 to do that. (It depends on whether the application uses Java 8 language constructs or library classes and methods that were introduced in Java 8. It is likely that one or both of those is true.)
If you are going to upgrade to Java 8, it would be advisable to Eclipse to (at least) Luna, but you could go all the way to the 2018-03 release ... which is the last version that supported 32bit Windows.
You could probably also run the application from the command line; i.e. without using any IDE at all. But that would apply to a tool that was designed to run as an Eclipse plugin, etc.
But my strongest advice is to get a machine that can run a 64 bit OS. You can probably get one for USD $300 or less. If your current hardware cannot run a 64bit OS, it must be pretty old, and I am surprised that it still works reliably.
Which version of Java is supported by Eclipse Helios?
Java 7 and earlier versions.
So I can't download any other version of Eclipse.
That is not true. But simply upgrading Eclipse won't solve the problem. You need to upgrade Java as well if you want to run that application.

Cannot add jdk11 and jdk13 in SDK in IntelliJ - java

I cannot add jdk11 and jdk13 in intelliJ as SDK. I am able to add jdk-18.0_22 only.
Why is that so?
Based on the comment from #MarsAtomic, I would guess that your version of Intellij (14.1.4) is too old to use the new versions of java.
14.1.* was last released on May 11, 2016.
JDK 11 reached General Availability on 25 September 2018.
The implication of Java 11 in IntelliJ IDEA 2018.2 is that you need to use Intellij IDEA 2018.2 or later to work with Java 11.
I expect that one reason that your older Intellij install is not recognizing your Java 11 or Java 13 install is that the JDK classes are packaged differently starting with Java 9.
For support of Java 13 preview features you will need IntelliJ IDEA 2019.2

Issues regarding NetBeans and JDK 10.0.2

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.

How can I run Eclipse in OS X with JDK 1.8?

I have downloaded the ADT bundle from Google to develop Android applications. Also I have installed Java with JDK 8u5 for MacOSX 64 bits. When I try to open Eclipse by clicking over Eclipse icon, it shows a dialog saying it's necessary to install a Java 6 version.
Is it possible to execute Eclipse (and other java applications) with Java 8? If yes, How can I do it?
(I have seen solutions for JDK 7 but not for JDK 8)
Many thanks and kind regards
The current ADT is built on Eclipse Keplar base. Eclipse (Keplar), currently, does have built in support for using Java 8 .. but it can be added (here are directions from Eclipse). There are builds of the next Eclipse (Luna) release stream that should have Java 8 "builtin" this week. However, I have not seen any plans to build ADT on top of a pre-release Eclipse (Luna) version. The Android team has typically waited beyond release.

Categories