
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. Print the sum of the digits of the integer.\n\t\t5.Under Windows, jGRASP is a more flexible and powerful environment to develop programs in Java and in KJP. Print the prime numbers between 2 and the integer.\n\t\t4. Print the number of odd digits, even digits, and zeroes in the integer.\n\t\t3. While (myOption != 1 & myOption != 2 & myOption != 3 & myOption != 4 & myOption != 5) Private static int displayMenu(Scanner kb) ("Printing the sum of the digits of the integer.")

("Printing the prime numbers between 2 and the integer.") ("Printing the number of odd digits, even digits, and zeroes in the integer.")
#Jgrasp run program code
jGRASP wedge2: exit code for process is 1. IntFun.java: 122: error: cannot find symbol
#Jgrasp run program how to
I'm freaking out and have no idea how to fix it and these seem to be common errors with me. This isn't the first time this has happened and my code needs to compile for me to even get a grade for the assignment. It keeps coming up with error that I can't seem to fix because what it tells me to do to fix it just makes it worse or makes it make less sense. I did go to the class path, and selected the selected files it wants, but still no luck. I just recently upgraded my java to the latest version, and I honestly have no idea how to fix this. Use Settings > PATH/CLASSPATH > Workspace (PATHS tab) System + jGRASP PATH is "C:\Program Files\Java C:\WINDOWS\system32 C:\WINDOWS\system32\wbem C:\Program Files\QuickTime\QTSystem C:\Documents and Settings\Andrew\My Documents\Downloads C:\WINDOWS\system32 C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\Program Files\QuickTime\QTSystem\". on the current system PATH or jGRASP PATH to use this function. This command must be in the current working directory or jGRASP wedge2 error: command "javac" not found.

I just got the program for home to try to finish off a lab I was working on and when I compile, this shows up: So i'm a student in high school new to the Java language and i'm using this program called jgrasp, which we use to program java.

jGRASP wedge2: exit code for process is 1.

IntFun.java:124: error: incompatible types: unexpected return value IntFun.java:122: error: cannot find symbol IntFun.java:120: error: cannot find symbol IntFun.java:95: error: cannot find symbol IntFun.java:84: error: cannot find symbol IntFun.java:83: error: cannot find symbol IntFun.java:67: error: cannot find symbol IntFun.java:66: error: cannot find symbol IntFun.java:14: error: cannot find symbol
