• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

brunch build for android 5.1 fails to match openjdk version

Search This thread

dustofdeath

Senior Member
Feb 26, 2012
51
0
Code:
Your version is: openjdk version "1.7.0_75" OpenJDK Runtime Environment (build 1.7.0_75-b13) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode).
The required version is: "1.7.x"

Using CyanogenMod 12.1 as a base (need to build for a older phone).

openjdk is installed and currently active. Restarted, checked env, reinstalled - nothing.

1.7.x should natch 1.7.0_75. Is this some weird code glitch where it doesnät like the _75?
 

dustofdeath

Senior Member
Feb 26, 2012
51
0
Seems like main.mk grep was a bit too hardcoded - it was looking for a very specific format for java -version.
as in java.

Code:
java_version := $(shell echo '$(java_version_str)' | grep '^java .*[ "]1\.7[\. "$$]')
While version returned:
Code:
openjdk version "1.7.0_75"