Creating a VJET type

In this section, you will create a VJET type and add methods using code generation actions.

  1. Please make sure you have successfully created a VJET project. You can go to the previous section to review how to create a VJET project.
  2. There are three ways to open the new VJET Type page.

    New VJET Type

  3. In the Package field, type test as the package name.

    In the Name field, type Test as the type name.

    Select the checkbox for public void main(String... arguments) method for generating a method stub.

    New VJET Type

    NOTE: If you do not create a VJET package under the source folder, a default package will be provided.

  4. Click Finish to create the new type.
  5. The new file will be opened in the editor area. It contains the new type, the main method and comments.

    Type vjo.sysout.println("Hello World"); inside the main function.

    The picture below shows an example:

    new VJET Type

  6. Save the file.
  7. Instead of create your package on the new VJET Type page, you can choose create your package at first.

    Like Step 1 there are also three ways for you to create a VJET package.

    Open the new VJET package wizard

  8. In the Name field, type test as the package name.

Related reference