views:

30

answers:

1

I can only execute an application i made, with the following command in the command line:

java -jar -Djava.net.preferIPv4Stack=true P2P_network.jar

I would like to know, how can i put this in the jar file, so i can execute it automatically, without needing to go to the command line.

The IDE used is netbeans.

A: 

This answer may help. The 'dash dee' and 'dash enableassertions' are both VM Options.

vkraemer