Netbeans 11.3 - all projects are broken - java

I have downloaded NetBeans and Java 13 for Windows OS, 3 days ago (just started learning coding so very new to this) and it worked fine for 2 days but today all the projects i've created are now broken. When I go to start a new project, it says feature is not yet enabled but when i click through to activate it,i get a message saying "Not all requested modules can be enabled."
Error message when i try to open a new project
I've checked online for fixes and done the checking/changing of location in the netbeans.conf file, I uninstalled and re-installed both Netbeans and Java 13, also tried to install Java 8 to try with a previous version and it still doesn't work.
Does anyone have any ideas of what else could be the problem? i have been trying to fix this for hours so any help would be great!!

Related

Netbeans Project not Showing

If I open or create a new project for java in Netbeans 8 it shows nothing only a blank tab, the code is missing. Then I try to use a different version, the Netbeans 13 with JDK 18 it still has the same problem. I don't know what goes wrong the installation is fine though. I try to create another project in html5 in Netbeans 13 and it works fine. What should I do?

Netbeans 12.0 Java hints and highlights not working

Suddenly the hints and highlights on Netbeans stopped working for me. It won't show suggestions on imports and it won't highlights errors. I intentionally wrote int i = "hello":and the code wasn't highlighted and no warnings came up. I've checked >Preferences >Editor and form what I can tell Code Completion, Code Templates, Hints and Highligthing are all selected. I checked some older posts here and also tried to delete the index in the caches folder. I've discarded my project and started over, uninstalled and installed Netbeans and restarted my laptop at few times now but the issue is still there. It was working fine until yesterday afternoon. Any suggestions? I run Netbeans on macOS Catalina if that matters.
EDIT**
I now noticed this problem only occurs in projects where I have a JForm.
I had the same problem and here how I solved it:
Exit Netbeans
Go to : C:\Users\UserName\AppData\Local\NetBeans =====> DELETE Cache folder
Open Netbeans and it's fixed

Launch javaFx application with Intellij failed

I have a problem for several months now.
I have a big application in Java 1.7 and Java FX on centos 6. When I'm launching with idea Intellij CE 2017.1.1, I have this exception with a JDK 7 :
Failed in XOpenDisplay
(java:181803): Gtk-WARNING**: cannot open display:
With JDK 8 :
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Unable to open DISPLAY
at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:68)
At the beginning, it worked with Intellij. But one day, it failed with this exception and I can't find why. I recreated my workspace several time without success.
It works with Eclipse with the same code.
It works if I copy the CLI displayed in the "run window" at the beginning of the running program in IntelliJ in a console.
Now, I have an instance of eclipse to run the application and I'm writing the code in IntelliJ. But I would like use only IntelliJ.
Thx for your help
DidierC
thx for your replies.
6 months of searching alone. A coworker come to ask a question. 10 min of searching and we found it.
In Intellij launcher. I had uncheck the "include parent environment variables" in the "Environment variables" window. I can't remember why. I check again and it works.

Error:Process 'command '/usr/local/android-studio/jre/bin/java'' finished with non-zero exit value 2

Android Studio 2.2.3;
Java 8;
Ubuntu 14.10;
laptop: Asus K72F.
I spent no less than twenty hours on a Udacity course, learning the basics of XML as part of an Android course.
I installed Java on my Ubuntu machine, then Android Studio IDE.
Followed instructions on the course's videos and pages.
Tried saving my first project, but never made it to the first step...
Error:Process 'command '/usr/local/android-studio/jre/bin/java'' finished with non-zero exit value 2
I've found no intelligible instructions on the web.
I've been using Ubuntu, Linux, Mac OS X and Unix for ten years now, and I've solved one or two hundred problems with and without the command line, most often copying and pasting from Stack Overflow pages.
I've explored menus on Android Studio, I've opened lib folders. Some posts suggested changing libraries but failed to mention which ones and how.
Another post suggested changing "overrides" but, without a sealed project, Code > Override Methods stays grey and I can't act on it ... Another vicious circle.
One post suggested downgrading to Java 7. I thought the IDE setup for the Linux community might be slightly old, so I uninstalled Java 8 and got Java 7. Got rid of the IDE folder and reinstalled Android Studio, but this time I put it in /usr/local to play it safer. No, Java 7 wasn't supported so I had to upgrade and go back to Java 8.
I've been stuck for three weeks now. Yesterday I tried installing the latest version of this IDE on Windows but there's a bug and it crashes before opening.
I would appreciate it if you could state instructions taking nothing for granted, I am an absolute beginner with Android and gradle and the jargon is overwhelmingly different from Unix.
This reminds of the time when everybody suggested opening a Terminal window but nobody said how.
Please tell me which menus I have to go to, what lines to change, or which libraries to change and where to fetch them.
Thank you for your time and trouble!
I had the same problem, but when I entered good java path, I had a different problem, searched the solution for 3 days, and finally, this video gave me the answer...
Good luck!!
https://www.youtube.com/watch?v=zhj3MY4SpHY
EDITED:
So, the process looks like this.
1) after you download android studio and extract it to either /usr/local/ or /opt/, run it. When it gradles, you'll see an error "process 'command' /usr/loca/android-studio/jre/bin/java finished with non-zero exit value 2"
2) go to File->Project Structure->SDK Location an in there uncheck "Use embedded JDK". in the input field below that checkbox, paste or choose tha path of your JDK (mine was /usr/lib/jvm/java-8-jdk).
3) Click OK, let gradle to do it's work, and when it's finished, you'll get 2 more errors (which I'm not gonna paste here) with lagre log (if you look at the log, on the beginning you should see something about unclosed quotes in aapt file in your /build-tools/25.0.0/aapt).
4) !!!! I did this step to make sure that I have the same error like in the video, so it is optional !!!!
I did a rebuild or clean. in the menu go to Build->Rebuild and start it. Your gradle should run forever so you can wait for a few minutes and if it's not finished, shut android studio down and proceed to the step 5.
If your gradle finishes, it's probablly not the error I'm tryng to expain.
5) When this is all done, opet the folder where your android apps are stored (for me the path is /home/matej/AndroidStudioProjects/MyApp/app), open your app (App name)->app->build.gradle
6) change the line "buildToolsVersion '25.0.2'" to
"buildToolsVersion '23.0.1'", save it and close
7) run the android studio again and you'll see the message where it links you to the installation of the missing build tools. click on it, install it and clean your project
8) ENJOY IN DEVELOPING :)
In my case, I had firebase database gradle versin lower than the latest one. Changing it to latest solved the issue.

Eclipse not opening on windows 8.1

So a couple of days ago i bought a new laptop, since my old one was way to old.
It came along with windows 8.1, which was the first time i used them since i was always with 7.
I downloaded the adt bundle that i used in my old pc, and when i attempted to open eclipse, i got the usual message about JRE/SDK missing, pretty logical, since i hadn't installed java.
So i went on and downloaded the latest java version (Java 8 update 60) and after i installed it eclipse refused to open at all. Absolutely nothing appears, not even the message that appeared before installing Java.
The fan starts working, like the program was running but absolutely nothing appears, it's not even on the processes on ctrl+alt+delete.
So are there any ideas on what might be causing this? It's a brand new laptop and eclipse flat out refuses to open. No error message, nothing, just eclipse not opening at all.
tried re-installing, running as admin, restarting, nothing works.

Categories