11/13/2023 0 Comments Netbeans working directory location![]() ![]() I hope you will get NetBeans working with these steps. If this is fine, any if you have fixed your JDK path, then try to re-install NetBeans. If you have found another NetBeans install at step 2, you should also remove it. You should not get any result for which netbeans in terminal. If you cannot get a working NetBeans from any of the above steps, I would suggest uninstalling the snap package. Where was it located ? I am asking because it seems that you installed NetBeans via snap, but if this is correct then you should not have been able to edit the. How did you install NetBeans? You mention you edited the nf file. Last thing, I wonder where your NetBeans is, or how many NetBeans you have installed in your session. But I would rather recommend you to fix your JDK location as it sounds a "cleaner" way to solve your problem. If you do this, you should be able to launch again NetBeans from its icon, as you do from terminal. You could edit the command, so basically copy / paste the one you successfully use from terminal. I suspect that there might be some mess due to different consecutive NetBeans locations or installations, with the launcher not correctly updated in between. Maybe you could use your graphical menu editor to check what commands this icon is actually executing when you click on it ? You should also check what the current command is doing, which NetBeans binary it tries to execute, and check if this binary file indeed exists. NetBeans Launcherįrom what you say, the NetBeans icon does not launch NetBeans anymore. Please note that if you wish to use JDK 14 for NetBeans only and another JDK for your system, then you should keep the update-alternatives command pointing on the desired system JDK and specify your NetBeans JDK in nf (as you seems having done actually). On a side note, if you want to permanently set the JAVA_HOME variable, you will have to edit the ~/.bashrc file, and add at the end of this file:Įxport JAVA_HOME=/home/username/myjavafolder/jdk-14.0.1īut I am not sure that this is causing your problem so this is more for information. If it does, then perfect, don't check further, that's the only thing that was missing. You can enter the number of the one you wish to use in place of the current one. The terminal will then display all the JVM / JDK it founds, with a star in front of the currently used one. Normally, you can update your default JDK with the command sudo update-alternative -config java (and then the same with javac). What do you get if you enter the commands which java and which javac ? You have set your JDK in an unusual folder and I bet that Ubuntu is half or not aware of it. There are several things that I think are not necessarily connected in your question. Using which in terminal shows netbeans is at snap/bin/netbeans, but in this file properties it show its link target is /usr/bin/snap. I also changed JAVA_HOME variable as well (using JAVA_HOME=$"/home/username/myjavafolder/jdk-14.0.1", but after reboot, it got reset for some reason (when I echo $JAVA_HOME I get an empty line) I changed the nf to point to the above jdkhome. In Ubuntu Software it shows Apache NetBeans is installed, but when I right-click on the favorite icon and click "Show Details", Ubuntu Software shows "Unable to find netbeans_sktop" But I don't want to open terminal each time I run NetBeans. It works fine, and in Tools\Java Platforms is shows JDK 14 is the default platform. I have to open terminal and run netbeans -jdkhome /home/username/myjavafolder/jdk-14.0.1 ![]() I removed NB for Ubuntu Software, then reinstalled it from terminal, but it stopped for some error fetching jdk from archive, so I installed it from snap. All working fine.Īpache Netbeans now is not working from Favorites icon, no matter how many times I click. Then NetBeans upgraded to 11.3, and for some reason it didn't see JDK, so I downloaded JDK 14 and added it to NetBeans Platforms. I had Apache NetBeans 11.1 with JDK 11 running fine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |