Home > Java > Why does opening a generated index.html javadoc file in Eclipse cause one of the html-like files to open?

Why does opening a generated index.html javadoc file in Eclipse cause one of the html-like files to open?

PHPz
Release: 2024-02-05 21:18:12
forward
1314 people have browsed it
Question content

I just started learning javadoc, after generating the javadoc file, the index.html does not work as expected, and it happens in all my java projects. Is it because of the eclipse settings? I can't find the answer anywhere. Please help, thank you

I tried to regenerate the javadoc file but without success

<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu Jan 18 18:21:09 EST 2024 -->
<title>Generated Documentation (Untitled)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2024-01-18">
<meta name="description" content="index redirect">
<meta name="generator" content="javadoc/IndexRedirectWriter">
<link rel="canonical" href="ButtonCounter.html">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript">window.location.replace('ButtonCounter.html')</script>
<noscript>
<meta http-equiv="Refresh" content="0;ButtonCounter.html">
</noscript>
</head>
<body class="index-redirect-page">
<main role="main">
<noscript>
<p>JavaScript is disabled on your browser.</p>
</noscript>
<p><a href="ButtonCounter.html">ButtonCounter.html</a></p>
</main>
</body>
</html>
Copy after login


Correct answer


The generated index.html attempts to redirect to ButtonCounter.html.

There are some things you can do to fix what is causing the error, first check if ButtonCounter.html exists in the output directory of the javadoc, because if it doesn't exist, the redirection will fail.

Check whether the javadoc generation gives any errors, and if so, where and why they are located.

Also, in Eclipse you can check how javadoc is configured, right click on your project, go to Properties -> Java Build Path -> Libraries -> Javadoc Location and make sure it is configured correctly.

as well as old reliable, clean and rebuilt projects

The above is the detailed content of Why does opening a generated index.html javadoc file in Eclipse cause one of the html-like files to open?. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template