L2JMOBIUS从抽源到架设全教程【官方英文】
The following steps describe on how to properly install the project on any Win7 x64 based machine and connect to the game client using the same computer.What you will need:
-OpenJDK 12: https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip
-Eclipse: https://www.mediafire.com/file/aoizsi93myfot4n/eclipse-java-2019-06-R-win32-x86_64.zip
-XAMPP: http://www.mediafire.com/download/owry922v4qq34wc/xampp-win32-5.6.11-1-VC11-installer.exe
1. Install OpenJDK 12
-Download OpenJDK 12 https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip
-Extract openjdk-12.0.2_windows-x64_bin.zip at C:\Program Files\Java\
-You should now have a C:\Program Files\Java\jdk-12.0.2 folder.
2. Set JAVA_HOME
- Right click on "My Computer" on your Desktop.
- Click "Properties".
- Click "Advanced system settings".
- Click the "Environment Variables..." button.
- Click the "New..." button.
- Type at Variable name: JAVA_HOME
- Type at Variable value: C:\Program Files\Java\jdk-12.0.2\bin
3. Add the java bin directory to PATH
-At the "Environment Variables" window notice the second list named "System Variables".
-Find and select the "Path" item.
-Click the "Edit" button.
-Add ";C:\Program Files\Java\jdk-12.0.2\bin" at the end of the existing value.
4. Download and extract Eclipse.
Download link https://www.mediafire.com/file/aoizsi93myfot4n/eclipse-java-2019-06-R-win32-x86_64.zip
Preferably use the C:\eclipse\ folder and set workspace to C:\eclipse\workspace
5. Eclipse support for git.
- Open your Eclipse.
- Click on the top menu item "Window".
- Select "Show View".
- Click on "Other...".
- From the folder "Git" select "Git Repositories".
6. Checking out the project.
- From the "Git Repositories" window click "Clone a Git repository".
- Type at URI: https://bitbucket.org/MobiusDev/l2j_mobius.git
- Click "Next >" button. Click "Next >" button.
- Type at Directory: C:\eclipse\workspace\L2J_Mobius
- Click the "Finish" button.
- Wait for cloning to complete.
- From the "Git Repositories" window double click "L2J_Mobius ".
- Double click "Working Tree".
- Right click on any project.
- Click "Import Projects...".
- Click the "Finish" button.
*If you have a "JRE System Library ' in project" warnings.
Add JDK 12 from menu Window -> Preferences -> Java -> Installed JREs.
7. Compile the project.
- From the "Package Explorer" expand the project tree to see "build.xml".
- Right click "build.xml".
- Select "Run as..".
- Click on "1 Ant Build".
- Wait for the "BUILD SUCCESSFUL" console message.
- Go to C:\eclipse\workspace\L2J_Mobius\build folder to get your L2J_Mobius.zip file.
8. Installing XAMPP.
Download link http://www.mediafire.com/download/owry922v4qq34wc/xampp-win32-5.6.11-1-VC11-installer.exe
9. Install MySQL service.
- Go to C:\xampp folder.
- Run xampp-control (the one with orange icon).
- Click on the "X" button next to MySQL.
- Click "Yes".
- Use the "Start" button to start the service.
10. Run the server.
- Extract your compiled files to a folder. Preferably "C:\L2J_Mobius".
- Go to "db_installer" folder.
- Use "Database_Installer_GS.jar" to install the gameserver database.
- Use "Database_Installer_LS.jar" to install the loginserver database.
- Go to "login" folder.
- Run "LoginServer.exe".
- Go to "game" folder.
- Run "GameServer.exe".
11. Connect to the server.
-Download the client provided at readme.txt file.
-Log in game (accounts are auto created).
以下步骤描述如何在任何基于Win 7x64的机器上正确安装该项目,并使用同一台计算机连接到游戏客户端。
你需要的是:
-OpenJDK 12:https:/www.mediaFire.com/file/k25pt0umuf16uoh/OpenJDK-12.0.2_windows-x64_bin.zip
-Eclipse:https:/www.mediaFire.com/file/aoizsi93myfot4n/eclipse-java-2019-06-R-Win32-x86_64.zip
-XAMPP:http:/www.mediaFire.com/下载/owry922v4q34wc/xampp-Win32-5.6.11-1-VC11-installer.exe
1.安装OpenJDK 12
-下载OpenJDK 12https:/www.mediaFire.com/file/k25pt0umuf16uoh/OpenJDK-12.0.2_windows-x64_bin.zip
-提取OpenJDK-12.0.2_windows-x64_bin.zip,位于C:\ProgramFiles\Java\
-您现在应该有一个C:\ProgramFiles\Java\JDK-12.0.2文件夹。
2.设置Java_HOME
-右击桌面上的“我的电脑”。
-点击“属性”。
-单击“高级系统设置”。
-点击“环境变量.”按钮。
-点击“新.”按钮。
-在变量名处键入:JAVA_HOME
-按可变值键入:C:\ProgramFiles\Java\JDK-12.0.2\bin
3.将java bin目录添加到path中。
-在“环境变量”窗口注意第二个名为“系统变量”的列表。
-查找并选择“路径”项。
-点击“编辑”按钮。
-在现有值的末尾添加“;C:\ProgramFiles\Java\JDK-12.0.2\bin”。
4.下载并解压Eclipse。
下载链接https:/www.mediaFire.com/file/aoizsi93myfot4n/eclipse-java-2019-06-R-Win32-x86_64.zip
最好使用C:\eclipse\文件夹,并将工作区设置为C:\eclipse\工作区
5.Eclipse对GIT的支持。
-打开你的Eclipse。
-单击顶部菜单项“窗口”。
-选择“显示视图”。
-点击“其他.”
-从“Git”文件夹中选择“Git存储库”。
6.检查项目。
-在“Git存储库”窗口中单击“Clone a Git存储库”。
-在URI处键入:https:/bitBucket.org/MobiusDev/l2j_mobius.git
-点击“下一步”按钮。单击“Next>”按钮。
-在目录处键入:C:\eclipse\工作区\L2J_Mobius
-点击“完成”按钮。
-等待克隆完成。
-在“Git存储库”窗口中双击“L2J_Mobius”。
-双击“工作树”。
-右击任何项目。
-点击“进口项目.”
-点击“完成”按钮。
*如果在项目中有“JRE系统库”警告。
从菜单窗口添加JDK 12->Preferences->Java->已安装的JRE。
7.编制项目。
-从“PackageExplorer”展开项目树,以查看“build.xml”。
-右键单击“build.xml”。
-选择“Run as.”
-点击“1 Ant Build”。
-等待“成功构建”控制台消息。
-转到C:\eclipse\工作区\L2J_Mobius\Build文件夹,获取L2J_Mobius.zip文件。
8.安装XAMPP。
下载链接http:/www.mediaFire.com/下载/owry922v4q34wc/xampp-Win32-5.6.11-1-VC11-installer.exe
9.安装MySQL服务。
-转到C:\xampp文件夹。
-运行xampp控件(带有橙色图标的)。
-点击MySQL旁边的“X”按钮。
-点击“是”。
-使用“开始”按钮启动服务。
10.运行服务器。
-将已编译的文件解压缩到文件夹中。最好是“C:\L2J_Mobius”。
-转到“db_installer”文件夹。
-使用“Database_installer_GS.jar”安装游戏服务器数据库。
-使用“Database_installer_LS.jar”安装loginserver数据库。
-转到“登录”文件夹。
-运行“LoginServer.exe”。
-进入“游戏”文件夹
-运行“GameServer.exe”。
11.连接到服务器。
-下载在README.txt文件中提供的客户端。
-登录游戏(自动创建帐户)。
第六項的Java SE-12 警告
第七項右鍵build 這邊沒有Run as
大大可以請問一下這段怎麼做嗎? 有人能教學 第9 第10步驟嗎 第六步在URI输入网址后,下一步直接出错,这怎么办? 皮痒求群殴 发表于 2020-5-1 22:12
第六步在URI输入网址后,下一步直接出错,这怎么办?
https://bitbucket.org/MobiusDev/l2j_mobius.git
检查一下是不是输入错了地址!~
本帖最后由 皮痒求群殴 于 2020-5-3 21:44 编辑
杀气丶 发表于 2020-5-2 13:44
https://bitbucket.org/MobiusDev/l2j_mobius.git
检查一下是不是输入错了地址!~
原来如此,是你中文区域那个地址有些大写,所以出错了-.-
感觉好难弄,我弄了很久还是不会,还是感谢,可能本人太笨了。。。 这个还是用eclipse编译。 路过顶一下!~
页:
[1]
2