junichi11 / netbeans-rainbow-braces

Rainbow Parenthesis / Brackets / Braces for NetBeans
https://plugins.netbeans.apache.org/catalogue/?id=25
Apache License 2.0
35 stars 4 forks source link

JDK 14 Removes Unpack200 #10

Closed cbm64chris closed 4 years ago

cbm64chris commented 4 years ago

Describe the bug The plugin cannot be installed when JDK 14 is used to boot NetBeans 11.3 because unpack200 was deprecated in JDK14

To Reproduce Steps to reproduce the behavior:

  1. Go to Plugins
  2. Click on Available Plugins
  3. Scroll down to Rainbow Braces
  4. Click Install
  5. Error generated after nbm is downloaded -

java.io.IOException: error=2, No such file or directory at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:319) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:250) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) Caused: java.io.IOException: Cannot run program "/Library/Java/JavaVirtualMachines/adoptopenjdk-14.jdk/Contents/Home/bin/unpack200" (in directory "/Users/xxxxx/Library/Application Support/NetBeans/11.3/modules"): error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) [catch] at org.netbeans.updater.ModuleUpdater.unpack200(ModuleUpdater.java:567) at org.netbeans.updater.ModuleUpdater.unpack(ModuleUpdater.java:465) at org.netbeans.updater.ModuleUpdater.run(ModuleUpdater.java:117)

Expected behavior The nbm should install regardless of JDK. The workaround is to boot with JDK11 to JDK13 by changing the netbeans.conf - netbeans_jdkhome="/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home".

Desktop (please complete the following information):

junichi11 commented 4 years ago

@cbm64chris Maybe, we can't do anything from the plugin side. (There is no information related to this plugin in your log.) If you can reproduce that with other plugins as well, please report it to the JIRA of NetBeans : https://issues.apache.org/jira/projects/NETBEANS/issues Thanks.

cbm64chris commented 4 years ago

@cbm64chris understood - I'll post the dev mailing list and get a discussion started.

junichi11 commented 4 years ago

@cbm64chris Yes, it would be better :)

cbm64chris commented 4 years ago

Closing pending discussions on the dev mailing lists.

gydox commented 4 years ago

Is there any workaround for this issue?

cbm64chris commented 4 years ago

@shawntay97 yes, run NetBeans on jdk 11, install then change back to 14.