1

I have converted class files into source code by JD GUI Tool. I open the jar file using JD-GUI version 0.3.5, then open File folder and click "Save All Sources". There are comments in source code, e.g.:

/*     */
/*     */ @ManagedBean
/*  60   */ @SessionScoped

How can I remove those comments?

cb4
  • 6,689
  • 7
  • 45
  • 57
Carol
  • 43
  • 1
  • 3
  • Look through the settings for JD, I think you can turn them off.. – MadProgrammer Aug 18 '14 at 03:56
  • There are only 5 tabs in JD, [File, Edit, Navigate, Search, Help] and no 'Setting' among them. Should I use JD Project or JD Eclipse? – Carol Aug 18 '14 at 04:04
  • Does this answer your question? [Removing 1000s of comments in eclipse?](https://stackoverflow.com/questions/23967176/removing-1000s-of-comments-in-eclipse) – cb4 Apr 29 '22 at 20:17

2 Answers2

3

Change the setting under Help > Preferences and uncheck Display line numbers as in image;

enter image description here

cb4
  • 6,689
  • 7
  • 45
  • 57
Wundwin Born
  • 3,467
  • 19
  • 37
1

From this you can turn off in (Only works with JD Eclipse)

Window –> Preferences –> Java –> Decompiler 

And uncheck line numbers

Like this:

enter image description here

These comments are the line number from the .class file.

Arturo Volpe
  • 3,442
  • 3
  • 25
  • 40