netbeans project collapses tree menu - java

NetBeans project collapses tree menu, but this did not occur earlier.
Product Version: NetBeans IDE 7.4 (Build 201310111528)
NetBeans IDE NetBeans 7.4 Patch 2
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows 7 version 6.1 running on amd64; Cp1251; ru_RU (nb)

Usually for that kind of issues there is no solution. Try to report the bug to the netbeans community if it is not already reported. If you want to have a clear solution to your problem change you netbeans to an earliest version or reinstall this particular version.
PS: You should update you Java version to the latest one (1.7.0_51).

there may be some issues with the istallation processes try
1) reinstaiing
2) changing perspective mode
3) refeshing project

The problem may be with your Netbeans compatibility, because you are using 64 bit system. Your Netbeans is might be compatible with 32 bit system only. Or other possible thing is that Netbeans is not installed properly.
So to solve this problem you can do this:
Reinstall Netbeans
Search for 64 bit compatible Netbeans version, Download it, and then install it properly.
Delete your existing project and create a new project.

Related

Installing eclipse 2020-03, jdk 1.8, spring3 on macbook m1

I'm relatively new to mac os, java, eclipse,, simply everything, and all the changes that are being made due to the revolutionary apple silicon is driving me crazy.
My co-workers and I are working on a java project based on Eclipse 2020-03, jdk 1.8, spring 3. and I'm having trouble installing the environment on my Macbook M1.
First, I've tried installing the open jdk1.8 and have managed to set the PATH in .zshrc
Then I installed Eclipse 2020-03 and opened it using rosetta when it immediately crashed on me. It wouldn't even ask what workspace to open.
So I tried installing the new Eclipse 2022-06 (arm) and set jdk to 1.8. Eclipse worked fine until I tried making a new Spring MVC project when it gave me java.lang.exceptionininitializererror. I've searched for solutions to this error and only found 'upgrade your jdk' suggestions.
I decided to lower Eclipse version to 2021-12 (arm, because its the first arm supported), and install jdk11 + set Path in .zshrc (commented out jdk1.8 path). I still get java.lang.exceptionininitializererror when I try to create new spring legacy project.
tried:
Option 1. Eclipse 2020-03 (macOS x86_64) + jdk1.8 -> eclipse wont open
Option 2. Eclipse 2022-06 (AArch64) + jdk1.8 -> java.lang.exceptionininitializererror when creating spring project
Option 3. Eclipse 2021-12 (AArch64) + jdk11 -> java.lang.exceptionininitializererror when creating spring project
with option 3 above, I could open spring-mvc-project set in a different PC and worked fine. but I still want to have my problem solved.
I've thought over and came up with three ways to get these problems sorted:
Have exactly same Eclipse, jdk, spring version with my co-workers (option 1), try fixing start-eclipse problems.
-> slow since im using rosetta but i wont have compatibility problems with my co-workers
use most recent Eclipse, jdk, spring3
-> fast and have less problems but I assume I'll have tons of compatibility problems
use relatively old but apple silicon-supported Eclipse(Option 3), jdk 11
-> fast, have some compatibility problems (if I solve 'java.lang.exceptionininitializererror' problem)
My questions are:
Of the three ways listed above, which would you suggest me try?
How can I solve the problem I face when trying that particular way?
Additionl:
I couldn't find any related error on terminal, but I found this on my error log
Additions2:
I decided to install the relatively new Eclipse(2022-03), using jdk11. so far its working fine, without any compatibility issues
Unfortunately, it seems that Eclipse Adoptium / Temurin pointed to by rzwitserloot's answer either never had a JDK8 for MacOS aarch64, or has removed it. They have JDK11 and higher, but that's not what this question is about.
Eventually, I found that Azul offers a version of OpenJDK 8 compiled for MacOS ARM64 (Apple Silicon):
https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk
I have installed it and it seems to work fine.
java -version
openjdk version "1.8.0_345"
OpenJDK Runtime Environment (Zulu 8.64.0.19-CA-macos-aarch64) (build 1.8.0_345-b01)
OpenJDK 64-Bit Server VM (Zulu 8.64.0.19-CA-macos-aarch64) (build 25.345-b01, mixed mode)
You can get ARM mac versions of all JDKs including JDK8 from Adoptium.
Eclipse is highly backwards compatible. There is no sensible reason to use anything but the most recent stable release.
Eclipse itself runs on a JVM. There is no need for this JVM to be what your project standardized on, because any project in eclipse can be configured to run on whatever JVM you want. Thus, if it sounds like you need a newer JVM version to run eclipse on, just do that. It doesn't matter if your project won't run on that.
More generally getting an ExceptionInInitializerError is a wrapper exception. The real cause is inside it. Inspect the traces somewhat more rigorously; start eclipse from the command line (open a terminal, then run /path/to/Eclipse.app/Contents/MacOS/eclipse - now you can see the terminal output, that might help. "ExceptionInInitializerError" says almost nothing and has a billion causes. You want the exception that caused that, that'll be much more specific. It's somewhat unlikely to be related to running on an M1; very little stuff in the java ecosystem cares one iota about what chips you run it on.
More generally if rosetta is involved you're doing it wrong, there is no need for this. Everything relevant (which is really just the JVM, everything else runs on top of that) is available native.

NetBeans 12.4 "Warning - could not install some modules: JavaFX wrapper"

I get the following message after exiting out of NetBeans and then re-starting.
Warning - could not install some modules: JavaFX wrapper - No module providing the capability org.openide.modules.jre.JavaFX could be found. Another module could not be installed due to the above problems.
I am using Java 15, with JavaFX. I didn't have the issue with 12.3 and Java 15, but now I get it at least once a day, depending on how often I leave and re-enter.
I have a work-around. I replace the NetBeans cache with a clean copy kept for this purpose, and I can then restart and continue working without the error, but this is a bit tedious after the first couple of times, each day.
Product Version: Apache NetBeans IDE 12.4
Java: 15.0.4; OpenJDK 64-Bit Server VM 15.0.4+5-MTS
Runtime: OpenJDK Runtime Environment 15.0.4+5-MTS
System: Windows 10 version 10.0 running on amd64; UTF8; en_AU (nb)
I have found the solution, I have re-installed, and skipped the installation of the nb-javac plugin. I had forgotten that I did this on my older installations, until I re-read the post below. Everything is fine now.
NetBeans plugin fails if nb-javac installed
What's "nb-javac" in Apache NetBeans?

Enable Compile on Save option in Netbeans 11

How can I enable Compile on Save in Apache Netbeans IDE 11.0?
Output of my java -version
java version "11.0.4" 2019-07-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.4+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.4+10-LTS, mixed mode)
I tried setting:
compile.on.save=true in nbproject/private/private.properties
compile.on.save=true in nbproject/private.properties
compile.on.save.unsupported.javafx=true in nbproject/private.properties
compile.on.save.unsupported.javafx=false in nbproject/private.properties
and possible combinations of these. But not to succeed so far.
TLDR:
You need to install the nb-javac library to enable compile on save.
However, due to a NetBeans bug, you must use version 11.2 beta 3 of NetBeans for that to work.
You may be seeing this issue because you need to install the nb-javac library. To determine whether installation is necessary:
Open the Notifications window by selecting Window > IDE Tools > Notifications.
If installation is required there will be a message stating "Install nb-javac Library" in the Notifications window:
To install the nb-javac library:
Unfortunately you must use version 11.2 beta 3 (or later) of NetBeans. This is due to an unrelated problem with the installation of nb-javac.
You can download NetBeans 11.2 beta 3 from this page. The file is named netbeans-11.2-beta3-bin.zip. Just download the zip file, then unzip it in a new directory.
From version 11.2 beta 3 of NetBeans (or later), select the notification in the Notifications window.
Click the link in the right pane with the text "It is recommended to install nb-javac Library to improve Java editing experience and enable compile on save".
A wizard for installing the library will be shown:
Complete the steps in the wizard. Once installation is complete, restart NetBeans.
After restarting NetBeans you should find that:
The nb-javac library has been installed.
The Compile on Save checkbox for your project is enabled.
I could reproduce your problem in NetBeans 11.1, and I have verified that this solution worked for me.
Notes:
See Bug Report NETBEANS-2552 Fail to install nb-javac Library on NetBeans 11 for details on why you need to upgrade NetBeans to version 11.2 beta 3 to fix this issue.
If you prefer not to use a beta release, version 11.2 of NetBeans should be available very soon.
See these articles for further information on nb-javac:
"What's "nb-javac" in Apache NetBeans?".
Overview: nb-javac
The nbjavac plugin needs to be installed. See also here.

Netbeans 8.2 Bad Editor Text

Just installed Netbeans IDE 8.2 today and this happened
Search through many forums, still can't find the answer. I tried to change the font, but still can't work.
My System :
Product Version: NetBeans IDE 8.2 (Build 201609300101)
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 1
Java: 1.8.0_112; Java HotSpot(TM) 64-Bit Server VM 25.112-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_112-b15
System: Windows 8.1 version 6.3 running on amd64; Cp1252; en_US (nb)
Question:
How can I fix this? And what does that red line do?
Tools -> Options -> Fonts and Colors -> Pick a profile (Reset if you have made changes to it) and you should be good to go!
So, I've found a solution, despite it isn't a perfect solution for this problem.
I tried to change the font to Consolas, and it looks 99% normal.
Fixed

Eclipse won't start after installing Mac OS X Yosemite (Mac OS 10.10)

Right after upgrading to Mac OS Yosemite (10.10), my Eclipse won't start anymore. Instead I get
The JVM shared library /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
I checked java -version and get
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
I search and have found one similar problem Reinstalling Java 7 JDK on OSX. It is suggesting a reinstallation of Java. I am not sure if my problem falls into the same category as his. So, is reinstallation a good way to solve the problem? Any other advice? Thanks!
Go to the link below and download Java for OS X 2014-001
http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
Hopefully after installing it , it will work
Try this https://jdk8.java.net/download.html Java8u20 early Update.
You may change the system version temporarily in the "SystemVersion.plist" located at System > Library > CoreServices.
Edit as root changing ProductVersion to 10.7.3 (or whatever works for you).
Install java.
Don't forget to change it back.
I solved this issue creating those empties folders as root without downgrade using java8 (vers.1.8.0_60-ea):
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk and
/System/Library/Java/Support/Deploy.bundle
Hope it helps...
I installed Java JRE from Oracle: http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jre-8u25-macosx-x64.dmg
Then install the Apple Package: http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
I was able to install eclipse-ide from homebrew cask
brew cask install eclipse-ide eclipse-java
(Please be aware that brew cask installs to ~/Applications not /Applications)
I don't normally use Eclipse, however I was able to get the IDE up and going. I will note that java on the command line is broken, which is new in Yosimite.
Please let me know if that doesn't work. Or if you need some help with Homebrew or Cask
Make sure you are using the 64 bit version of Mac Eclipse I just tried it works flawless
Two cases:
if you already have installed Java 8 and Eclipse Luna e.g. on Mavericks and (intent to) update to Yosemite: just update, it will work fine.
if you do not have Java installed and want to run Eclipse on Yosemite:
install Apple Java 6 files from http://support.apple.com/kb/DL1572
use an Eclipse Version that runs with Java 6, e.g. Kepler from https://www.eclipse.org/downloads/packages/release/Kepler/SR2
That means, if you want to use Eclipse Luna and Java 8, install it while running Mavericks, then update to Yosemite. Do not try to install Java 8 on Yosemite as that at the moment won't work.
What does not work on my Mac is: installing Java 6 and run Eclipse Luna as that needs Java 7 or 8. Installing Java 7 or 8 does not solve the prob as something with the installer seems to be buggy. Should be solved by Oracle in a few days, however.
After upgrading to yosemite, java 6 jdk is no longer available, remember that jdk 6 for mac osx is a 32-bit application, older eclipse releases needs a 32-bit jvm in order to run properly, a 32-bit application cannot run with a 64-bit jvm like java 7 or 8, so you need to install jdk 6 to run those java applications that needs a 32 bit virtual machine. As already posted here you can download jdk 6 from http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US

Categories

Resources