I try the command line with JavaHome:
netbeans-trunk-nightly-201803230002-javase-windows.exe --javahome \"C:\\Program Files\\Java\\jdk-10\"
Netbeans won't work properly with jdk version 10. Install jdk 8u/17l and everything should go well.