Suitable Eclipse Release? - java

I'm new in java and want to install Eclipse. What's appropriate version should i install as
java version "1.6.0_38"
Java(TM) SE Runtime Environment
(build 1.6.0_38-b05) Java HotSpot(TM)
Client VM (build 20.13-b02, mixed mode, sharing)
jdk1.6.0_38
jre1.6.0_38

You can install any eclipse version.There is not jdk version required for installing eclipse

Related

IntelliJ won't recognize JDK on Ubuntu

I installed openjdk using the command:
sudo apt install openjdk-11-jre-headless
java -version command correctly displays the installed package
openjdk 11.0.15 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1)
OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
However, when I open the IntelliJ IDEA environment, and want to run the first project, the environment does not detect the sdk
Should I configure something else beforehand, I haven't had much experience with Ubuntu before, for comparison in windows using the command -java version I get this message: completely different from what I get on ubuntu and everything works fine
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
That's because you've installed JRE instead of JDK.
see: What is the difference between JDK and JRE?
Just try sudo apt install openjdk-17-jdk

how to change the java path that is being referenced

I had had previously installed java on my mac. I just downloaded a new version of java from their website. when i run java -version in my terminal I get this
omars-mbp:local omarjandali$ java -version
java version "12.0.1" 2019-04-16
Java(TM) SE Runtime Environment (build 12.0.1+12)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
omars-mbp:local omarjandali$
I want delete the version above and have to point it to the new java version that I just downloaded which is
version 8: (build 1.8.0_211-b12)
how can i redirect it accordingly

Check the if version of JDK installed on macOS is the correct one

I have a macbook with latest HighSierra installed and from System Preferences / Java Panel. It says that i have got latest Java version installed: java 8 update 181.
From the "Java" tab of the aforementioned "Java settings" dialog i can see that the version 181 it is referring to is installed in /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
If i try to execute that binary (i.e. java -version) i actually get:
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build
1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
however when i try to launch "java" from a generic prompt or if i try to execute javac i get a different result:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
this latter java is installed in /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/
So it seems to me that i have got a jre (181) and a jdk (40) is this correct?
if so, is this the correct setup on mac? i started to wonder when forticlient analyzer showed up a bunch of CVE security issues related to JDK that are fixed in update 181.

is Java JRE included with SE install

If I have Java SE installed, does this include JRE?
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
As JRE is short for Java Runtime Environment, the answer is yes.
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
If you have installed jdk 1.6 it should have contained the jre of course. I don't know what your issue is but have you added your jdk directory to your path?

Using Kubuntu, Cant set up Java 8 in eclipse

In Eclipse I do not have option java 8 in new project and java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
says I have 8 installed. I am running Kubuntu 14.04 and installed java 8 through the repositories.
Here is the snaphot that show that I cannot compile in java 8 ... :
Eclipse doesn't have built-in support for J8. We have to wait until Luna comes next month.
However you can install it by marketplace.
Hope to help

Categories