Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只能执行我制作的应用程序,在命令行中使用以下命令:
java -jar -Djava.net.preferIPv4Stack=true P2P_network.jar
我想知道,我怎样才能把它放在 jar 文件中,这样我就可以自动执行它,而无需进入命令行。
使用的 IDE 是 netbeans。
这个答案可能会有所帮助。'dash dee' 和 'dash enableassertions' 都是 VM 选项。