Instant ASP Logo


iASP Pre-Compiler

Pre-Compiler is a utility for migrating Visual Basic source code into Java source code or ASP (Active Server Page) source code to Java/JSP source code. The clean and simple interface is designed to allow you to quickly and easily convert your existing VB source code into Java source code, project files, form files or source code modules. And now, using Convert ASP, your exsiting ASP files can also be easily and quickly converted into Java source code or JSP source code.

See Also: Convert ASP to JAVA in Dos Environment

Pre-Compiler consists of three important screens, the main menu and the two option menus, all of which are explained in this document. You can click the hotspots of those screenshots to get the detailed explanation for that region.

java -classpath c:\convert\lib\classes.zip;c:\jdk\lib\classes.zip;c:\ib4j\lib\classes.zip

Main Menu

The Main Menu is where you specify the ASP or VB source code to be converted, and where the output files should be placed. Pre-Compiler's Main Menu appears each time you launch the program:

Figure 1

Program Source

The Program Source directory is used to choose the ASP or VB source code you want to convert. If you want to convert ASP source code and choose a directory, it will be considered as all the asp files under the directory and sub- directory need to be converted.

Output Directory

The Output Directory is used to choose the place where the converted java/JSP files are located. 

Synchronize

The Synchronize button is used to create the Java/JSP files in the same directory as the source files (you can specify any other directory if you like). This feature is particularly useful if you have many levels of subdirectories.

Option

The contents of the Option dialog box is shifted by the type of source code chosen in Program Source directory:

Application: Choose this option to build your Java project as a standalone application. An application runs in its own window.

Applet: Choose to build your project as an applet if you want it to run in a browser.

Start with its own window: This option is available only if you choose to build an applet. If you want your applet to run in its own window, and not in a browser, check this box on. If you choose to build an application, this field is grayed out.

Main Class: Optional. You can specify the main class name for your new project. If you do not wish to specify a class name, leave this field blank. This option is only available if you select the application box; if you select the applet box, this field is grayed out.

User's ClassPath: Optional. You can reference an external Java archive file, JAR file, or directory containing Java class files, to your classpath settings. These classpath settings are added to the current classpath when you click on the Run button.

Project Name:  Only available when Package the Project is selected, used to set the package name for the converted project. 

Package the Project: Check this box to build a package. Checking this box creates a subdirectory containing all the generated Java source files. This makes future addition and/or modification easier, since all your generated Java source files are in their own directory.

Preserve Identifier: Check this box to preserve the original case sensitive of the identifier.

Convert ASP

If the chosen program source is ASP source code, this button will be enabled. Click this button, the chosen file or all ASP files under the chosen directory and its subdirectories will be converted to Java files.

VBtoJava

If the chosen program source is Visual Basic source code, this button will be enabled. Click this button, the chosen VB project files or Form/Module files will be converted to Java source code.

Compile Java (Run for VBtoJava)

If the Java files are converted from ASP source code, click this button to compile the converted Java source code into Java class file.

If the Visual Basic source code is chosen, the button will be changed to Run button. You can click this button to directly convert those VB source code to Java source code and execute the compiled Java application programs.

Exit

Click this button to exit the Pre-Compiler Main menu. 

Help

Click this button to open this document help page in your default web browser.

Show Details

Click to open an output window under the Main menu to display the output messages of conversion. Click No Details button to close this output window.


If you encounter any problems or errors, please contact support@halcyonsoft.com.


Copyright © 1998-2000, Halcyon Software Inc. All rights reserved.