http://blog.csdn.net/jikeyzhang/archive/2009/10/27/4731968.aspx 下载RUL: http://fjep./ 使用方法:你的项目=〉Export..=>FatJar. 【图解】 开始:在你的工程项目里右键弹出下图: 然后Buile Fat Jar出现下图:
再然后就Next了,又出现下图: 再然后就没了。在桌面上找到刚刚打包的libr.jar双击,终于成功了,酷啊!!!! 内容转自网络 官方教程
Fat Jar Eclipse Plug-In Tutorial
Create a new Java Project named "demolib".
The Project should look something like this: In the "Package-Explorer" (not the "Resource-View") right click on the project "demolib".
A Configuration Dialog appears. Just press "Finish".
The File "demolib_fat.jar" has been created in the project root directory.
Create a new Java Project named "demorun".
Add the Class "demorun.DemoRunMain.java" containing the following code:
The Project should look something like this:
Start the Export Wizard from the File-Menu ("File" -> "Export").
Select the project "demorun" and click "next >".
A Configuration-Dialog appears showing the current Settings.
The Main Class - the one containing the static methode main - must be defined in the jar.
Select "DemoRunMain" and click the "OK" Button. Save the current Settings by clicking on the "Finish" Button.
The File "demorun_fat.jar" has been created in the project root directory.
(#)
|
|