Follow these steps to create, compile, and run a simple Java program in JDeveloper:
A new file node, named HelloWorld.java will appear under your project node.
public static void main(String[] args) { System.out.println("Hello, World!"); }The complete code will look like this:
package project1; public class HelloWorld { public HelloWorld() { } public static void main(String[] args) { System.out.println("Hello, World!"); } }
To import files into a new project:
Now your source files will be conveniently grouped by package in the JDeveloper navigator. In addition, the navigator will keep track of files you add and remove from the file system automatically.