'java' related error in gui guider

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

'java' related error in gui guider

1,522 Views
semiconductor_user
Contributor II

when i am trying to generate code in GUI Guider so that time it is show error : " 'java' is not recognized as an internal or external command, operable program or batch file" so how do i solve this error

Hiren_Ratnani_0-1666074142929.png

 

0 Kudos
Reply
1 Reply

1,507 Views
zhenhualuo
NXP Employee
NXP Employee

Hi @semiconductor_user ,

JRE is not found on your host, the JRE install steps are documented in the User Guide, I copy the content here for reference.

2.3.1 Install Java Runtime Environment

If your computer does not have JRE installed, perform the following steps:

  1. Get the OpenJDK source package from http://jdk.java.net/archive/.
  2. Extract the zip file into a folder, for example, C:\Program Files\Java\. The extraction creates a jdk-16 folder with a sub folder named bin. However, you may require administrator privileges to extract the zip file to the location.
  3. Set the PATH environment variable.
    1. Select Control Panel.
    2. Click System.
    3. Select Advanced system settings.
    4. Click the Advanced tab.
    5. Click the Environment Variables button. The Environment Variables dialog box appears.
    6. Locate the PATH variable.
    7. Click the Edit button.
    8. Click the New button.
    9. Add the location of the bin folder of the JDK installation.
  1. Set a new system variable PATH as JAVA_HOME:
    1. Under the System variables, click New. The New System Variable dialog box appears.
    2. Enter the Variable name as JAVA_HOME.
    3. Enter the Variable value as the installation path of the JDK (without the bin subfolder). For example:
    4. To save the changes, click the OK button.
    5. To close the Environment Variables dialog box, click the OK button.

When above setup is done, you can open the command prompt and type java -version to verify the installation.

0 Kudos
Reply