0

My pc is a genuine Windows 10 64-bit system.

I'm currently trying to install JAVA 14 because a program I want to run requires that specific version. However, I've also tried installing the newest version of JAVA before and the same problem persists.

I installed via an exe. file from Oracle Archives. The installer runs and displays java has been successfully installed but upon entering java -version in cmd, this text is displayed: 'java' is not recognized as an internal or external command, operable program or batch file. And as I said in the title, Java is not listed in my add/remove programs. The only thing the installer seems to do for me is to add a java file in program files (C:\Program Files\Java\jdk-14.0.2) and nothing else.

I've also tried running the installer as administrator, disabling UAC and windows security and reinstalling as administrator, and also installing manually via the zip file, all to no avail (I couldn't find the described path file, in environmental variables, to edit in the manual install). Also tried JavaRa, and the program could not find any Java versions.

Also tried Jarfix as both user and administrator, does nothing.

13
  • After the java installer closes, do you find the java folder in C:\Program Files\Java?
    – Dong Li
    Jun 1, 2021 at 7:34
  • Restart the command prompt and retype java -version, the current instance of command prompt may not be aware of the new java path
    – Dong Li
    Jun 1, 2021 at 7:35
  • @CodeTiger 1. Yes the folder was there, but I couldn't find it in add/remove programs and JavaRa says it isn't installed although the installer itself says the installation was successful. 2. I've done that multiple times, doesn't change the fact that Java wasn't actually installed and isn't working.
    – Hsu
    Jun 1, 2021 at 9:01
  • Is there a bin folder in the Java jdk and jre folders?
    – Dong Li
    Jun 1, 2021 at 11:11
  • @CodeTiger There's only a jdk folder but yes, there's a bin in there.
    – Hsu
    Jun 1, 2021 at 13:15

1 Answer 1

0

It turned out a tutorial I followed before to try installing from a zip file wrongly instructed to edit path in user variables after adding a new variable named JAVA_HOME, instead of the system one. So it didn't work. I merely had to add a new path to the system and adding a new variable wasn't neccesary to get it to work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .