Closed Bug 1398966 Opened 8 years ago Closed 8 years ago

If javac is out of date, suggest to the user to check JAVA_HOME

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: botond, Assigned: botond)

Details

Attachments

(1 file)

I recently tried to build Fennec, and was momentarily stumped by the error: ERROR: javac 1.8 or higher is required (found 1.7.0_151) which surprised me because the "javac" in my PATH was 1.8. The culprit was my JAVA_HOME environment variable, which was pointing to the older 1.7 Java installation. I think it would be helpful if the error message contained a hint to check JAVA_HOME.
Heh, we actually have a test for the wording of the error message :)
Comment on attachment 8906826 [details] Bug 1398966 - Suggest checking JAVA_HOME if javac is out of date. https://reviewboard.mozilla.org/r/178540/#review183878 Thanks, botond!
Attachment #8906826 - Flags: review?(nalexander) → review+
hg error in cmd: hg update --clean -r ba1cf2c8ad66: abort: unknown revision 'ba1cf2c8ad66'!
Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/07c36f901a06 Suggest checking JAVA_HOME if javac is out of date. r=nalexander
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: