Frank Griffin created NETBEANS-5746:
---------------------------------------

             Summary: 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
         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

Reply via email to