Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to extract Java documentation from src file using command line ?  RSS feed

 
Shubham Semwal
Ranch Hand
Posts: 176
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched around a bit but am unable to find a way to extract html pages of javadoc from src file.
The information is here but I'm not able to implement it.
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give us an example of what you have tried?

What command have you typed?
What input files are you giving it?
What response does it give you?
 
Shubham Semwal
Ranch Hand
Posts: 176
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Evans wrote:Can you give us an example of what you have tried?

What command have you typed?
What input files are you giving it?
What response does it give you?


I re-read the doc and got it now. There's something wrong with the path I was giving.
Now I just went to source and executed the command there only.

cd C:\Program Files\Java\jdk1.8.0_25\src\java\lang
javadoc *.java

 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should not be doing that sort of thing in a folder called java/lang. Either you are trying to repeat what has already been done here, or you are trying to create files called java.lang.Foo which you are not allowed to do. Or you have a folder structure quite inappropriate to its package structure.
 
Shubham Semwal
Ranch Hand
Posts: 176
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:You should not be doing that sort of thing in a folder called java/lang. Either you are trying to repeat what has already been done here, or you are trying to create files called java.lang.Foo which you are not allowed to do. Or you have a folder structure quite inappropriate to its package structure.


I unzipped the src folder. Copied the folder to C:\Program Files\Java\jdk1.8.0_25. Then I did all the changes inside that unzipped src. Is it wrong ??
 
Stefan Evans
Bartender
Posts: 1836
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what it is sounding like to me is that you have taken the standard java classes source files, made some changes?!? and then want to generate javadocs for it.

I'm a little confused as to WHY you would want to do this. Are you building your own version of the JDK? Like OpenJDK?


 
Shubham Semwal
Ranch Hand
Posts: 176
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Evans wrote:So what it is sounding like to me is that you have taken the standard java classes source files, made some changes?!? and then want to generate javadocs for it.

I'm a little confused as to WHY you would want to do this. Are you building your own version of the JDK? Like OpenJDK?




No no .. I just wanted to read java documentation
 
Campbell Ritchie
Marshal
Posts: 55698
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find the originals of the documentation comments by simply unzipping the files. You can read the documentation in the link I gave you earlier.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!