Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse with JD-decompiler not showing comments in source file  RSS feed

 
Jay Josh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36622
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
Marshal
Posts: 36622
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great. My guess was that the code was compiled differently or came from different source. Your experiment confirms that.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!