I wonder if Sun's control over the Java release version is in conflict with GNU/Linux. Many Linux releases do not include sun's JDK or JRE by default. For example,
1-previous SuSE Linux 9.2 professional comes with JDK
1.4.2. After downloading eclipse, you can start it directly. Currently, opensuse Linux 10.0
The JDK shadow cannot be found in RC1, and the default repository does not exist. You need to install it on your own. (Maybe it comes down to the Professional Edition and opensuse itself.
What are the differences in product positioning ?)
2-in Fedora Core
In Release 4, the GNU version of JRE is included. javac uses the eclipse version and eclipse is included, but it is based on the eclipse SDK.
3.1m6 and the native version made of CDT. Although these functions can also be used, they are not complete Java, nor the original eclipse. If you don't believe it, you can download the latest
Eclipse SDK 3.1.1. After decompression, the interface cannot be started normally.
Since the Linux Release versions we generally obtain are free, rather than professional or enterprise
At the server level, these versions have limited JDK support for sun, and Linux itself encourages us to learn how to DIY. I think it is necessary to complete the basic Linux configuration.
Install the JDK and eclipse environment on your own.
The installation procedure is illustrated in the case of RedHat Fedora Core 4 (http://fedora.redhat.com/), which is widely used and easier to obtain.
<Step 1> Installation preparation
At this time, we can open a command line terminal and enter "Java-version" to see the following information:
[Sean @ localhost ~] $ Java-version
Java version "1.4.2"
Gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
Copyright (c) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is no
Warranty; not even for merchantability or fitness for a particle purpose.
See it? This is not Sun's official Java.
We need to download the latest JDK from the sun website. The current version is JDK 5.0 Update.
5, note that there are two versions here: jdk-1_5_0_05-linux-i586-rpm.bin and jdk-1_5_0_05-linux-
I586.bin: According to the release notes of Fedora Core 4, the latter version should be used, that is, the version without rpm.
At the same time, we also need to download the latest eclipse on eclipse.org.
SDK, current version 3.1.1. Select a suitable download package based on your system environment. For example, my computer is x86, and X Window System uses gnome.
2.10.0, select "x86/GTK ".
The file name is eclipse-sdk-3.1.1-linux-gtk.tar.gz. Note that the default FC4 x
The window system is gnome, but GTK applications can still be used normally in the KDE environment.Program.
<Step 2> installation and configuration
Now we open a command line terminal, enter the command Su, provide the root user password, and enter the Administrator operation mode. Then use ls
-L take a look at the downloaded jdk-1_5_0_05-linux-i586.bin and you can see that its permission is-RW-r -- and the owner is Sean. To be able to execute
You need to change its permission settings. Run the command chmod + X.
Jdk-1_5_0_05-linux-i586.bin, look at the permission again,-rwxr-XR-X, can be executed.
Switch to the/opt/directory and run the jdk-1_5_0_05-linux-i586.bin. Note: in Linux, the default path does not contain the current directory, that is, ".", because
The correct method for executing the file in the current directory is to add "./" before the file name "./". After successful, we can find that a jdk1.5.0 _ 05 subdirectory is added under the/opt/directory, which is our
Java_home.
This is not complete yet. Check the Java
-Version still finds the original GNU version. We also need to configure the path of the system's environment variable. The current path Content Check Method is Echo.
$ Path: In order to directly find our own Java, we need to add the/opt/jdk1.5.0 _ 05/bin directory to the path, and before the GNU version, the safest
Of course, the method is put at the top. The method is Path = "/opt/jdk1.5.0 _ 05/bin: $ path ". After that, repeat Java
-Version:
[Sean @ localhost Java] $ Java-version
Java version "1.5.0 _ 05"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0 _ 05-b05)
Java hotspot (TM) Client VM (build 1.5.0 _ 05-b05, mixed mode, sharing)
To add this path to the environment during login in the future, you need to modify. bash_profile, first CD ~ Go to your home directory, use Emacs or VI to edit the file, find the path line, and change it:
Path =/opt/jdk1.5.0 _ 05/bin: $ path: $ home/bin
Save, exit, log out, and log on again.
The next step is to decompress eclipse to a path that you think is appropriate.
<Step 3> start using
There are many ways to run our Eclipse: You can directly open the command line or file browser. Here is a convenient way to use gnome: drag and drop the eclipse running file from the file browser to the system panel and give it a name and icon, in the future, you can click this panel icon to start eclipse.
Well, I finally saw the familiar eclipse interface, which was born with a sense of intimacy, didn't it? This eclipse already comes with a Java development environment. If You Want To Do C/C ++, the CDT under eclipse is also very good. Of course, N multiple plug-ins were used in the past, let's take a look at yourself. :)