Java Classes
Oracle allows you to use the CREATE JAVA statement to create specific schema objects containing Java sources, Java classes, or Java resources. Java Class Editor provides you with an ability to create a schema object containing a Java class easily and quickly.
To create a new Java class:
- select the Database | New Object... main menu item;
- select Java Class in the Create New Object dialog;
- define Java class properties using the appropriate tabs of Java Class Editor.
Hint: To create a new Java class, you can also right-click the Java Classes node or any object within this node in the DB Explorer tree and select the New Java Class item from the context menu.
To create a new Java class with the same properties as one of existing Java classes has:
- select the Database | Duplicate Object... main menu item;
- follow the instructions of Duplicate Object Wizard.
Alternatively, you can right-click a Java class in the DB Explorer tree and select the Duplicate Java Class <Java_class_name>... context menu item.
Duplicate Object Wizard allows you to select the database to create a new Java class in, and to edit the result SQL statement for creating the Java class.
To edit an existing Java class:
- select the Java class for editing in the DB Explorer tree (type the first letters of the Java class name for quick search);
- right-click the object and select the Edit Java Class <Java_class_name> context menu item, or simply double-click the Java class;
- edit Java class properties using the appropriate tabs of Java Class Editor.
To drop a Java class:
- select the Java class to drop in the DB Explorer tree;
- right-click the object and select the Drop Java Class <Java_class_name>... context menu item;
- confirm dropping in the dialog window.
Note: If more convenient, you can also use the following shortcuts:
Ctrl+N to create a new Java class;
Ctrl+O to edit the selected Java class;
Shift+Del to drop the object from the database.





