• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse with JD-decompiler not showing comments in source file

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I am using Eclipse IDE for java developers (mars 4.5.1) with decompiler (JD-Eclipse). Whenever I am opening any class file like HashMap.java, its not showing copy right comments, @author or any other /* */ comments. While with netbeans 8.2(for Java EE) where I dont need any decompiler, is opening the same HashMap.java with all comments. Please check screen shots attachments for more clearity.

Thanks
Jayant
Eclipse.jpg
[Thumbnail for Eclipse.jpg]
Eclipse IDE
netbeans.jpg
[Thumbnail for netbeans.jpg]
NetBeans IDE
 
Jay Josh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More precisely question should be why eclipse is not showing ""javadoc comments" in java source files. But it is visible with netbeans IDE.


Thanks
Jayant
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jay,
Are both pointing to the same JDK? Not the same version, but the actual same JDK directory on disk.
 
Jay Josh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne

Thanks for reply.

Eclipse JRE path was : C:\Program Files\Java\jre1.8.0_65

Netbeans : C:\Program Files\Java\jdk1.8.0_65

Then I changed JRE path for Eclipse to

C:\Program Files\Java\jdk1.8.0_65

But still its not showing javadoc comments

- Jayant
Eclipse1.jpg
[Thumbnail for Eclipse1.jpg]
Eclipse IDE
Netbeans1.jpg
[Thumbnail for Netbeans1.jpg]
NetBeans IDE
 
Jay Josh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Its working now. I think you were correct. After editing the JRE home in eclipse to C:\Program Files\Java\jdk1.8.0_65, I think I directly pressed OK before pressing Apply.

Regards
Jayant  

 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Great. My guess was that the code was compiled differently or came from different source. Your experiment confirms that.
 
reply
    Bookmark Topic Watch Topic
  • New Topic