Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError on First Launch After JAR Update #204

Open
lzpzywoo opened this issue Sep 27, 2024 · 0 comments
Open

java.lang.NoClassDefFoundError on First Launch After JAR Update #204

lzpzywoo opened this issue Sep 27, 2024 · 0 comments

Comments

@lzpzywoo
Copy link

lzpzywoo commented Sep 27, 2024

I encountered an issue after updating the JAR file in my project. Upon the first launch after the update, I receive the following error:

Caused by: java.lang.ClassNotFoundException: com.doorun.uploadreport.HospitalNetworkInfoApp
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more

However, if I close the application and restart it, the issue does not occur, and the update works successfully. Additionally, when running the application in IntelliJ IDEA, I do not experience this problem during the update process.

However, if I close the application and restart it, the issue does not occur, and the update works successfully. Additionally, when running the application in IntelliJ IDEA, I do not experience this problem during the update process.

Steps to Reproduce:

Update the JAR file in the project.
Launch the application for the first time.
Observe the NoClassDefFoundError.
Close the application and restart it.
Note that the application launches successfully without errors.
Expected Behavior: The application should launch without errors after the JAR file update.

Environment:

JRE version: 17
IDE: IntelliJ IDEA [2023.2.3]
Operating System: Windows 10 (version 19045)
Thank you for your assistance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant