-
Notifications
You must be signed in to change notification settings - Fork 57
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
Exception when i try to open a class file inside the Jar File Viewer #114
Comments
What OS is Eclipse running on? Posting the stack trace as screenshot is a bit cumbersome as I can not copy it into my Eclipse Stacktrace console - therefore please post stacktraces never as screenshot. |
Eclipse is running on Windows 10. I droped the Jar file from the file explorer directly into Eclipse. Sorry for the Stacktrace Screenshot ;-)... Here it is ...
|
@jpstotz should my usecase work ? |
As I am not the original author of ECD I am not sure if ECD is designed to work directly on JAR files in a Eclipse project. But a JAR doesn't have to be added via Maven to work with ECD. Instead you can simply add it to the project's build path (context menu "Add to Build path") and then access it via through it's entry in the project's "Referenced Libraries" element. |
Just fixed the NullPointerException in 4c073ef. Wasn't aware that Eclipse has special JAR File Viewer for JARs that are not on the class-path. In the end I got a different Exception which explains what is going wrong:
It seems that Eclipse doesn't allow to set the decompiled source code to an element inside this Jar File Viewer (the elements are read-only). In my interpretation this means Eclipse and ECD are designed to decompile only classes that are on the class path. |
We are using eclipse 2024-06.
If i open a external jar file with eclipse it is opening it with the JAR File Viewer
If i try to open a class file inside i get following exception
The text was updated successfully, but these errors were encountered: