Create a Java Project

In NetBeans 6.5, you must create a project to work with files on the remote OpenVMS system.  Your project can be a Java project or an OpenVMS 3GL application project.

If you are creating  a Java project, you first create a standard Java or web-based project and then convert it to a remote project.  The conversion to remote project can occur immediately after you create the project or sometime later.

Note  Distributed NetBeans V5.0 does not support the conversion of projects from Distributed NetBeans V3.6.  When you are creating a new remote project in Distributed NetBeans V5.0, add the remote filesystems from your Distributed NetBeans V3.6 project into your remote project in Distributed NetBeans V5.0.

When you convert a project to a remote project, your project files and source files will be copied to the OpenVMS system and modifications will be made to the NetBeans-generated Build.xml to support remote operations.

  To create a Java project

1.  Select File/New Project.
2.  Select
General/Java Application, then click Next.
3.  Fill in the dialog box as shown below.  You can change the project location if you prefer.  Click
Finish.

 

4.  Modify the source.  For example, output “Hello!”

In the editor window, the file main.java is open.  Add a print statement to the main() method as shown below:

 

5.  Run your project.

Run your Java application by right-clicking on the project and selecting Run Project.

 

6.  Convert to a remote project.

Right click on the project and select Convert to Remote Project.

 

Follow the wizard steps for choosing a Remote IDE Server and then choosing the remote FTP filesystem root.  The local filesystem root is the location on your PC of the files in your project.  If you have extra source directories added to your project, you are prompted in the conversion wizard to choose a remote directory root for each of the source directories.

7.  Run the project remotely.

After the project has been converted to a remote project, you can use the Remote Project Operations menu to launch remote targets from the Ant build script.

 

You can also launch remote operations for individual files by selecting the file and right clicking.

 

 

8.  Click Finish.

Your Remote 3GL application will appear in your Project tab as a remote filesystem.

You can select files in the remote filesystem and remote execute them by right clicking on the file and selecting Remote Execute.