开发者

How Do I Package and Deploy an Eclipse Java Application?

I have built a Java application that has some dependencies (~10). I would like to easily package this application up and deploy it as a single file to a CD or USB drive.

There doesn't seem to be any "nice" wizard to search the project, grab the dependencies and setup the classpath on the target computer. I have to do this manually.

Is there a better way? Something simp开发者_Go百科le, easy and straight-forward. A link to a tutorial on this would be great.

Seems to me that this should be a built-in feature to eclipse. Deployment of a web application seems easy enough, but not a Java application.


Have a look at the Fat Jar Plug-In.


That's because desktop deployment isn't well defined.

You are heading into release issues which is a huge can of worms.

I assume you have some form of version control like SVN or git? If so check out maven with the release plugin and maven-assembly-plugin

It'll take a lot of work to setup, but once you get it going you'll be cross linking and deploying distribution packages in no time!

Plus you'll have access to the vast maven repos on the web right now

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜