I am reading the JavaEE first cup, and I needs JDK8+, my version is older, so I upgraded my java, Configure the System Path, Install so on, I successfully run java -version in command prompt and it recognizes me that I've installed successfully, but when I start my NetBeans, It can't find Java! Not only that, but also my Eclipse neon can't find java! I check the eclipse.ini, maybe it just need a JDK 8. So I just wonder, how can I make my NetBeans found my Java?
I am new to netbeans,so I resort to configuration in eclipse.ini,I try to add “--ALL"like script,I doesn't work anyway!Thank to my patience,I notice some jdk1.8required
property,I am completely rush to my deadline,so I avoid to this problem,and got 1.8,but thanks a lot if you recommend eclipse IDE lastest version which can work well with JDK 10 without any modification in ini file!
Related
I run the windows 10 64 bit version of Eclipse. The first time I log onto Eclipse it works just fine (though I haven't fun any code yet, so I'm not sure if that works) but upon closing and reopening Eclipse it says, "Version 1.8.0_301 of the JVM is not suitable for this product: version 11 or greater is required." and immediately quits. I have downloaded jdk 16 and installed it. Redownloading Eclipse fixes it until I close it again. How can I fix this? I am a new Java programmer and am not experienced with any of this.
You should have a folder like ths: C:\Program Files\Java. In there, there should be a folder named 1.8.0_301. Delete this folder and reinstall java.
I had the same problem, this solved it for me...
First of all I suggest you check the version of your eclispe IDE. You may have downloaded a version that doesn't supprot your installed jdk.
This link should provide you with the suitable jdk version for every eclipse version.
https://wiki.eclipse.org/Eclipse/Installation.
I hope I helped you a bit.
Cheers!
I had this problem with Java version 1.8.0_351.
In the program management settings of Windows I removed Java 8. After that, my Eclipse installation worked fine.
I had java version 8 previous and my eclipse worked just fine. But now I have java version 7 and I can't open eclipse on my computer. What should I do? please help.
I think there are two options:
Upgrade to Java version 8 (or newer).
If you can't do that, downgrade to a version of eclipse that supports Java 7. eclipse 4.5 (Mars) (or earlier as noted on the linked page), as of eclipse 4.6 (Neon) Java 8 is required.
I feel I should note that newer versions of Java (and eclipse) can still target Java 7 (and many earlier versions).
But now I have java version 7 and I can't open eclipse on my computer. What should I do?
Use versions that work together. When you for example look at your second screen shot, it says something like "requiredJavaVersion=1.8" or so.
In other words: you can't just come in and run eclipse with any version of java.
The other answer gives you the required details.
And a final note here: in case you tried to start eclipse with that older JVM in order to "allow" to ensure that eclipse won't allow "java 8" stuff in a project: that isn't the right way then. Instead: eclipse allows you to "define" JDKs to be used for your project. So you can easily tell eclipse: "I have a Java7 jdk sitting here, please use that for project X".
You do not need to run eclipse itself with a Java7 JVM in order to use a Java7 JDK for an eclipse project!
There will be a file under the Eclipse installation directory named as eclipse.ini.
It will launch the eclipse for that specific jdf and you can change the path to your jdk7.
Hope it helps.
It depends basically on which version of the eclipse you have.
If you have eclipse 4.6(Neon) or the latest version, then you must need a newer JDK version of Java (>=1.8 which you need to download). Or If you want to roll back to an older version of Eclipse then consider downloading eclipse 4.5(Mars).
Or If you have an eclipse version of 4.5(Mars) or older then see in eclipse.ini
-Dosgi.requiredJavaVersion = 1.8 and change it to -Dosgi.requiredJavaVersion = 1.7 which can be found in the folder containing eclipse.exe file.
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've seen similar questions, but nobody having the identical problem...
I installed eclipse.
Attempted to run, and it complained I had no Java engine (oops).
It offered to install Java 6. I accepted the offer and it did.
When I tried to run eclipse again it complained that it needed Java 7.
Downloaded and installed Java 7. It is the only version that shows in preferences.
Try to run eclipse again. It continues complaining that Java 6 is not sufficient and it requires Java 7.
There are many ways to achieve what you want. But just to add some options, you can achieve it without modifying the default java version.
You can use the
-vm
/path/to/jdk7/bin/java
Here you can see more examples http://wiki.eclipse.org/Eclipse.ini.
The file is in /opt/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini (note that my eclipse installation is in /opt/eclipse).
I'm trying to learn servlets and JSP and would like to do this with Eclipse. When I click about in my current version, I get this info:
Eclipse IDE for Java Developers
Version: Helios Service Release 2
After searching a bit, it seems you cannot access these features with this version - you need "Eclipse IDE for Java EE Developers".
I've found a tutorial to install these plugings in your Eclipse installation, but I'm just getting a "failed"-message with no error message. After this, I decided to just download a new version (the EE one ofcourse) from the Eclipse website. The old installation is in c:\program files (x86)\eclipse, the new one in c:\program files (x86)\eclipse2.
The old one still works fine, but when I try to run the new one, I get this:
I have no clue what is wrong here. Am I doing something wrong? The only thing I want is to use Eclipse for JSP and Servlet Development (soon also EJB).
Thanks
Eclipse cannot find your JRE/JDK. Put the JRE/JDK folder in your PATH variable. My JDK is located here:
C:\Program Files\Java\jdk1.6.0_24
Should be a similar path for you. Add that to your PATH variable.
Have look at this tutorial to find out how.
Make sure a Java 6 JDK is installed. If it is then you should be able to type javac -v on a command prompt and see output like this 'javac 1.6.0_26'
Once you have this correctly eclipse should start with no issues.