Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Featured Replies

Posted

I reinstalled java on my computer, and now "gradlew clean" is giving the following error message:

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

 

I created a JAVA_HOME environment variable and added both the jdk and jre to the path variable. Typing "java -version" in cmd outputs this: N3vqKCx.png.

 

Can someone help me?

  • Author

I reinstalled java, but now Idea (my IDE) is error when trying to run the minecraft client:

Error:Cannot run program "D:\Program Files\Java\jdk1.8.0_11\bin\java" (in directory "C:\Users\Karel\.IdeaIC13\system\compile-server"): CreateProcess error=2, Het systeem kan het opgegeven bestand niet vinden

 

I can't find a way to tell Idea that java is not installed in "D:\Program Files\Java\jdk1.8.0_11\bin\java", but in "D:\Install\Java\jdk1.7.0_67\bin\java".

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.