'java' related error in gui guider
10-17-2022
11:24 PM
1,522 Views
semiconductor_user
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1 Reply
10-18-2022
09:23 PM
1,507 Views
zhenhualuo
NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Get the OpenJDK source package from http://jdk.java.net/archive/.
- 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.
- Set the PATH environment variable.
- Select Control Panel.
- Click System.
- Select Advanced system settings.
- Click the Advanced tab.
- Click the Environment Variables button. The Environment Variables dialog box appears.
- Locate the PATH variable.
- Click the Edit button.
- Click the New button.
- Add the location of the bin folder of the JDK installation.
- Set a new system variable PATH as JAVA_HOME:
- Under the System variables, click New. The New System Variable dialog box appears.
- Enter the Variable name as JAVA_HOME.
- Enter the Variable value as the installation path of the JDK (without the bin subfolder). For example:
- To save the changes, click the OK button.
- 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.