1. jdk6
The installed jdk.exe already contains JRE.
The path, java_home, and classpath variables in JDK
Set runtime environment parameters:
A. If it is Win95/98 (nobody should use it), add the following three lines at the end of \ autoexec. BAT:
Set java_home = F: \ setupfiles \ javaplatform \ jdk1.6.0 _ 12
Set Path = % java_home % \ bin; % PATH %
Set classpath =.; % java_home % \ Lib
Note: run the doscommand notepad c: \ autoexec. BAT to open notepad and add the preceding three statements.
B. If it is Win2000, use XP to right-click "my computer"-> properties-> advanced-> Environment Variables
System variable-> New-> variable name: java_home variable value: F: \ setupfiles \ javaplatform \ jdk1.6.0 _ 12 (your specific situation)
System variable-> New-> variable name: classpath variable value:.; % java_home % \ Lib
System variable-> edit-> variable name: path is added at the beginning of the variable value: % java_home % \ bin;
Run-> cmd-> javac can run correctly.
You can write as follows:Program
Public class helloworld {
Public static void main (string [] ARGs ){
System. Out. println ("Hello, blackcore! ");
}
}
And save the file as helloworld. java. Note that the class name and file name must be consistent, case sensitive.
Then run the following command in cmd:
C: \ Documents ents and setting \ blackcore> javac helloworld. Java
C: \ Documents ents and setting \ blackcore> JAVA helloworld. Java
Hello, blackcore!
Note that the helloworld. Java file must be saved in the current user folder;
C: \ Documents and setting \ blackcore \ helloworld. Java
Javac helloworld. Java will generate the hellword. Class file,
After Java helloworld, output hello, blackcore!
Indicates that the compilation is successful. JDK is successfully installed!
2. Apache_ant-1.7.1 installation Configuration
Unzip the Apache_ant-1.7.1 and place the corresponding folder on OK, set the corresponding environment variables, as follows:
Ant_home F: \ setupfiles \ javaplatform \ apache_ant_1.7.1
PATH % ant_home % \ bin;
Run the following command after cmd:
C: \ Documents ents and setting \ blackcore> ant
Buildfile build. XML does not exits!
Build faild.
It indicates that the configuration is successful, because build. xml needs to be configured by yourself.
BelowCodeAt: F: \ setupfiles \ javaplatform \ apache_ant_1.7.1 \ hello-ant
You can write the following program:
A: create the following directory under F: \ setupfiles \ javaplatform \ apache_ant_1.7.1:
Hello-ant (project name)
-- Build
-- Classes
-- SRC
-- Main
-- Hello
-- Ant
B: Create a helloant. Java file under hello-ANT/src/main/Hello/ANT /.
Package hello. ant;
Public class helloant {
Public static void main (string [] ARGs ){
System. Out. println ("Hello ant, the first contact of ant in blackcore's life, great! ");
}
}
C: Create a build. xml file under hello-ANT /.
<? XML version = "1.0" encoding = "gb2312"?>
<! -- A project that can contain multiple task groups -->
<Project default = "Main" basedir = ".">
<! -- A task group in the project can contain many tasks (task: javac, Java...) -->
<Target name = "Main">
<! -- Compile -->
<Javac srcdir = "src \ main \ Hello \ ant" destdir = "build \ Classes"/>
<! -- Run -->
<Java classname = "Hello. Ant. helloant">
<Classpath>
<Pathelement Path = "build \ Classes"/>
</Classpath>
</Java>
</Target>
</Project>
D: Run ant.
Go to the directory where build. XML is located and perform the following operations:
Run: % ant_home %/bin/ant-file build. xml. Use ant to run the configuration file build. XML in the current directory.
Or: ant-file build. xml if you set % ant_home %/bin to path
E: The result is displayed.
F: Now we can find that the compiled file helloant. Class appears in the build/classes directory:
Build/classes/Hello/ANT/helloant. Class.
3. jetty_6.1.22
Extract the file and place it in the corresponding folder.
Change the directory in cmd and enter F: \ setupfiles \ javaplatform \ jetty_6.1.22.
Then run the Java-jar start. Jar ETC/Jetty. xml command to ensure that
JDK has been installed correctly. For example:
Here, we can modify the jetty. xml port number. I changed it to 10000.
There are about 50 lines of code: <set name = "Port"> <systemproperty name = "Jetty. Port" default = "10000"/> </set>
Enter http: // localhost: 10000/to enter the welcome page of jetty.
The interface is as follows:
Installed successfully!
4. Install eclipse 3.5
Http://www.eclipse.org/downloads/#the next one is installed.
5. Install Google plugin for eclipse 3.5 (Galileo)
URL: http://dl.google.com/eclipse/plugin/3.5
See: http://code.google.com/intl/zh-CN/eclipse/docs/install-eclipse-3.5.html
GWT learning materials can refer to: http://code.google.com/intl/zh-CN/webtoolkit/doc/1.6/DevGuideUserInterface.html
After the installation, GWT will also be available.
6. Install the myeclipse 8 plug-in
I am too lazy to find it. I installed a myeclipse8 file, moved all the jar files under genuitec \ common \ plugins to eclipse \ plugins, and uninstalled myeclipse8.