- Flash Multiplayer Virtual Worlds
- Makzan
- 570字
- 2021-08-03 15:29:07
Installing Java Development Kit
The Java Development Kit includes the essential development tools (JDK) and the Java Runtime Environment (JRE). The development tool compiles the Java source code into byte codes and the JRE is the response to execute the byte codes. We will need several Java compilations in later chapters. SmartFoxServer is build on the Java environment and we need the JRE to start up the server. The JDK and JRE may be pre-installed in some OSs.
Installing JDK On Windows
The steps for installing JDK on Windows are as follows:
- Go to http://java.sun.com/javase/downloads/.
- Click on the Download button of Java. It will lead to the Java SE Downloads page.
- Select Windows (or Windows x64 for 64-bits Windows) in Platform.
- Click on Download.
- If it prompts an optional login request, we can click the Skip this Step to bypass it.
- Launch the installer after the download.
- Install the Java Development Kit with all default settings.
- The Java environment is ready after installation completes.
Installing JDK on Mac OSX
The Mac OSX comes with its own set of Java environment. We can check the JDK and JRE version by following steps:
- Launch terminal from Applications | Utilities | Terminal.
- Type the following and press the Enter key:
javac -version
- The command will output the currently installed version of the Java in the Mac OSX. In my case, it outputs: javac 1.6.0_17.
The current version of SmartFoxServer at the time of writing recommends the version 1.6. If the Java is not updated, we can update it via Apple Menu | Software Update.
The software update will check for any updates for your existing Mac software, including the Java environment.

Installing JDK on Linux
We can use the general method to download and install the JDK or use the system specific method to install the package. We will show the general method and the Ubuntu method.
Installing for General Linux
- Go to http://java.sun.com/javase/downloads/index.jsp in browser.
- Click on the Download button.
- The platform Linux should be selected automatically. Otherwise, select Linux (or Linux x64 for 64-bit Linux).
- Click on Continue.
- If it prompts for login, click on Skip this Step to bypass it.
- For Redhat or Fedora Linux, choose the
rpm-bin
file to download. For other Linux, choose the.bin
file to download. - Launch terminal via Applications | Accessories | Terminal after the download completes.
- Change the directory to the folder that contains the downloaded package. The download destination varies from different profile settings. In my case, it is in
Downloads
folder.cd ~/Downloads/
- The version is Java 6 Update 20 at the time of writing and the filename is
jdk-6u20-linux-i586.bin
orjdk-6u20-linux-i586-rpm.bin.
- Then we make it executable and launch the installer by the following commands:
chmod a+x jdk-6u20-linux-i586.bin ./jdk-6u20-linux-i586.bin
- The installer displays the license agreement. Type Yes at the end to agree and continue installation.
- Press the Enter key after the file's extraction to end the installation.
Installing for Ubuntu Linux
Ubuntu users can install the JDK via the apt-get
command.
- We will search for the latest package name of the JDK by the following command:
apt-cache search --names-only sun-java.*-jdk
- The result shows the available JDK packet names. At the time of writing, it is JDK6:
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
- We use the
apt-get
command to install the JDK:sudo apt-get install sun-java6-jdk
- Type in the user password because it requires user's password and the privilege to use
apt-get.
- 中文版Photoshop入門與提高(CS6版)
- Word-Excel-PowerPoint 2010三合一從新手到高手(超值版)
- Midjourney AI繪畫藝術創作教程:關鍵詞設置、藝術家與風格應用175例
- 架構之美
- AutoCAD 2020中文版從入門到精通(標準版)
- 中文版CorelDRAW X7基礎培訓教程(移動學習版)
- UG NX 8.0基礎與實例教程
- AI短視頻生成與剪輯實戰108招:ChatGPT+剪映
- IT Inventory and Resource Management with OCS Inventory NG 1.02
- 中文版3ds Max 2021完全自學教程
- AutoCAD 2024建筑設計從入門到精通(升級版)
- AutoCAD入門教程全掌握
- Photoshop CC入門與提高(超值版)
- 科技繪圖/科研論文圖/論文配圖設計與創作自學手冊:科研動畫篇
- 計算機輔助翻譯基礎與實訓