Java2web is Java 1.5+ program designed to convert java source code to HTML. It is a batch-style process, so that it can be used in scripts and unattended.
Basic operation with HTMLConverter is easy : you set the different formatting options using command line arguments that look like --option = value. The source file that you want to process is set using the --input option, and the target file is set using the --output option. You must also provide at least one CSS stylesheet to use via the --skins option.
You can set many more options that affect the appearance of the generated HTML. See the "common options" list in the doccumentation on the left of this page.
Java2Web will exit with errorlevel 0 if everything was ok or with a negative errorlevel otherwise.
Using java2web from code is extremely easy: As stated above, you must provide at least the input,output and skins options, like this (everything must be typed on a single line)
java -cp . org.java2web.html.Java2Web
--input=org\java2web\html\ClassResolver.java
--output=ClassResolver.html
--skins=Eclipse,styles/eclipse.css
Of course, you can set many more different options:
java -cp . org.java2web.html.Java2WebA sample batch file (test.bat) is included with the distribution.
--input=org\java2web\html\ClassResolver.java
--output=ClassResolver.html
--skins=Eclipse,styles/eclipse.css
--title=ClassResolver.java
--titleLocation=http://www.planetalia.com
--author="Alexander Hristov"
--generateOutline=true
--generateJavadocLinks=true
--javadocs=C:\Archivos de programa\Java\jdk1.5.0_05\docs\api,
http://java.sun.com/j2se/1.5.0/docs/api
--generateNavigationBox=true
--showLineNumbers=true
(Press here to see the actual, full-size html output)
