79783225

Date: 2025-10-05 21:44:26
Score: 1.5
Natty:
Report link

With @Siguza's help, I found a variation of the launch command that worked. The only broken part was correctly invoking Java. The find command Sugiza suggested is below.

find /Library/Java -name java

That command returned the following results:

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin/java

/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java

/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java

/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java

/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre/bin/java

/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin/java

/Library/Java/JavaVirtualMachines/jdk-25.jdk/Contents/Home/bin/java

As mentioned in the SO post about not finding Java, the path needed for --jdkhome ends with '/Contents/Home' and not with '/bin'. Here's the command that worked.

/Applications/NetBeans/netbeans27/bin/netbeans --jdkhome /Library/Java/JavaVirtualMachines/jdk-25.jdk/Contents/Home --userdir ~/NBUser --cachedir ~/NBCache --fontsize 16

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @Siguza's
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ray N. Franklin