This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
java_introduction [2015/06/09 13:58] Joel Dare |
java_introduction [2015/06/09 13:59] Joel Dare [Compiled] |
||
---|---|---|---|
Line 19: | Line 19: | ||
</code> | </code> | ||
- | ==== Compiled ==== | + | ==== Compile to Bytecode ==== |
Java code starts as plain text files and then is compiled to bytecode. If the code above is in a file called Application.java then the following command compiles that. | Java code starts as plain text files and then is compiled to bytecode. If the code above is in a file called Application.java then the following command compiles that. | ||
Line 37: | Line 37: | ||
Download the latest version and place it in the same directory as your application. | Download the latest version and place it in the same directory as your application. | ||
- | Import the file into your application with the following line. In the Hello World example above this will be the first line. | + | Import the file into your application with the following line. In the Hello World example above this will be the first line in the Application.java file. |
import java.sql.*; | import java.sql.*; |