#Problem with JDK

1 messages · Page 1 of 1 (latest)

solar remnantBOT
#

<@&987246527741304832> please have a look, thanks.

solar remnantBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

n though it shows the version, it gives me an error saying "javac is not recognized as an internal or external command".

There could be several reasons why you are facing these issues:

  1. Incorrect JDK installation: Make sure you have downloaded and installed the correct version of JDK for your operating system. Double-check if you have chosen the appropriate architecture (32-bit or 64-bit) and the correct version.

  2. Incorrect environment variable setup: Java requires certain environment variables to be set up correctly in order to work properly. Ensure that you have set up the JAVA_HOME variable and added the JDK's bin directory to the PATH variable.

  3. Incorrect IntelliJ IDEA configuration: Check if IntelliJ IDEA is configured to use the correct JDK. Go to File -> Project Structure -> SDKs and verify that the correct JDK is selected.

  4. Corrupted installation: It is possible that your JDK installation got corrupted during download or installation. In such cases, try uninstalling and reinstalling the JDK.

#
  1. Conflicting installations: If you have multiple versions of Java installed on your system, there might be conflicts between them. Ensure that only one version of Java is installed and configured correctly.

To resolve these issues, you can try the following steps:

  1. Reinstall JDK: Uninstall the existing JDK from your system and then download and install a fresh copy from Oracle's official website.

  2. Set up environment variables: Verify that the JAVA_HOME variable is set correctly to point to your JDK installation directory, and add the bin directory of your JDK to the PATH variable.

  3. Configure IntelliJ IDEA: Double-check that IntelliJ IDEA is configured to use the correct JDK by going to File -> Project Structure -> SDKs and selecting the appropriate JDK.

  4. Restart your system: Sometimes, a simple restart can help resolve any lingering issues with environment variables or conflicting installations.

If none of these steps resolve your problem, it might be helpful to provide more specific details about the error messages you are receiving, the operating system you are using, and any other relevant information.

flint mantle
#

You don't need java to install minecraft

cursive ocean
# flint mantle You don't need java to install minecraft

no, you don’t understand, I accidentally installed minecraft and java 1.8 was automatically installed there
I deleted it and now intelijidea tells me that it cannot find java
when javac writes normally on here which I manually installed

cursive ocean
#

so I set the normal JAVA_HOME environment variables and specified the path in Path
he sees javac but not java

#

like, as I understand it, he takes the second path and I need the fourth

flint mantle