Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8136511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:47:07+00:00 2026-06-06T10:47:07+00:00

I am trying to generate the documentation of a project written in java 7.

  • 0

I am trying to generate the documentation of a project written in java 7.
I have used things of java 7 like the try with resource statement, and when I try to generate the documentation of my project:

javadoc -d mydocks truckingCompany

(truckingCompany is the directory containing all java files)
I get a lot of syntax errors.If I try to compile the project using javac 1.7 I don’t get all these errors.So I’m pretty sure that these errors are dued to the fact that javadoc is still using the version 1.6 of javac.How to change the version?

PS: An example of error is this:

home/ramy/Desktop/./truckingCompany/TCUtil.java:175: not a statement
catch( IOException | ClassNotFoundException | ClassCastException e)
      ^

All thing that are correct in Java 7.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:47:08+00:00Added an answer on June 6, 2026 at 10:47 am

    Javadoc is not a standalone program, but a part of the java development kit (JDK) (it’s included in tools.jar.) This being said, you’ll need to update your runtime environment to be Java 7 instead of Java 6.

    Since you’re running Linux, this should be as simple as pointing /usr/bin/java to your JDK 7. java -version should return Java 7 (or similar) to indicate this is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a reasonably large Flex project and I'm trying to generate ASDoc documentation
I am trying to generate Java documentation in Eclipse. The source files are UTF-8
I'd like to parse a SOAPUI Project file and generate some documentation from the
I'm trying to write a MSBuild project that will generate html documentation using doxygen.
Trying to generate JavaDocs for the Android lint-cli project on Mac 10.7 Keep getting
I'm trying to generate a report of the activities that users have done within
I have been trying to generate report as per age differences of different months
I am trying to generate documentation of the Octave API using doxygen. However, doxygen
I am trying to use doxygen to generate documentation for some matlab classes I
I'm trying to figure out how to automatically generate documentation for a single c#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.