JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 23.09.2022, 00:31
mav mav is offline
Wind Gust
 
Join Date: Mar 2021
Posts: 42
Default OpenJDK 19 Support for JD2

new version is out. tried to start jd2 with it. see error below

OpenJDK JDK 19 General-Availability Release
**External links are only visible to Support Staff****External links are only visible to Support Staff**

windows server 2019:
start_jd.bat
set JAVA_HOME=%~dp0jdk-18.0.2
start "" "%~dp0nJDownloader2\JDownloader2.exe"
--> jd2 perfect.

set JAVA_HOME=%~dp0jdk-19
start "" "%~dp0nJDownloader2\JDownloader2.exe"
Error Message:
JVM could not be started, The maximum heap size (-Xmx) might be too large or an antivirus or firewall tool could block the execution.

JDownloader2.vmoptions:
-Xms64m
-Dsun.java2d.d3d=false

change script back to:
set JAVA_HOME=%~dp0jdk-18.0.2
start "" "%~dp0nJDownloader2\JDownloader2.exe"
--> jd2 starts without problem


JDownloader2.exe 20.03.2015 17:10
JDownloader2Update.exe 20.03.2015 17:10
core: 46679

java --version
openjdk 19 2022-09-20
OpenJDK Runtime Environment (build 19+36-2238)
OpenJDK 64-Bit Server VM (build 19+36-2238, mixed mode, sharing)

Thanks,
Mav.
Reply With Quote
  #2  
Old 25.09.2022, 11:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@mav: JDownloader does support/run fine on Java 1.6 up to Java 20. There are no known issues.

The error you encounter does not come from JDownloader but from it's launcher(JDownloader2.exe). The error means that the initialization of java failed, long before any JDownloader being involved.
Please try the following: Remove/clear the .vmoptions file. Due to its content I can tell that your installation seems to be older and most likely
1.) one of those params cause Java fail to start
or
2.) the launcher is too old for Java19 to be supported due to some internal java changes.

In case a clean .vmoptions file doesn't work, please try a newer launcher from here
https://jdownloader.org/jdownloader2
Read here how to move your configuration, see https://support.jdownloader.org/Know...-configuration
Would be nice if you can test and provide feedback then.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 25.10.2022, 12:57
mav mav is offline
Wind Gust
 
Join Date: Mar 2021
Posts: 42
Default

@Jiaz: thanks for your helpful reply.

For me the solution was actually not a different JDownloader2.exe or JDownloader2.vmoptions but using OpenJDK 19.0.1.

The release version of OpenJDK19 (19.0.0) did not work for me - with old and new jdownloader2.exe

Anyway using now current jdownloader2.exe with stylish GUI.
Reply With Quote
  #4  
Old 26.10.2022, 10:26
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

@mav: Thanks for the feedback. So with 19.0.1 it now works fine?
I, personally, prefer LTS builds from here adoptium. for example in case you want to test/use java 19, see adoptium.net/de/temurin/releases?version=19
See here for a list of jvm providers https://support.jdownloader.org/Know...bedded-devices
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:41.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.