Having just moved from NB version 8 to 11.1 there seems to have been a change in the command line needed to run a project.
The OS is Windows 7 Home. The project has two external libraries: one in the Java modules in the NetBeans 11 directory, and one of my own. In version 8 it was possible to run the program with a command line like java -jar program.jar but this no longer works, and I have to put in a command line like java -cp library paths program.jar which is a pain, as I can't automate that into a batch file. Is there any way of getting the libraries (or references to them) included in the jar file? The properties|Libraries|Run tab shows that the classpaths for Compiling Sources and Compiled Sources are included (at least as I understand the symbols on that page). Does the "Build Dependencies" tickbox have any significance here? The lack of a help file means that I can't find out what most of the window items actually mean. As a rider to this question, there seems to be two small bugs in the Ant script which produces the command line for running the project : To run this application from the command line without Ant, try: C:\Program Files\Java\jdk-12.0.1/bin/java -cp C:\Program Files\NetBeans 11\netbeans\java\modules\ext\AbsoluteLayout.jar;D:\Peter\Netbeans\Partitions511\dist\Partitions511.jar;D:\Peter\Netbeans\KillerSudoku11\dist\KillerSudoku11.jar com.ptoye.TestKiller.TestKiller 1) In Windows, the Java executable and Netbeans are in the "Program Files" or "Program Files (x86)" folder. This should have quotes round it to run successfully. 2) In NB 11.1, the output mentions "Netbeans 11" - Shouldn't this be C:\Program Files\NetBeans-11.1? Regards, Peter mailto:netbe...@ptoye.com www.ptoye.com