![]() |
(Java Sources Browser) |
JSBrowser uses two ports: 8007 (for tomcat) and 80 (for HTTP) by default.
If the HTTP port number (default80
) is already used, you can change it.
Edit the file:"JSBrowser/tomcat/conf/server.xml"
Search the following elements:
and replace
<Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/> <Parameter name="port" value="80"/> </Connector> "80"
by a new port number, example"6578"
, in this case to access to the JSBrowser url, go tohttp://JSBrowser_server:6578/JSBrowser
Search the line containing
- On Windows, edit the file
"javadoc\JavadocTemplate.bat"
- On Unix/Linux, edit the file
"javadoc/JavadocTemplate.sh"
"-private"
(that is the default) and replace it by one of the following value:Delete all sub-directories of the directory "javadoc"
-public
=> shows only public classes and members-protected
=> shows only protected and public classes and members-package
=> shows only package, protected, and public classes and members-private
=> shows all classes and members
Restart JSBrowser.
Then launch the javadoc generation program (see "Generate the java documentation").
If the Generate Javadoc tool (see "Generate the java documentation") displays a memory problem, try to increase the number of memory.Search the line containing
- On Windows, edit the file
"javadoc\ProjectName\javadoc.bat"
- On Unix/Linux, edit the file
"javadoc/ProjectName/javadoc.sh"
"-J-Xmx512m"
(that is the default) and increase the number that is after"-Xmx"
(or"-Xm"
on solaris).
Delete all sub-directories of the directory "javadoc"
Restart JSBrowser.
Then launch the javadoc generation program (see "Generate the java documentation").
If the java documentation produces an error (see "Generate the java documentation"):
Check that your java files can be compiled. The java documentation cannot be generated with java files that cannot be compiled.
If the java documentation displays:Warning cannot find class
Go to the configuration page (see "To configure JSBrowser") and add, in the directories list, the directory (if it exists) that contains the javadoc of the classes that are not found.
If this directory is already in the list, check that the external classes are well referenced. (see How a Class Must be Referenced).
If JSBrowser server is installed on your localhost and you cannot obtain the JSBrowser main page:
- Check your proxy configuration:
With Internet Explorer:
- Select
"Tools/Internet Options.../Connections/LAN Settings..."
- Check "Bypass proxy server for local addresses"
With Netscape:
- Select
"Edit/Preferences.../Advanced/Proxies..."
- Check "Direct connection to the Internet"
- Check the port number used by the JSBrowser server (see "Change the Port Number")
- If the port number is
"6578"
, go tohttp://JSBrowser_server:6578/JSBrowser
If a java file is not entirely displayed and you get the message: "Parsing interrupted"
Check that your file is syntactically correct and that it can be compiled.
If you cannot start JSBrowser server, check that the Java(TM) 2 SDK or JRE, Standard Edition Version 1.2, 1.3 or 1.4 is weel installed (see "Installation on server side").
If you cannot enter in a package or you don't see your java source files, check the configuration of JSBrowser (see "Configuration"), check all your directories and the location of your jar/zip files.
If you cannot start JSBrowser server and you get a java.net.BindException, check that you use the root user id, check that the port number used by JSBrowser is not already used by another application, check that a tomcat server is not already running on your host or change the port used by JSBrowser server (see "Change the Port Number").
This problem occurs if you are using Netscape 4.x, some links are not selectable.
Edit the file:JSBrowser v3.0/tomcat/webapps/JSBrowser/style.css
and delete the line:
border : 1px solid Black;
in the cssAction section.