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.
在 Ubuntu 10.10,系统/首选项/启动应用程序中,我正在尝试添加一个 .jar 程序。如果该程序位于 home/john/this-folder/app.jar 中,我将在命令行中放置什么以使其在启动时运行?
java -jar /home/john/this-folder/app.jar [optional arg if any]
请注意,如果您的 java 应用程序需要依赖项,则需要在类路径中包含 jar。你这样做: java -jar /yourApp.jar -cp /home/zzz/libs/