-
Notifications
You must be signed in to change notification settings - Fork 222
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
Corrupted local java copy avoiding application to start #2357
Comments
I guess it is a different situation, as code to check would need the JRE to run, right? |
Good point! Maybe we could explicitly use the case JRE for checking? It could be also corrupted... or maybe ProcessBuilder related classes could be missing in current JRE... |
I will take a closer look tomorrow, but using the case JRE for any simple check would be slow if the case is in a slow storage (e.g. mapped network drive), which is the whole point of having a local copy. What would happen if any iped*jar is corrupted or deleted by user/external processes actions? |
I managed to force the error, deleting |
@lfcnassif, one alternative that I found is to show a message in the console if After the stack trace, I added the following message:
PS: |
Thank you @wladimirleite for taking a look at this! I see it is a tricky issue... I think your solution is enough and should help many users! |
Warn the user about possibly corrupted JRE (#2357)
This is the second or third time an user reported such error to me. It throws NoClassDefFoundError in JRE standard classes. Deleting the c:/users/user/.iped/jre fixes the issue.
Maybe we could check if the local jre copy is ok before using it, similar to what is done to libreoffice (checking minimum files count or total size).
The text was updated successfully, but these errors were encountered: