开发者

How to run a remote Java file from command line instead of locally from Eclipse

开发者 https://www.devze.com 2023-02-17 17:35 出处:网络
I have an Eclipse project that contains a file that I would like to be able to run from the command line remotely.

I have an Eclipse project that contains a file that I would like to be able to run from the command line remotely.

The reason being, it is easier for me to run it for a long period of time if it is running remotely on some server. That way, I can run my program via screen to monitor its progress.

The problem is, all of the things that eclipse takes care of (i.e. package hierarchies, dependencies on certain libraries) i开发者_StackOverflows messed up if I try to compile/run this file on its own.

How could I run the file remotely without having to edit the code that already exists?


Eclipse is actually all set up to export your applications as a runnable jar file, including a manifest pointing to all the necessary libraries which will also be exported. Look under the "Export..." wizard in the Navigator. I've used this to export some quite complex non-RCP applications!

0

精彩评论

暂无评论...
验证码 换一张
取 消