[ https://issues.apache.org/jira/browse/NETBEANS-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Griffin closed NETBEANS-5746. ----------------------------------- Resolution: Fixed This doesn't appear to be an NB error, as I get the same thing running Maven from the command line. However, I re-added a Java 1.8 platform, and the error disappears if I set all the project compile properties to 1.8. NB uses its own embedded Maven, and I found mentions on the net to the effect that newer versions of Maven are needed for Java 9 and above. My guess is that Maven is looking for rt.jar, which doesn't exist in Java 11. You may want to check the version of the Maven code you ship. > Fatal Error: Unable to find package java.lang in classpath or bootclasspath > --------------------------------------------------------------------------- > > Key: NETBEANS-5746 > URL: https://issues.apache.org/jira/browse/NETBEANS-5746 > Project: NetBeans > Issue Type: Bug > Affects Versions: 12.3, 12.4 > Environment: Mageia cauldron (9) using the openjdk version noted > above. > Reporter: Frank Griffin > Priority: Major > Attachments: messages.log, messages.log.1 > > > Yes, I know that this problem has been reported countless times over the > years, but none of the perceived causes are the case in this report. > This is a fresh 12.4 install, carrying over project descriptions from older > versions. > The install finds the default Mageia JDK 11 install point of > /usr/lib/jvm/java-11, and NetBeans/netbeans/etc/netbeans.conf reflects this. > However, the actual value Mageia gives $JAVA_HOME is > /etc/alternatives/java_sdk, and if you go to Tools -> Java Platforms > /etc/alternatives/java_sdk is what is shown for Java Platform Folder. > However, this is a symlink: > (/etc/alternatives) > lrwxrwxrwx 1 root root 61 Feb 17 16:09 java_sdk -> > /usr/lib/jvm/java-11-openjdk-11.0.10.0.1-0.0.ea.2.mga8.x86_64/ > as is /usr/lib/jvm/java-11, which ends up in the same place: > (/usr/lib/jvm) > lrwxrwxrwx 1 root root 29 Feb 17 16:09 java-11 -> > /etc/alternatives/java_sdk_11/ > (/etc/alternatives) > lrwxrwxrwx 1 root root 61 Feb 17 16:09 java_sdk_11 -> > /usr/lib/jvm/java-11-openjdk-11.0.10.0.1-0.0.ea.2.mga8.x86_64/ > Here's the interesting part. If I leave netbeans.conf as is, I get the error > in the bug title. If I change netbeans.conf to /etc/alternatives/java_sdk, > then everything works. > I'll attach ~/.netbeans/var/log/messages.log for both cases. messages.log is > the working case, and messages.log.1 is the failing case. > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists