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

RESOLVED FIXED in Firefox 57

Status

defect
RESOLVED FIXED
2 years ago
Last year

People

(Reporter: botond, Assigned: botond)

Tracking

Trunk
mozilla57

Firefox Tracking Flags

(firefox57 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

2 years ago
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.
Comment hidden (mozreview-request)
Assignee

Comment 2

2 years ago
Heh, we actually have a test for the wording of the error message :)
Comment hidden (mozreview-request)

Comment 4

2 years ago
mozreview-review
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+

Comment 5

2 years ago
hg error in cmd: hg update --clean -r ba1cf2c8ad66: abort: unknown revision 'ba1cf2c8ad66'!

Comment 6

2 years ago
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
https://hg.mozilla.org/mozilla-central/rev/07c36f901a06
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57

Updated

Last year
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.