Create and edit Java source files

You can create and edit Java™ source files in a number of ways.

With iSeries™ Access for Windows®

Java source files are American Standard Code for Information Interchange (ASCII) text files in the integrated file system on iSeries servers.

You can create and edit a Java source file with iSeries Access for Windows and a workstation-based editor.

On a workstation

You can create a Java source file on a workstation. Then, transfer the file to the integrated file system by using file transfer protocol (FTP).

To create and edit Java source files on a workstation:

  1. Create the ASCII file on the workstation by using the editor of your choice.
  2. Connect to your iSeries server with FTP.
  3. Transfer the source file to your directory in the integrated file system as a binary file, so that the file remains in ASCII format.

With EDTF

You can edit files from any file system using the EDTF CL command. It is an editor that is similar to the Source Entry Utility (SEU) for editing stream files or database files. See the EDTF CL command for information.

With Source Entry Utility

You can create a Java source file as a text file by using source entry utility (SEU).

To create a Java source file as a text file by using SEU, perform the following steps:

  1. Create a source file member by using SEU.
  2. Use the Copy To Stream File (CPYTOSTMF) command to copy the source file member to an integrated file system stream file, while converting the data to ASCII.

If you need to make changes to the source code, change the database member by using SEU and copy the file again.

For information on storing files, see Files in the integrated file system.

Related concepts
Create a directory on your iSeries server
Related tasks
Install IBM Developer Kit for Java
Run your first Hello World Java program
Map a network drive to your iSeries server
Create, compile, and run a HelloWorld Java program