RedSquirrel87 / manga-downloader

A very simple application written in JAVA to download any chapters of any manga from the supported websites
37 stars 1 forks source link

Spurious? JDK Error Message. #841

Open nexist418 opened 2 months ago

nexist418 commented 2 months ago

When I start Manga Downloader, I get a dialog telling me that I need JDK 22 or newer. If I am reading the Java output correctly, I have v25:

PS C:\Users\Nexist> java -version
java version "1.8.0_421"
Java(TM) SE Runtime Environment (build 1.8.0_421-b09)
Java HotSpot(TM) Client VM (build 25.421-b09, mixed mode, sharing)

The Java Console indicates that I have no other version installed.

2024-08-17 15_47_05-Error!
RedSquirrel87 commented 2 months ago

You have Java 8 (JRE): java version "1.8.0_421" https://www.oracle.com/java/technologies/javase/jdk8-naming.html You need to install the JDK , you can install it without the need to remove JRE (after a reboot Java will automatically use the JDK)

RedSquirrel87 commented 2 months ago

This is the output of java -version when you have the JDK v22: image

nexist418 commented 2 months ago

Thank you. I will express my annoyance with Oracle that the latest version of Java did not put the latest JDK on my computer as well.

bumbaras commented 2 months ago

Normal user doesn't need the JDK until You are programmer who develops java applications. Seems MD uses some kind of VM needed to get access to the site and this VM needs JDK platform to work. Normal user usually needs only JRE on machine.

rollin340 commented 1 month ago

I'm getting this despite having v22. Updating to v23 made no difference. It's already in the PATH list, so there shouldn't be an issue there.

RedSquirrel87 commented 1 month ago

I'm getting this despite having v22. Updating to v23 made no difference. It's already in the PATH list, so there shouldn't be an issue there.

Please paste the content of your jvm_log.txt file, I want to see what specific version / OS you have

rollin340 commented 1 month ago

The logs:

OS: Windows 11 (amd64) | JVM: 1.8.0_361

Running java -version:

java version "23" 2024-09-17 Java(TM) SE Runtime Environment (build 23+37-2369) Java HotSpot(TM) 64-Bit Server VM (build 23+37-2369, mixed mode, sharing)

In the PATH, JDK 23 is above JDK 22, but there is no path to the JRE. Is there any way to explicitly point the application to a target JDK directory?

RedSquirrel87 commented 1 month ago

The logs:

OS: Windows 11 (amd64) | JVM: 1.8.0_361

This is the problem: even if you have installed the JDK, for some reason your JVM starts the program using the JRE (that is Java v8). When using the JDK, in the log at the JVM version string you should get 22.x.x or 23.x.x, something like this: image Did you restart the PC after installing the JDK? It seems to me that there might be an issue with the environment variables. If I were you, I would try uninstalling the JRE and see if Java still works, otherwise, you need to uninstall and reinstall the JDK as well (no need to reinstall the JRE since the JDK already implements it). Please always remember to restart the PC after each installation/uninstallation operation just to be sure that the environment variables are properly set.