发现聊天室功能需要部署多台机器才能用。。。。
执行ant build-installation-generic
找不到IzPackTask,看来是跟openfire打包一样,要依赖第三方工具。
- Buildfile: /home/senrsl/test/jisti/jitsi/build.xml
- clean-install-generic:
- [mkdir] Created dir: /home/senrsl/test/jisti/jitsi/release/generic
- define-izpack-task:
- BUILD FAILED
- /home/senrsl/test/jisti/jitsi/resources/install/build.xml:55: taskdef class com.izforge.izpack.ant.IzPackTask cannot be found
- using the classloader AntClassLoader[]
- Total time: 629 milliseconds
地址http://izpack.org /,下载http://dist.codehaus.org/izpack/releases /4.3.5/IzPack-install-4.3.5.jar
下载页的说明
Launching an IzPack-based installer is easy. On most operating systems, a double-click on the Jar file icon will do. Otherwise, you may need to launch it from a shell command:
$ java -jar izpack-dist-5.0.0-rc4-installer.jar
安装选择安装目录/home/senrsl/tools/IzPack
总共9步。。。。
最后一步还可以生成安装脚本
然后怎么搞。。。。
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <AutomatedInstallation langpack="chn">
- <com.izforge.izpack.panels.CheckedHelloPanel id="hellopanel"/>
- <com.izforge.izpack.panels.HTMLInfoPanel id="infopanel"/>
- <com.izforge.izpack.panels.HTMLLicencePanel id="licensepanel"/>
- <com.izforge.izpack.panels.TargetPanel id="targetpanel">
- <installpath>/home/senrsl/tools/IzPack</installpath>
- </com.izforge.izpack.panels.TargetPanel>
- <com.izforge.izpack.panels.PacksPanel id="packspanel">
- <pack index="0" name="Core" selected="true"/>
- <pack index="1" name="HTML Documentation" selected="true"/>
- <pack index="2" name="PDF Documentation" selected="true"/>
- <pack index="3" name="Javadocs Documentation" selected="true"/>
- <pack index="4" name="Utilities" selected="true"/>
- <pack index="5" name="Sample" selected="true"/>
- </com.izforge.izpack.panels.PacksPanel>
- <com.izforge.izpack.panels.SummaryPanel id="summarypanel"/>
- <com.izforge.izpack.panels.InstallPanel id="installpanel"/>
- <com.izforge.izpack.panels.ShortcutPanel id="shortcutpanel">
- <programGroup name="IzPack4.3.5"/>
- <shortcut KdeSubstUID="false" categories="" commandLine="/home/senrsl/tools/IzPack/doc/izpack/html/index.html" createForAll="true" description="This opens a WebBrowser to look into the IzPack 4.3.5 (HTML) user documentation" encoding="UTF-8" group="false" icon="help" iconIndex="0" initialState="0" mimetype="" name="IzPack4.3 Html Documentation" target="/home/senrsl/tools/IzPack/bin/start.sh" terminal="" terminalOptions="" tryexec="" type="Application" url="/home/senrsl/tools/IzPack/doc/izpack/html/index.html" usertype="0" workingDirectory=""/>
- <shortcut KdeSubstUID="false" categories="" commandLine="/home/senrsl/tools/IzPack/doc/izpack/html/index.html" createForAll="true" description="This opens a WebBrowser to look into the IzPack 4.3.5 (HTML) user documentation" encoding="UTF-8" group="true" icon="help" iconIndex="0" initialState="0" mimetype="" name="IzPack4.3 Html Documentation" target="/home/senrsl/tools/IzPack/bin/start.sh" terminal="" terminalOptions="" tryexec="" type="Application" url="/home/senrsl/tools/IzPack/doc/izpack/html/index.html" usertype="0" workingDirectory=""/>
- <shortcut KdeSubstUID="false" categories="" commandLine="/home/senrsl/tools/IzPack/doc/izpack/javadoc/index.html" createForAll="true" description="This opens a WebBrowser to look into the IzPack 4.3.5 (HTML) Java documentation" encoding="UTF-8" group="false" icon="help" iconIndex="0" initialState="0" mimetype="" name="IzPack4.3 Java Documentation" target="/home/senrsl/tools/IzPack/bin/start.sh" terminal="" terminalOptions="" tryexec="" type="Application" url="/home/senrsl/tools/IzPack/doc/izpack/javadoc/index.html" usertype="0" workingDirectory=""/>
- <shortcut KdeSubstUID="false" categories="" commandLine="/home/senrsl/tools/IzPack/doc/izpack/javadoc/index.html" createForAll="true" description="This opens a WebBrowser to look into the IzPack 4.3.5 (HTML) Java documentation" encoding="UTF-8" group="true" icon="help" iconIndex="0" initialState="0" mimetype="" name="IzPack4.3 Java Documentation" target="/home/senrsl/tools/IzPack/bin/start.sh" terminal="" terminalOptions="" tryexec="" type="Application" url="/home/senrsl/tools/IzPack/doc/izpack/javadoc/index.html" usertype="0" workingDirectory=""/>
- <shortcut KdeSubstUID="false" categories="" commandLine="/home/senrsl/tools/IzPack/doc/izpack/pdf/manual.pdf" createForAll="true" description="This opens Adobe (Acrobat) Reader (if available) to look into or print the IzPack 4.3.5 (PDF) user documentation" encoding="UTF-8" group="false" icon="acroread" iconIndex="0" initialState="0" mimetype="" name="IzPack4.3 PDF Documentation" target="acroread" terminal="" terminalOptions="" tryexec="" type="Application" url="" usertype="0" workingDirectory=""/>
- <shortcut KdeSubstUID="false" categories="" commandLine="/home/senrsl/tools/IzPack/doc/izpack/pdf/manual.pdf" createForAll="true" description="This opens Adobe (Acrobat) Reader (if available) to look into or print the IzPack 4.3.5 (PDF) user documentation" encoding="UTF-8" group="true" icon="acroread" iconIndex="0" initialState="0" mimetype="" name="IzPack4.3 PDF Documentation" target="acroread" terminal="" terminalOptions="" tryexec="" type="Application" url="" usertype="0" workingDirectory=""/>
- <shortcut KdeSubstUID="true" categories="" commandLine="-jar "/home/senrsl/tools/IzPack/Uninstaller/uninstaller.jar"" createForAll="false" description="This uninstalls IzPack 4.3.5" encoding="UTF-8" group="true" icon="trashcan_full" iconIndex="0" initialState="0" mimetype="" name="Izpack4.3 Uninstaller" target="java" terminal="" terminalOptions="" tryexec="" type="Application" url="" usertype="0" workingDirectory=""/>
- </com.izforge.izpack.panels.ShortcutPanel>
- <com.izforge.izpack.panels.FinishPanel id="finishpanel"/>
- </AutomatedInstallation>
https://jitsi.org/Documentation/HowToBuildAnInstaller 打不开,腊肉集团真恶心
然后,挨个的找配置文件
发现了这个/home/senrsl/test/jisti/jitsi/resources/install /installers.properties
原来izpack的路径是在这里配置
然后ant build-installation-generic,报/home/senrsl/test/jisti/jitsi/resources /install/generic/installer-generic.xml这个16行错误,
- # The path where IzPack is installed
- #izpack.dir=/opt/izpack
- izpack.dir=/home/senrsl/tools/IzPack
注释掉
再ant
竟然成功了。
- Buildfile: /home/senrsl/test/jisti/jitsi/build.xml
- clean-install-generic:
- [delete] Deleting directory /home/senrsl/test/jisti/jitsi/release/generic
- [mkdir] Created dir: /home/senrsl/test/jisti/jitsi/release/generic
- define-izpack-task:
- -pre-version:
- version:
- [javac] Compiling 3 source files to /home/senrsl/test/jisti/jitsi/classes
- [javac] 警告: [options] 未与 -source 1.6 一起设置引导类路径
- [javac] 1 个警告
- [echo] Jitsi version 2.4.0.build.by.SVN
- load-properties:
- build-installation-generic:
- [propertyfile] Creating new property file: /home/senrsl/test/jisti/jitsi/release/generic/versionupdate.properties
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/generic
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/generic
- [izpack] Warning: /home/senrsl/test/jisti/jitsi/release/generic/tmp-installer-generic.xml:61: Panel jar file not found: /home/senrsl/tools/IzPack/bin/panels/HelloPanel2.jar
- [izpack] Building installer jar: /home/senrsl/test/jisti/jitsi/release/generic/jitsi-2.4.0.build.by.SVN.jar
- [izpack] Copying 60 files into installer
- [izpack] Merging 5 jars into installer
- [izpack] Writing 3 Packs into installer
- BUILD SUCCESSFUL
- Total time: 5 seconds
然后运行
果然是不能注释呢,这个选了语言就崩掉了,注掉的hello应该是安装引导。
- senrsl@senrsl-ubuntu:~$ cd /home/senrsl/test/jisti/jitsi/release/generic
- senrsl@senrsl-ubuntu:~/test/jisti/jitsi/release/generic$ ll
- 总用量 22372
- drwxrwxr-x 2 senrsl senrsl 4096 2月 9 20:15 ./
- drwxrwxr-x 3 senrsl senrsl 4096 2月 9 20:15 ../
- -rw-rw-r-- 1 senrsl senrsl 22893816 2月 9 20:15 jitsi-2.4.0.build.by.SVN.jar
- -rw-rw-r-- 1 senrsl senrsl 171 2月 9 20:15 versionupdate.properties
- senrsl@senrsl-ubuntu:~/test/jisti/jitsi/release/generic$ java -jar jitsi-2.4.0.build.by.SVN.jar
- java.lang.ClassNotFoundException: com.izforge.izpack.panels.HelloPanel2
- at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
- at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
- at java.security.AccessController.doPrivileged(Native Method)
把注释取消就这问题
挨个文件的乱改。。。。发现了关键是这句:与元素类型 "null" 相关联的 "value" 属性值不能包含 '<' 字符。'
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/generic
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/generic
- [izpack] ERROR: '与元素类型 "null" 相关联的 "value" 属性值不能包含 '<' 字符。'
- [izpack] ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: 与元素类型 "null" 相关联的 "value" 属性值不能包含 '<' 字符。'
- BUILD FAILED
- /home/senrsl/test/jisti/jitsi/resources/install/build.xml:163: com.izforge.izpack.adaptator.XMLException: Error in /home/senrsl/test/jisti/jitsi/release/generic/tmp-installer-generic.xml at line 16, column 104 : javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: 与元素类型 "null" 相关联的 "value" 属性值不能包含 '<' 字符。
- Total time: 1 second
配置是这个文件:/home/senrsl/test/jisti/jitsi/resources/install/ant-build- config.properties
这里面配置了那三个hello,第一个里面有邮箱,用<>这对符号标注。。。。。
去掉就能编译了。
第一屏
- [propertyfile] Creating new property file: /home/senrsl/test/jisti/jitsi/release/generic/versionupdate.properties
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/generic
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/generic
- [izpack] Building installer jar: /home/senrsl/test/jisti/jitsi/release/generic/vber4im-2.4.2047.jar
- [izpack] Copying 10 files into installer
- [izpack] Merging 6 jars into installer
- [izpack] Writing 3 Packs into installer
- BUILD SUCCESSFUL
- Total time: 5 seconds
后面跟安装izpack一样,萝莉啰嗦的好几屏,明日继续。
2015年02月09日21:00:58
没往linux上安,按到win xp上,都配完发现生成快捷方式报错。
这还不是重要的,重要的是安装完成的目录里面竟然时linux的shell脚本。。。。
- C:\download>java -jar vber4im-2.4.2047.jar
- could not read shortcut spec!
- com.izforge.izpack.installer.ResourceNotFoundException: Cannot find named Resour
- ce: '/res/shortcutSpec.xml' AND '/res/shortcutSpec.xml_chn'
- at com.izforge.izpack.installer.ResourceManager.getLanguageResourceStrin
- g(Unknown Source)
- at com.izforge.izpack.installer.ResourceManager.getInputStream(Unknown S
- ource)
- at com.izforge.izpack.panels.ShortcutPanel.readShortcutSpec(Unknown Sour
- ce)
- at com.izforge.izpack.panels.ShortcutPanel.panelActivate(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame.switchPanel(Unknown Sourc
- e)
- at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Sour
- ce)
- at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Sour
- ce)
- at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigat
- e(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$
- 100(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(U
- nknown Source)
- at java.lang.Thread.run(Unknown Source)
- java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, ???
- ??????
- at java.lang.ProcessBuilder.start(Unknown Source)
- at java.lang.Runtime.exec(Unknown Source)
- at java.lang.Runtime.exec(Unknown Source)
- at java.lang.Runtime.exec(Unknown Source)
- at com.izforge.izpack.util.LibraryRemover.initJavaExec(Unknown Source)
- at com.izforge.izpack.util.LibraryRemover.<init>(Unknown Source)
- at com.izforge.izpack.util.LibraryRemover.invoke(Unknown Source)
- at com.izforge.izpack.util.Librarian.cleanUp(Unknown Source)
- at com.izforge.izpack.util.Housekeeper.shutDown(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame.exit(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigat
- e(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$
- 100(Unknown Source)
- at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(U
- nknown Source)
- at java.lang.Thread.run(Unknown Source)
- Caused by: java.io.IOException: CreateProcess error=2, ?????????
- at java.lang.ProcessImpl.create(Native Method)
- at java.lang.ProcessImpl.<init>(Unknown Source)
- at java.lang.ProcessImpl.start(Unknown Source)
- ... 14 more
- C:\download>cd C:\Program Files\vber4im\lib
好吧,明日继续。
2015年02月10日10:40:10开始
/home/senrsl/test/jisti/jitsi/resources/install /installers.properties这个文件里配置jre的路径。
单只配linux的,然后 ant build-installation-linux
生成一个bin文件,77.2M。。。。看起来是包含了jre的。
- Buildfile: /home/senrsl/test/jisti/jitsi/build.xml
- clean-install-linux:
- [mkdir] Created dir: /home/senrsl/test/jisti/jitsi/release/linux
- [mkdir] Created dir: /home/senrsl/test/jisti/jitsi/release/linux/tmp
- define-izpack-task:
- -pre-version:
- version:
- [javac] Compiling 3 source files to /home/senrsl/test/jisti/jitsi/classes
- [javac] 警告: [options] 未与 -source 1.6 一起设置引导类路径
- [javac] 1 个警告
- [echo] Jitsi version 2.4.2047
- load-properties:
- build-installation-linux:
- [propertyfile] Creating new property file: /home/senrsl/test/jisti/jitsi/release/linux/versionupdate.properties
- [copy] Copying 2 files to /home/senrsl/test/jisti/jitsi/release/linux/tmp
- [mkdir] Created dir: /home/senrsl/test/jisti/jitsi/release/linux/tmp/jre
- [copy] Copying 698 files to /home/senrsl/test/jisti/jitsi/release/linux/tmp/jre
- [copy] Copied 99 empty directories to 1 empty directory under /home/senrsl/test/jisti/jitsi/release/linux/tmp/jre
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/linux/tmp
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/release/linux
- [copy] Copying 1 file to /home/senrsl/test/jisti/jitsi/resources/install/linux
- [izpack] Warning: /home/senrsl/test/jisti/jitsi/release/linux/tmp/tmp-installer-linux.xml:62: Panel jar file not found: /home/senrsl/tools/IzPack/bin/panels/HelloPanel2.jar
- [izpack] Building installer jar: /home/senrsl/test/jisti/jitsi/release/linux/tmp/vber4im-2.4.2047-linux.jar
- [izpack] Copying 59 files into installer
- [izpack] Merging 5 jars into installer
- [izpack] Writing 5 Packs into installer
- [tar] Building tar: /home/senrsl/test/jisti/jitsi/release/linux/tmp/install.tar
- [tar] Entry: jre/lib/desktop/icons/HighContrastInverse/16x16/mimetypes/gnome-mime-application-x-java-jnlp-file.png longer than 100 characters.
- [tar] Resulting tar file can only be processed successfully by GNU compatible tar commands
- [tar] Entry: jre/lib/desktop/icons/HighContrastInverse/48x48/mimetypes/gnome-mime-application-x-java-jnlp-file.png longer than 100 characters.
- [gzip] Building: /home/senrsl/test/jisti/jitsi/release/linux/tmp/install.tar.gz
- [delete] Deleting directory /home/senrsl/test/jisti/jitsi/release/linux/tmp
- [delete] Deleting: /home/senrsl/test/jisti/jitsi/resources/install/linux/felix.client.run.properties
- BUILD SUCCESSFUL
- Total time: 16 seconds
这样,linux的打包是可以,win的打包才是重点。
执行ant build-installation-wix-64
看这意思,是要在win下才能编译。。。。
- BUILD FAILED
- /home/senrsl/test/jisti/jitsi/resources/install/build.xml:298: The following error occurred while executing this line:
- /home/senrsl/test/jisti/jitsi/resources/install/build.xml:411: Execute failed: java.io.IOException: Cannot run program "make.exe" (in directory "/home/senrsl/test/jisti/jitsi/src/native/windows/run"): error=2, 没有那个文件或目录
- Total time: 1 second
跑到http://wix.codeplex.com /下了个wix,发现无论哪个版本都是要在win下运行。。。。。
解压版:
这是歧视!!!
看起来必须要到win下编译了。。。。好吧,回8改代码。
年后此项目暂停,搞android OS开始。
2015年04月19日14:40:44
--
senRsl
2015年02月09日19:33:51
2015年02月09日19:33:51
没有评论 :
发表评论