Changes

Jump to: navigation, search

Team1/Creating your first Java project

539 bytes removed, 09:03, 1 February 2011
no edit summary
=== 2. Creating your first Java project ===
12.1. Select from the Menu: ''File -> New -> Java Project'' <br/>
[[Image: Java_Project.jpg | 500px]]
<br/>12.2. In the ''Create the Java Project window'' specify the project name (follow the Java convention) and leave ''"Use default location"'' checked. Press Finish to create the project<br />
[[Image: Java_Project2.jpg | 500px ]]
<br/>12.3. Now create a package. Select folder ''src'', right click on it and select ''New -> Packege''<br/>
[[Image: Java_Package.jpg |600px]]
<br/>12.4. Specify the package name (Java convention is to use the same name as project). Press ''Finish''<br/>
[[Image: Java_Package2.jpg | 550px]]
<br/>12.5. Create Java class. Right click on the newly created package and select ''New -> Class''<br/>Now you can [[Imagehttp: Java_Class.jpg | 600px]] <br/>1/zenit.6senecac. Specify the name and check ''"public static voin main"'' in the ''method stubs'' sectionon.<br ca/>[[Image: Java_Class2.jpg | 600px]] <br/>1.7. Modify the main method:<brwiki/> <pre>public static void main(String[] args) { Systemindex.out.println("This is my first class");  }<php/pre> <brTeam1/>1.8. Run your code: Right click on your Creating_a_Java_class add Java class and select ''Run-as-> Java application'' <br/>[[Image: Java_Run.jpg | 400px]]  <br/>1.9. Check the Console, you should see the following: <br/>[[Image: Java_Run2.jpg | 400px]classes]to your project
1
edit

Navigation menu