1%20Syllabus%20and%20Java%20and%20HelloWorld

1%20Syllabus%20and%20Java%20and%20HelloWorld - many ways,...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Syllabus and HelloWorld COP 3330
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Topics Syllabus WebCourses Downloading Java Hello World Assignment #0
Background image of page 2
Syllabus The syllabus is handed out in class You can also access it through WebCourses
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Downloading Java Go to - http://java.sun.com/javase/downloads/index.jsp Click the “Download JDK” link for Java SE Development Kit (JDK) 6 Update 21 Follow instructions (demonstrate in class)
Background image of page 4
Compiling and Running a Java Program Using Command Line Add java to you system path in Windows: Control Panel System Advanced Environment Variables Edit the Path variable to include the bin directory of your Java installation.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Running a Java Program Using Command Line Choose to edit the Path variable Add the path of the bin directory of your JDK install to your path environment variable (just put a semicolon and paste it on to the end)
Background image of page 6
Running a Java Program Using Command Line
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Running a Java Program Using Command Line A command prompt can be opened in
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: many ways, including going to the start menu, clicking "run", and typing "cmd" into the window that appears Navigate to the directory that contains your source files using the "cd" command Compile your program using "javac" Run your program using "java" Running a Java Program Using Command Line Hello World In HelloWorld.java (Case Sensitive!) public class HelloWorld { public static void main(String args) { System.out.println( Hello World ); } } See HelloWorld.java on WebCourses for more comments/information. Running a Java Program Using Command Line If you get the error: -Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp Make sure youre in the same directory as your .java file and that you typed everything correctly If you still get the error, type at the command line: set CLASSPATH= Assignment #0 Discuss Homework 0....
View Full Document

Page1 / 12

1%20Syllabus%20and%20Java%20and%20HelloWorld - many ways,...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online