9

Here is the problem: Currently my team work for a vendor, that provided us a huge JavaDoc spec from their library, but did not provide the .jar file with stubs or implementation.

We already talked to them, but they will provide the .jar files only in 2 to 3 weeks from now. I would not like to wait this time to start our development, so here's the question:

Given JavaDoc .html files only, are there any tools (free / open source) available so we could create a .jar (or a bunch of .java/.class files) that would enable us to compile our code?

9
  • 5
    I would work towards terminating any cooperation with such a vendor ASAP. Commented May 3, 2011 at 15:00
  • 1
    Was the javadoc produced with -linksource? download.oracle.com/javase/1.4.2/docs/tooldocs/solaris/… Commented May 3, 2011 at 15:01
  • @Michael Borgwardt, 100% agreed, but this is another discussion. There are some politics involved not relevant for us at stackoverflow right now. :) Commented May 3, 2011 at 15:09
  • @Mike Samuel, negative. No line numbers, no private methods exposed. Commented May 3, 2011 at 15:10
  • @Machado, -linksource has nothing to do with line numbers or privateness. If specified, the source, pretty printed to HTML, is included in the javadoc linked from member definitions. Commented May 3, 2011 at 15:34

2 Answers 2

4

doc2java seems to do exactly what you want.

Sign up to request clarification or add additional context in comments.

4 Comments

this seems to be good, but the latest version is from 2004. I'm running those on my html files, but having some exceptions like java.lang.IllegalStateException: unable to find the start of the documentation defined by [START OF CLASS DATA].. Do you know if it works with JavaDoc newer than 2004 ?
Cannot accept this answer, because it does not work for me due to above reason. Anyone could get doc2java working ?
@Machado - You could :-) Seriously, if it is this important to you and your company, you should be willing to put in slightly more than a token effort.
Nice necro. :) As a problem of 2011, I actually did a small doc to java program to solve my problem at that time. The code, however, was single-purpose and was thrown away, since it was not intended to be a broader jack-of-all-trades like doc2java.
0

codavaj claims to support Java 6 including generics.

http://codavaj.sourceforge.net/

I have not yet tested it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.