ubuntu 14.04 - GitLab CI: Unable to set JAVA_HOME -


i running git-lab server ubuntu 14 trying compile build on git-lab ci reasons keep getting same error on , on again:

error: java_home set invalid directory: /usr/lib/jvm/java-7-openjdk-amd64/jre please set java_home variable in environment match location of java installation. 

no matter how change path of java_home same results. have 4 folders inside jvm folder:

java-8-oracle java-7-openjdk-amd64 java-1.7.0-openjdk-amd64 default-java 

but again no matter directory set path same result.

here .gitlab-ci.yml file:

 before_script: - export java_home=/usr/lib/jvm/java-7-openjdk-amd64/jre - export android_home="/opt/android-sdk" - chmod +x gradlew  dev:     script:   - ./gradlew assembledebug 

what cause of error?

try change .gitlab-ci.yml this:

before_script:     - export android_home="/opt/android-sdk"   - export java_home="/usr/lib/jvm/java-1.7.0-openjdk-amd64"   - chmod +x gradlew  dev:     script:     - ./gradlew assembledebug 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -