JD-Eclipse: How do I attach source to .class file for my own .java file?

199 views Asked by At

I have the JD-Eclipse plugin installed and all File associations set properly and as default. The JD-Eclipse editor comes up when I click om the .class file but it complains that it has no source attached.

Note: I am trying to look at the decompiled java for a .java file that I wrote in my project.

my source files are in the project src/ subdirectory my .class output files are project bin/ subdirectory

Here is the contents of the project .classpath file:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
        <attributes>
            <attribute name="module" value="true"/>
        </attributes>
    </classpathentry>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

Here are my screen captures of my related settings

General>Content Types

File Associations>.class

File Associations>.class without source

open .class file example

0

There are 0 answers