Feeling

    三人行,必有我师焉

   ::  :: 新随笔 :: 联系 ::  :: 管理 ::
  185 随笔 :: 0 文章 :: 392 评论 :: 0 Trackbacks
Java应用定制工厂(以下简称为JCB,Java Customization Builder)是一个针对Java轻量级桌面应用进行精简优化的小工具,使用它可以精简你的jar包,并自动生成一个精简的JRE,也可以使用它生成一个Exe启动引导程序,并且能够对你的Java应用自动做Pack200和Unpack200处理。使用本工具定制的Java桌面应用通常不会超过5M(包含JRE),SWT客户端程序相对于Swing客户端程序更小,一般不会超过3M。

JCB1.0.3主要功能是可以支持
添加Exe的版本信息,并且能够更细节的定义Exe的启动行为,比如是否显示一个splash窗口,是否优先使用精简版的jre,以及增加了对unpack操作的优化,让应用程序第一次运行启动的更快。同时也增加了对系统权限的支持,不再要求需要管理员权限才能运行软件,Guest用户一样的使用。

下一个版本考虑增加一个Au3的编辑器,具有语法高亮和智能辅助功能,可以让高级用户定制自己的Exe行为。

软件主页:http://jcb.sourceforge.net
JCB1.0.3下载地址:http://sourceforge.net/projects/jcb/files/JCB_1.0.3.zip/download


posted on 2011-12-26 22:13 三人行,必有我师焉 阅读(1602) 评论(3)  编辑  收藏

评论

# re: Java定制工厂1.0.3已发布,增加了Exe可执行文件的属性编辑和splash窗口显示[未登录] 2012-03-29 20:04 LJ
第一次使用JCB1.0.3,进行精简JAR包时,报错:

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\bin\javaw.exe' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\bin\javaw.exe' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\bin\java.exe' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\bin\java.exe' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\bin\java.dll' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\bin\java.dll' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\bin\zip.dll' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\bin\zip.dll' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\bin\client\jvm.dll' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\bin\client\jvm.dll' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\lib\i386\jvm.cfg' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\lib\i386\jvm.cfg' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\lib\security' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\lib\security' are the same
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:872)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:770)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:745)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:277)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.io.IOException: Source 'E:\Project Center\netbeans\BrickBreaker\jre\bin\verify.dll' and destination 'E:\Project Center\netbeans\BrickBreaker\jre\bin\verify.dll' are the same
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:643)
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607)
at net.sf.feeling.java.customization.engine.JreSlimAnalysisEngine.copyJreFiles(JreSlimAnalysisEngine.java:283)
at net.sf.feeling.java.customization.ui.JarSlimPage$17.run(JarSlimPage.java:1047)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
  回复  更多评论
  

# re: Java定制工厂1.0.3已发布,增加了Exe可执行文件的属性编辑和splash窗口显示[未登录] 2012-03-29 20:06 LJ
测试JCB1.0.0 也出现以上错误。  回复  更多评论
  

# re: Java定制工厂1.0.3已发布,增加了Exe可执行文件的属性编辑和splash窗口显示 2012-03-30 17:52 三人行,必有我师焉
用法不对,源JRE不能和定制JRE是同一个目录。  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航:
 
GitHub |  开源中国社区 |  maven仓库 |  文件格式转换