![]() You will see the output scrolling while the program is executing.Īfter the program runs, select the Messages menu bar, and select Save as Text File option. This keeps the output within the jGRASP window's environment and sends the output to the Messages View at the bottom of the screen. ![]() #JGRASP ONLINE CODE#Run the code with the Run in MS-DOS Window selection unchecked. ![]() Any compile errors or "successful" message(s) will appear in the Messages View along the bottom of the screen. #JGRASP ONLINE HOW TO#This section explains how to capture the console output of an application program running in the jGRASP development environment.įirst, load all files and compile the software as you normally would. If necessary, type the appropriate input data values required by the program when it executes. The bottom window will display jGRASP: Operation complete.Ĭlick the Run menu, and if desired, select the option Run in MSDOS window.Ĭlick the Run selection, or click the button with the red man running. To compile and execute a Java program, carry out the following sequence of steps:Ĭlick the Compiler menu and select Compile, or click the button with the green cross. To close the file, click the File menu and select Clear.Ī.4.3 Compiling Java Programs with jGRASPĪfter the translation of a KJP program, the corresponding Java program must be compiled with the Java compiler. Save the file and recompile, if necessary. If there are no errors, the message No syntax errors found appears as the last message. On the bottom pane of the screen, all the messages appear, including any compiler error messages. ![]() Figure A.8 shows the jGRASP edit window.Ĭlick the Compiler menu and select Compile or click the button with the green cross. The KJP file (with extension kpl) appears on the screen. Select the file to open and click the Open button. In the Open File, type kpl in the File Extension text-box (far right side), and press the Enter key. On the left pane, select the folder where the KJP program files are located.Ĭlick the File menu, and select Open. The jGRASP main window appears on the screen, as shown in Figure A.4. To use KJP with jGRASP for translating programs from KJP to Java, follow the sequence of steps: Figure A.6 shows this window.įigure A.6: The jGRASP Global Settings window.Ī.4.2 Translating KJP Programs with jGRASP ![]() On the directory column, type: C:\KJP, or any other folder that contains the KJP translator.īack on the Global Settings window, click User:kjp. On the Settings menu, select Compiler Settings.Ĭhoose Global, click on Language, and select Plain Text.Ĭlick the Environment button, and select Empty.Ī new dialog box appears on the screen with the title: User Compiler Environment (Plain Text). Start jGRASP the main window appears on the screen as shown in Figure A.4. Place the KJP translator and additional files in an appropriate directory, such as 'c:\kjp'. The following steps will guide you in configuring KJP to work with jGRASP. For KJP, the jGRASP tool needs to be configured so that it will execute the KJP translator when the user issues the Compile command.Ī.4.1 Configuring KJP Translator with jGRASP The tool was designed mainly for Java programs. Under Windows, jGRASP is a more flexible and powerful environment to develop programs in Java and in KJP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |