Hello,

I haven't investigated this entirely, but I had 2 bug reports and it
looks to me like the Windows launcher is sensitive to JAVA_HOME
environment variable being set on Windows even when it seems to be
starting properly with the netbeans_jdkhome from etc/netbeans.conf

The rather unique stacktraces are related to "platform encoding":

Operating System        = Windows 10 version 10.0 running on amd64
 Java; VM; Vendor        = 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+9;
Oracle Corporation
  Runtime                 = OpenJDK Runtime Environment 11.0.2+9

java.lang.InternalError: platform encoding not initialized
        at java.desktop/sun.awt.Win32FontManager.getFontPath(Native Method)
        at 
java.desktop/sun.font.SunFontManager.getPlatformFontPath(SunFontManager.java:3166)
        at 
java.desktop/sun.font.SunFontManager.getPlatformFontDirs(SunFontManager.java:3051)
        at 
java.desktop/sun.awt.Win32FontManager.getDefaultPlatformFont(Win32FontManager.java:218)
        at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:369)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:312)
        at 
java.desktop/sun.awt.Win32FontManager.<init>(Win32FontManager.java:87)
Caused: java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at 
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at 
java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:84)
Caused: java.lang.InternalError
        at 
java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at 
java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
        at java.desktop/java.awt.Font.getFont2D(Font.java:497)
        at java.desktop/java.awt.Font$FontAccessImpl.getFont2D(Font.java:237)
        at java.desktop/sun.font.FontUtilities.getFont2D(FontUtilities.java:139)
        at 
java.desktop/sun.font.FontUtilities.fontSupportsDefaultEncoding(FontUtilities.java:316)
        at 
java.desktop/com.sun.java.swing.plaf.windows.WindowsLookAndFeel$WindowsFontProperty.configureValue(WindowsLookAndFeel.java:2240)
        at 
java.desktop/sun.swing.plaf.DesktopProperty.createValue(DesktopProperty.java:159)
        at 
java.desktop/javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:239)
        at java.desktop/javax.swing.UIDefaults.get(UIDefaults.java:169)
        at java.desktop/javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:65)
        at java.desktop/javax.swing.UIDefaults.getFont(UIDefaults.java:419)
        at java.desktop/javax.swing.UIManager.getFont(UIManager.java:722)
        at 
java.desktop/javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:209)
        at 
java.desktop/javax.swing.plaf.basic.BasicPanelUI.installDefaults(BasicPanelUI.java:77)
        at 
java.desktop/javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:62)
        at java.desktop/javax.swing.JComponent.setUI(JComponent.java:685)
        at java.desktop/javax.swing.JPanel.setUI(JPanel.java:150)
        at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
        at org.netbeans.license.LicensePanel.<init>(LicensePanel.java:41)
        at 
org.netbeans.license.AcceptLicense.showLicensePanel(AcceptLicense.java:58)
Caused: java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[catch] at org.netbeans.core.startup.Main$1LicenseHandler.run(Main.java:453)
        at 
java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
        at 
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at 
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor
org.netbeans.CLIHandler$2
java.lang.InternalError: platform encoding not initialized
        at java.base/java.net.Inet6AddressImpl.getLocalHostName(Native Method)
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1623)
        at org.netbeans.CLIHandler$2.run(CLIHandler.java:642)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

--emi

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-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