Changes

Jump to: navigation, search

User:Qinzhi

237 bytes added, 16:20, 2 February 2011
no edit summary
4)Doubleclick eclipse.exe in c:\eclipse\Basics\eclipse
5)Workspace type ./wksp/lab
6)Download and install SVN according the instruction at http://zenit.senecac.on.ca/wiki/index.php/Basics_:_Install_Eclipse_Plugins 7)Download JUnit from https://github.com/KentBeck/junit/downloads and unzip it to c:\junit4.9b2. 8)Add junit-4.9b2 to the CLASSPATH, for example: classpath=.;c:\junit4.9b2\junit-4.9b2.jar;c:\junit4.9b2
9)Test if junit is installed correct or not by typing:
java org.junit.runner.JUnitCore org.junit.tests.AllTests
If it display ok (508 tests), it means junit is installed correctly.
2. Creating your first Java project
1)In menuOpen our SVN server and export all samples to c:\ecl500samples. 2)Click Import->existing projects, click fileselect c:\ecl500samples\w11->newbasics->Java projectsimple, check copy projects into workspace. 3)Edit Library.java by adding System.out.println("Hello"); in main. 24)Project name type MyFirstPrjClick run, click finishand the console will display Hello.
3. Browsing Java elements using the package explorer
In the left side of Eclipse, that is the package explorer.
1
edit

Navigation menu