Eclipse Target is not a JDK root. Java executable was not found - eclipse

I am trying to add jdk 1.8 to eclipse Windows -> preferences -> installed JRE. I get the following error msg:
Eclipse Target is not a JDK root. Java executable was not found
How to fix this issue?

I solved it by using jdk from C:/programms/java.

Related

I'm trying install maven in eclipse. But I cannot make maven-archetype

Specs :
Windows 10
JDK: 1.6
Maven version: 3.2.1
Eclipse: Kepler
I confirmed mvn -version and java -version at CMD.
And in eclipse I clicked Window>preferences>maven>User Setting and Installation for set the settings.xml.
I can't search how to fix maven web creation denied. I put two photos about my circumstance.

Install the latest Lombok on the latest Eclipse on macbook pro mojave

I am trying to install the latest Lombok -1.18.10.jar on Eclipse Version: 2019-09 R (4.13.0)
Build id: 20190917-1200 on macbook pro Mojave10.14.6.
After invoking Java -jar lombok.jar command on terminal, since it did not identified any eclipse IDE on my system, I get to choose the install location of my Eclipse. From configuration dialog page of Eclipse, I noted my Eclipse launcher is at /Users/pnutalap/Desktop/Eclipse.app/Contents/MacOS/eclipse . But when I select that location for Lombok, I get a message saying that "I can't find any IDE that Lombok supports at location /Users/pnutalap/Desktop/Eclipse.app/Contents/MacOS/eclipse.
Does any incompatibility between Lombok and latest eclipse ?
Any suggestions ??
I got this to work by locating the eclipse.ini file. Using the above installation path, that would be /Users/pnutalap/Desktop/Eclipse.app/Contents/Eclipse/eclipse.ini

The JDK is missing and is required to run some NetBeans modules

Complete error message:
The JDK is missing and is required to run some NetBeans modules
Please use the --jdkhome command line option to specify a JDK installation or see http://wiki.netbeans.org/FaqRunningOnJre for more information.
Some details: I just installed Netbeans on Linux mint for the first time and when I start it when its turning on modules this error message appears. But I do have jdk installed.
$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
$ javac -version
javac 1.8.0_66
Find the file [netbeans installation directory]/etc/netbeans.conf
Luckily, Linux has a find helper like
find /home/ -name "netbeans.conf,
in which you can change the /home/ to a location where you want to search.
I found it at /usr/local/netbeans-8.1/etc/netbeans.conf
Once, you found the file, the following property needs to be set:
netbeans_jdkhome="[jdk_path]"
where you can find the jdk_path using:
update-alternatives --config java
In my case, I found it at /opt/java/jdk1.8.0_191
[Solved] For Mac OSX 10.11 (El Capitan).
Solution may be similar for other Unix-based systems.
The problem may have occurred because I inadvertently installed the jre
prior to installing the jdk. I uninstalled the jre, installed the jdk
and reinstalled NetBeans but the problem (popup window) remained.
However, the fix was fairly simple.
1. Make sure NetBeans is not running.
2. Make sure the jdk is installed.
3. Determine the location of the jdk:
The jdk location can be determined by entering the following (in Terminal):
$ /usr/libexec/java_home
For my system, the output was:
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
4. Edit the NetBeans configuration file to indicate the location of the jdk.
Near the bottom of this Netbeans configuration file (or equivalent for your NetBeans version):
/Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
Comment out the following line (insert a # before the first character):
#netbeans_jdkhome="/Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/bin/jre"
Then, add the following line (or equivalent for your jdk version):
netbeans_jkdhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home"
Then, save and exit the editor.
5. Start NetBeans (no more popup window indicating that the jdk is missing).
When netbeans has problems trying to find the path of the jdk, it's mainly because the version of the jdk does not match. Open the file C:\Program Files\NetBeans 8.2\etc\netbeans.conf, and verify that netbeans_jdkhome = "C:\Program Files\Java\jdk1.8.0_111".
Open netbeans.conf
sudo nano "/usr/lib/jvm/java-8-oracle/netbeans.conf"
Set proper sdk path:
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
Exit Ctrl + X and to save changes Ctrl + T
This error showed up when I updated the Mac to Mojave. To fix, I edited the netbeans.conf file with the current jdk by using Terminal to find the correct jdk. Type
/usr/libexec/java_home -V
Here was my output.
Matching Java Virtual Machines (4):
1.8.311.11 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
1.8.0_131 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
1.8.0_25 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
1.7.0_79 (x86_64) "Oracle Corporation" - "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
Entering the first jdk listed did not work.
I edited the conf file with the second one listed:
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home"
Restarted Netbeans. That fixed it.
This worked for me
1. install full JDK
2. either edit <netbeans-IDE-installation>/etc/netbeans.conf
2.1 unmark netbeans_jdkhome
2.2 link to JDK location e.g. /usr/local/share/java/jdk1.6.0_07/
3. or use --jdkhome command-line option e.g. ./bin/netbeans --jdkhome /usr/local/share/java/jdk1.6.0_07/
take care with the "/" at the end
More info in http://wiki.netbeans.org/FaqRunningOnJre
Ubuntu 16.04 LTS:
Uninstall the netbeans you have.
Delete .cache/netbeans folder
Download http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html
Install your download
I have this problem to. But now i resolove this problem with edit one line.
Find and open this file /etc/netbeans.conf
If you see netbeans_jdkhome="C:\Program Files\Java\jre1.8.0_151" replace netbeans_jdkhome="C:\Program Files\Java\jdk1.8.0_131"
Save as adminstrator
Problem reseloved
In mid April 2019, Oracle has changed the JDK's licence. However, I was still able to solve this issue with NetBeans 11 and the JDK 12's open source build on my Windows machine. Just downloaded the open source JDK from https://jdk.java.net/ and extracted it. Then, in my NetBeans config file, I typed in the path to the extracted directory (NOT the "bin" folder!).
I resolved this problem by changing default version of JRE and JDK that I'm using to 11.x.x with following commands:
sudo update-alternatives --config java
sudo update-alternatives --config javac

STS 3.7.1 - Error: Could not find or load main class 64bit.STS

Yesterday I downloaded last STS 3.7.1 64bit and I have problem with Maven in it.
Run as > maven install > Error: Could not find or load main class 64bit.STS
OS: Win7 64bit
Hope it's clear enough, can you point me in the right direction?
You have to extract sts zip folder the same folder with eclipse.

Eclipse not compatible with jdk1.4

Hi Am using eclipse galileo and jdk version jdk1.4.Am not able to open eclipse as its give "jdk1.5 or above version required" error.How do i resolve it?
Copy and paste the lastest version of JRE from your C:\program files\jre... to the eclipse folder and rename it as "JRE" and it should work.
Please install JDK/JRE version 1.5 or above, and then add the following to the eclipse.ini file in the eclipse home directory
-vm
$JDK_HOME\bin
Note: The path of the JRE should be in the line after -vm and not in the same line.
Eclipse will use the JVM available at this path to launch