标签:http os io java strong ar for 文件 art
1、jdk-6u45-windows-i586.exe
2、jre-6u45-windows-i586.exe
直接安装即可。环境变量配置:
以安装位置D:\Dev\Java\jdk1.6.0_45为例:
JAVA_HOME=D:\Dev\Java\jdk1.6.0_45
PATH=%JAVA_HOME%\bin
二、安装Ant
解压到指定位置即可,环境变量配置:
以安装位置D:\Dev\apache-ant-1.9.4为例:
ANT_HOME=D:\Dev\apache-ant-1.9.4
PATH=%ANT_HOME%\bin
三、安装Eclipse
直接安装即可,第一次打开Eclipse需要指定工作目录,如:D:\Dev
将下载的ReplicatorG-master.zip解压到Eclipse工作目录,目录结构为:
D:\Dev\ReplicatorG
D:\Dev\ReplicatorG\build.xml
五、将ReplicatorG导入Eclipse并配置ReplicatorG环境
- Start Eclipse and select "File>New>Project…" from the menu. Select "Java Project from Ant Buildfile" from the wizard.
- Select the "build.xml" file from the ReplicatorG directory as the Ant buildfile. Click "finish" to create the project.
- All the additional libraries needed for build were automatically added by Ant but they should be manually re included from within "ReplicatorG/build" directory:
- Right click on the project name, and select "Properties".
- In the Properties dialog, select "Java Build Path".
- Select the Libraries tab.
- Press "Add External JARs…" (on the right side of the window).
- Add all the JARs from within "build/shared/lib" directory.
- Optional: Remove all the duplicated JARs.
If you intend to run ReplicatorG from Eclipse, you‘ll need to set up a launch configuration. When you do, be sure to add the native libraries for your platform to the VM arguments.
- Still in the properties dialog, select "Run/Debug Settings". Click "New", then "Java Application". This will bring up the edit configuration dialog.
- On the main tab, for a main class select "Base - replicatorg.app"
- On the Arguments tab, add the library paths to the VM arguments.
- For a Linux x86 build (tested on Linux Ubuntu 11.10), add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/linux/dist/lib-i686 -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib -Djava.library.path=/usr/lib/jni
- For a Linux x86-64 build (tested on Linux Ubuntu 11.10), add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/linux/dist/lib-x86_64 -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib -Djava.library.path=/usr/lib/jni
- For a Windows build, add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/windows/dist -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib
- For an OS X build, add: -d32 -ea -Xmx1G -Djava.library.path=${workspace_loc:ReplicatorG}/build/macosx/dist -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib
翻译:
- 启动Eclipse后选择菜单"File>New>Project…" . 从弹出的菜单选择"Java Project from Ant Buildfile".
- 指定Ant buildfile为从ReplicatorG目录下的"build.xml" 文件. 点击"finish" 按钮创建项目.
- All the additional libraries needed for build were automatically added by Ant but they should be manually re included from within "ReplicatorG/build" directory:
- 右击项目名称, 并选择"Properties".
- 在“Properties”对话框中, 选择"Java Build Path".
- 选择Libraries页面.
- 点击"Add External JARs…"按钮.
- 从 "build/shared/lib" 目录添加所有JAR后缀的文件.
- 如果有重复的文件则删除.
If you intend to run ReplicatorG from Eclipse, you‘ll need to set up a launch configuration. When you do, be sure to add the native libraries for your platform to the VM arguments.
- 仍然在“Properties”对话框中, 选择"Run/Debug Settings". 点击"New", 然后选择"Java Application". 将打开“Edit Configuration”对话框.
- 在 main 页面, 指定main class 为:"Base - replicatorg.app"
- 在 Arguments 页面, 添加库路径到VM arguments.
- For a Linux x86 build (tested on Linux Ubuntu 11.10), add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/linux/dist/lib-i686 -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib -Djava.library.path=/usr/lib/jni
- For a Linux x86-64 build (tested on Linux Ubuntu 11.10), add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/linux/dist/lib-x86_64 -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib -Djava.library.path=/usr/lib/jni
- For a Windows build, add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/windows/dist -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib
- For an OS X build, add: -d32 -ea -Xmx1G -Djava.library.path=${workspace_loc:ReplicatorG}/build/macosx/dist -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib
右击“build.xml”文件,在弹出的快捷菜单中点击“Run As”->”External Tools Configurations…”
在弹出的Edit Configuration”对话框中勾选“Targets”页面的“Run”、“debug”、“dits-windows”项:
右击“build.xml”文件,在弹出的快捷菜单中点击“Run As”->“1 Ant Build”构建项目
Building ReplicatorG With Eclipse
标签:http os io java strong ar for 文件 art
原文地址:http://www.cnblogs.com/yang--/p/3952042.html