ImSejin / lezhin-comics-downloader

📥 Downloader for lezhin comics
https://www.lezhin.com
Apache License 2.0
57 stars 4 forks source link

Exception in thread "main" java.lang.NoClassDefFoundError #165

Closed forkirara closed 1 year ago

forkirara commented 1 year ago

I get an error, when I try to download: Starting ChromeDriver 111.0.5563.19 (378a38865270d286695aeb86f190564911ef7bc2-refs/branch-heads/5563@{#251}) on port 8762 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class io.github.imsejin.dl.lezhin.browser.WebBrowser$SingletonLazyHolder at io.github.imsejin.dl.lezhin.browser.WebBrowser.getDriver(WebBrowser.java:129) at io.github.imsejin.dl.lezhin.browser.WebBrowser.quitIfInitialized(WebBrowser.java:151) at io.github.imsejin.dl.lezhin.Application.main(Application.java:65)

I run: Ubuntu 22.04 java 17.0.5 2022-10-18 LTS Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191) Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)

Can you help me, please? Thanks

Forkirara

ImSejin commented 1 year ago

It seems that your JVM vendor is Oracle.

Could you test jvms from other vendor? I wonder the issue occurs on other jvms.

  1. Eclipse Foundation
  2. Amazon
  3. Azul
  4. Redhat
forkirara commented 1 year ago

I tried with openjdk 17: openjdk 17.0.5 2022-10-18 OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu122.04) OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu122.04, mixed mode, sharing) It's the same: Starting ChromeDriver 111.0.5563.19 (378a38865270d286695aeb86f190564911ef7bc2-refs/branch-heads/5563@{#251}) on port 8160 Only local connections are allowed. Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe. ChromeDriver was started successfully. Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class io.github.imsejin.dl.lezhin.browser.WebBrowser$SingletonLazyHolder at io.github.imsejin.dl.lezhin.browser.WebBrowser.getDriver(WebBrowser.java:129) at io.github.imsejin.dl.lezhin.browser.WebBrowser.quitIfInitialized(WebBrowser.java:151) at io.github.imsejin.dl.lezhin.Application.main(Application.java:65)

forkirara commented 1 year ago

Solved. I downgraded to chrome version 11110.0.5481.100 (Build official) (a 64 bit), changing chromedriver, of course. I don't know why the newer version doesn't work. Thanks for your time :)