So I have been experiencing this problem for a while. I can use my existing java projects which I created on my PC, but on my laptop I can't create new Java projects. I reinstalled the program & reinstalled modules several times.
So when I click on new project, every java-type project is in the list except the regular one called 'java'... And the funny thing is that Java is the only project type I need at the moment, but it's simply not showing up..
I've looked on the internet for an answer but all I could find was one topic which was unanswered.
Help would be appreciated, a lot.
EDIT: OS: windows 7 64 bits. Using Netbeans 7.2 I think, well the newest for sure.
I just solved this problem by simply deleting .netbeans folder in User\<User>\ and .superId in \AppData\Roaming\NetBeans\
No need to reinstall.
Unfortunately you left out the OS you are using and you didn't mention the version of netbeans you tried!
You should completely uninstall netbeans. On UNIX OSes you'll find the .netbeans Folder in your homedir where netbeans keeps a lot of information. Remove this folder too (I don't know where this folder is stored on Windows OSes).
Having removed both netbeans and this folder, try a re-installation. Now things should look much better!
In my case I have installed multiple JDK (JDK version 8 and 9) due to which Netbeans 8.2 might not working as expected and then I was unable to create project.
Then I removed JDK9 and cleared cache from \Users\admin\AppData in windows.
Then I was able to create Java Project.
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 upgraded to the newest Mac Pro running Big Sur (11.4) from my 12 year old Mac Pro running Mojave (10.14.6). The old version of Eclipse was version was Kepler service release 2. When I installed the Mac and restored from backup, Eclipse flat out would not run, so I deleted it and downloaded and installed the latest version 2021-03 (4.19.0). I also updated JAVA SE to version 16.0.1 from Java version SE 7.
When I tried to run/compile a previous working project, I get:
I then decided to update the libraries found in the Java Build Path properties to the latest I could find:
to see if that made any difference. It didn't. I'm probably missing something very basic but I don't know what, since I use Eclipse only rarely.
I decided to go down the rabbit hole and download the missing jars in the error log, one after another. It just kept getting deeper and deeper with no end in sight. Just didn't quite pass the smell test.
Hmmm. I originally downloaded eclipse from the main elcipse.org page and went to the downloads button and installed it. Turns out the eclipse directory was only 21.2 MB. Plugin directory was basically empty. Hmmm.
I stumbled on the download file eclipse-SDK-4.19-macosx-cocoa-x86_64.dmg after looking for a SWT download. This file was the eclipse version that was 295.4MB in size. Double hmmm. So I ran it. Needless to say I was startled when my project compiled and ran right off the bat. Gee, thanks eclipse. Can you make it any more difficult for your Mac users? Anyway after a wasted day of head banging... problem solved.
Hello yesterday I updated my IntelliJ ide to the latest version (2020.3.2). The problem is that it's not starting anymore. When I try to open it, I get this error message:
I have two JDKs, 8 and 12
It seems like InteliJ does some kind of lookup by alphabetical order because when I rename my jdk 8 to other name that goes after the "jdk-12..." it actually works
The problem is that have to rename the folders and then return the original names to make my projects work, is there a way to avoid this renaming? Thanks a lot
This IntelliJ IDEA version requires Java 11 to run.
You override default bundled JetBrains Runtime with Java 8.
The solution is to remove this override. It's either idea.jdk file in the configuration directory or an environment variable as described in this document:
~/Library/Application Support/JetBrains/IntelliJIdea2020.3/idea.jdk
Note that JDK used to run IntelliJ IDEA itself is not related to the JDK that you are using to build and run your own projects. These two can be different.
I bumped into this issue with my PyCharm. In that case, pycharm.jdk was the one we need to remove.
~/Library/Application Support/JetBrains/PyCharm2020.3$ mv pycharm.jdk /tmp
Hope it helps someone came here by google.
I use Linux Mint 17 "Qiana" and I've downloaded and installed IntelliJ IDEA to learn Java. Now, while trying to set up JDK for a new project, I get an error The selected directory is not a valid home for JDK. The path to JDK I try to use is /usr/lib/jvm/java-7-openjdk-i386. I also tried to use /usr/lib/jvm/java-8-oracle/bin but it does not work as well. Is there any way to fix it without some magic or shamanry?
P.S. When I try to set a new Android project (what is the purpose of my Java studies) up, it doesn't see my Android SDK as well.
P.P.S. When I first faced this problem, I installed IDEA as a common user. So I removed it and re-installed using root privileges but that didn't work. :(
I haven't tried this yet but I'm pretty sure it should be /usr/bin/java/ location.
Try /usr/local/java.
https://askubuntu.com/questions/130186/what-is-the-rationale-for-the-usr-directory
I understand it is Ubuntu but it's worth a try
I am having a problem with my Java on my personal laptop. I have Java 8u11(JDK and JRE). I am working in Eclipse Kepler and making applications. Until now I was working on my office computer and I had no problems(I have Java v7u55 on the office one).
Starting yesterday after I created a small Swing-GUI program as a test in Eclipse and I ran it on my personal computer the program came up all weird and twisted with all the letters twitching or missing.
You can see more from the screenshot below.
Something like this:
The same thing happens with all my executable JAR files.
The button are not empty there is text in them:
I've tried re-installing Java and installing it again and it won't work. I have the Java added to my System Variables Path.
I think it is a problem with the JRE/JDK. Maybe downgrading the Java version I have installed ?
Restart of the computer didn't work. Any other ideas or solutions ?
This question can be closed as answered, as the solution from the question: Swing rendering appears broken in JDK 1.8, correct in JDK 1.7
helped in solving my issue.
I changed my 3D Settings in NVIDIA Control Panel to High-performance NVIDIA processor and was able to run my Java programs with JDK 8u11 without any problems.
Thanks :)