# Java

**URL:** https://travis-ci.community/c/languages/java/46.md

[Latest](https://travis-ci.community/latest.md) · [Categories](https://travis-ci.community/categories.md) · [Tags](https://travis-ci.community/tags.md)

---

## [About the Java category](https://travis-ci.community/t/about-the-java-category/743)

<div class="topic-metadata">

**Author:** [@kris](https://travis-ci.community/u/kris)\
**Replies:** 0

</div>

Any discussions about Java goes here!

---

## [File travis.yml not found on GitHub even though file exists](https://travis-ci.community/t/file-travis-yml-not-found-on-github-even-though-file-exists/9992)

<div class="topic-metadata">

**Author:** [@cmccarthyIrl](https://travis-ci.community/u/cmccarthyIrl)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 5:34pm UTC](https://travis-ci.community/t/file-travis-yml-not-found-on-github-even-though-file-exists/9992 "2020-09-24T17:34:18Z")

</div>

wtf is going on, Im beginning to lose my mind over this issue! I’m trying to trigger a build in Travis CI from GitHub. But when I go to view the jobs in Travis CI there is nothing there for the latest commit to GitHub. …

---

## [Getting error in building java app](https://travis-ci.community/t/getting-error-in-building-java-app/13803)

<div class="topic-metadata">

**Author:** [@searce-yug](https://travis-ci.community/u/searce-yug)\
**Replies:** 0\
**Last updated:** [May 6, 2023, 11:00am UTC](https://travis-ci.community/t/getting-error-in-building-java-app/13803 "2023-05-06T11:00:04Z")

</div>

The command “mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V” failed and exited with 1 during.

---

## [Unit tests based on mockito fail with openjdk8 on Xenial](https://travis-ci.community/t/unit-tests-based-on-mockito-fail-with-openjdk8-on-xenial/13590)

<div class="topic-metadata">

**Author:** [@alt-k](https://travis-ci.community/u/alt-k)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 11:07am UTC](https://travis-ci.community/t/unit-tests-based-on-mockito-fail-with-openjdk8-on-xenial/13590 "2023-02-15T11:07:12Z")

</div>

Hi community ! Since yesterday we are having issues during Java builds on xenial environment. Our TravisCI configuration has not changed since a while. We use the openJDK 8 but some unit tests fail with the following …

---

## [Installing a specific JDK 11 environment for Maven builds](https://travis-ci.community/t/installing-a-specific-jdk-11-environment-for-maven-builds/13110)

<div class="topic-metadata">

**Author:** [@jrg](https://travis-ci.community/u/jrg)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 1:29am UTC](https://travis-ci.community/t/installing-a-specific-jdk-11-environment-for-maven-builds/13110 "2022-06-28T01:29:27Z")

</div>

I need to configure our Maven-based builds to run with a version of Open JDK 11 that fixes this Race condition in TLS 1.3 session resumption issue, triggered by at least one repository we need to access. Obviously I can…

---

## [Unable to build with jdk: openjdk16. "Couldn't determine a download url for 16-GPL on linux-x64"](https://travis-ci.community/t/unable-to-build-with-jdk-openjdk16-couldnt-determine-a-download-url-for-16-gpl-on-linux-x64/12770)

<div class="topic-metadata">

**Author:** [@FilipPerlhagen](https://travis-ci.community/u/FilipPerlhagen)\
**Replies:** 3\
**Last updated:** [March 9, 2022, 7:15am UTC](https://travis-ci.community/t/unable-to-build-with-jdk-openjdk16-couldnt-determine-a-download-url-for-16-gpl-on-linux-x64/12770 "2022-03-09T07:15:08Z")

</div>

Anyone got a workaround for “Couldn’t determine a download url for 16-GPL on linux-x64” error? My travis build is broken in .travis.yml contains: language: java jdk: - openjdk16 Travis CI log give the error: Coul…

---

## [Travis says jre is ver 11 but still won't run JAR of class file ver 55](https://travis-ci.community/t/travis-says-jre-is-ver-11-but-still-wont-run-jar-of-class-file-ver-55/11473)

<div class="topic-metadata">

**Author:** [@SolarUltima](https://travis-ci.community/u/SolarUltima)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 3:11am UTC](https://travis-ci.community/t/travis-says-jre-is-ver-11-but-still-wont-run-jar-of-class-file-ver-55/11473 "2021-04-19T03:11:58Z")

</div>

i have Python application wired up to a Travis build. After the unit test run, I need to spin up the application and then run a JAR file to complete testing. The JAR file was compiled with Java 11 and is of class file ve…

---

## [Sonarqube plugin failing due to failed export](https://travis-ci.community/t/sonarqube-plugin-failing-due-to-failed-export/7429)

<div class="topic-metadata">

**Author:** [@itmecho](https://travis-ci.community/u/itmecho)\
**Replies:** 6\
**Last updated:** [February 18, 2021, 10:48pm UTC](https://travis-ci.community/t/sonarqube-plugin-failing-due-to-failed-export/7429 "2021-02-18T22:48:01Z")

</div>

We have a build using the sonarqube addon which was working until today. It seems like travis is doing something strange when trying to decrypt a secure environment variable: https://travis-ci.org/manywho/sdk-java/jobs/…

---

## [PostgreSQL: psql: error: could not connect to server: No such file or directory](https://travis-ci.community/t/postgresql-psql-error-could-not-connect-to-server-no-such-file-or-directory/11140)

<div class="topic-metadata">

**Author:** [@lukegjpotter](https://travis-ci.community/u/lukegjpotter)\
**Replies:** 2\
**Last updated:** [February 6, 2021, 1:57pm UTC](https://travis-ci.community/t/postgresql-psql-error-could-not-connect-to-server-no-such-file-or-directory/11140 "2021-02-06T13:57:50Z")

</div>

Hello, I’m trying to get a PostgreSQL 12 Database for my build. I’ve been trying for four hours. I’ve looked at the other threads here and on StackOverFlow. But I’ve made no progress and it keeps failing. I’m using foc…

---

## [Travis CI unable to install openjdk8 when other openjdk versions are included](https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069)

<div class="topic-metadata">

**Author:** [@Johan2403](https://travis-ci.community/u/Johan2403)\
**Replies:** 2\
**Last updated:** [January 30, 2021, 6:05am UTC](https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069 "2021-01-30T06:05:08Z")

</div>

When I add openjdk11 and 15 to my build along with openjdk8 the build fails. Other versions work fine. My build: https://travis-ci.org/github/Johan2403/OPMonsters/builds/755793765 Please help me and thanks in advance. …

---

## [Excluding JDK Jobs Conditionally](https://travis-ci.community/t/excluding-jdk-jobs-conditionally/11088)

<div class="topic-metadata">

**Author:** [@volosied](https://travis-ci.community/u/volosied)\
**Replies:** 3\
**Last updated:** [January 26, 2021, 6:35pm UTC](https://travis-ci.community/t/excluding-jdk-jobs-conditionally/11088 "2021-01-26T18:35:54Z")

</div>

Hello, I’m new to Travis, and I I would like to feedback, if possible. My goal is to have all our JDK builds run during cron jobs. However, during pull requests, we would like to run only openjdk8 to run. Based on wha…

---

## [Maven fails to download dependencies - outdated repository url](https://travis-ci.community/t/maven-fails-to-download-dependencies-outdated-repository-url/10245)

<div class="topic-metadata">

**Author:** [@bartektartanus](https://travis-ci.community/u/bartektartanus)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 4:52pm UTC](https://travis-ci.community/t/maven-fails-to-download-dependencies-outdated-repository-url/10245 "2020-10-22T16:52:38Z")

</div>

I have simple Java build that looks like this: language: java and Travis build fails: \[ERROR\] Failed to execute goal on project plumber: Could not resolve dependencies for project pl.touk:plumber:jar:0.0.1-SNAPSHOT: …

---

## [Does travis script for installing another jdk still exist?](https://travis-ci.community/t/does-travis-script-for-installing-another-jdk-still-exist/9749)

<div class="topic-metadata">

**Author:** [@rhanton](https://travis-ci.community/u/rhanton)\
**Replies:** 3\
**Last updated:** [August 28, 2020, 5:41pm UTC](https://travis-ci.community/t/does-travis-script-for-installing-another-jdk-still-exist/9749 "2020-08-28T17:41:49Z")

</div>

What I’m trying to add to my Travis script is: - export JAVA\_HOME=$HOME/openjdk11 - $TRAVIS\_BUILD\_DIR/install-jdk.sh --install openjdk11 --target $JAVA\_HOME as documented at https://docs.travis-ci.com/user/languages/ja…

---

## [How can i get travis java project jar?](https://travis-ci.community/t/how-can-i-get-travis-java-project-jar/8781)

<div class="topic-metadata">

**Author:** [@HelloJavaWorld123](https://travis-ci.community/u/HelloJavaWorld123)\
**Replies:** 5\
**Last updated:** [August 26, 2020, 2:47pm UTC](https://travis-ci.community/t/how-can-i-get-travis-java-project-jar/8781 "2020-08-26T14:47:29Z")

</div>

i have a java project ,and when travis run successful (maven clean install), how can i get the jar??? and then how can I send this jar to Centos 7 server???

---

## [Installing of Java14 is failing](https://travis-ci.community/t/installing-of-java14-is-failing/9704)

<div class="topic-metadata">

**Author:** [@PeterAlfredLee](https://travis-ci.community/u/PeterAlfredLee)\
**Replies:** 1\
**Last updated:** [August 24, 2020, 2:43pm UTC](https://travis-ci.community/t/installing-of-java14-is-failing/9704 "2020-08-24T14:43:14Z")

</div>

The installing of JDK14+ is reporting error : The command “~/bin/install-jdk.sh --target “/home/travis/openjdk14” --workspace “/home/travis/.cache/install-jdk” --feature “14” --license “GPL” --cacerts” failed and exited…

---

## [OpenJDK14 started to fail](https://travis-ci.community/t/openjdk14-started-to-fail/9700)

<div class="topic-metadata">

**Author:** [@apupier](https://travis-ci.community/u/apupier)\
**Replies:** 5\
**Last updated:** [August 24, 2020, 2:42pm UTC](https://travis-ci.community/t/openjdk14-started-to-fail/9700 "2020-08-24T14:42:53Z")

</div>

se https://travis-ci.org/github/camel-tooling/camel-language-server/jobs/720554049#L163-L169 Installing openjdk14 164$ export JAVA\_HOME=~/openjdk14 165$ export PATH="$JAVA\_HOME/bin:$PATH" 166$ ~/bin/install-jdk.sh --…

---

## [The log is filled with org.apache.http.wire DEBUG messages](https://travis-ci.community/t/the-log-is-filled-with-org-apache-http-wire-debug-messages/9501)

<div class="topic-metadata">

**Author:** [@JosephThachilGeorge](https://travis-ci.community/u/JosephThachilGeorge)\
**Replies:** 19\
**Last updated:** [August 17, 2020, 1:01pm UTC](https://travis-ci.community/t/the-log-is-filled-with-org-apache-http-wire-debug-messages/9501 "2020-08-17T13:01:16Z")

</div>

Hi All, I am facing a problem while building my project in Travis.ci Below is my Travis error link https://travis-ci.org/github/JosephThachilGeorge/TDDTEST While i am running my goal " - mvn -f spring-project/pom.xml…

---

## [Error=13, Permission denied](https://travis-ci.community/t/error-13-permission-denied/9305)

<div class="topic-metadata">

**Author:** [@Prasanna-Automation](https://travis-ci.community/u/Prasanna-Automation)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 5:32am UTC](https://travis-ci.community/t/error-13-permission-denied/9305 "2020-07-15T05:32:52Z")

</div>

Facing permission when try to execute ant command to execute Spec flow tests using Nunit. https://travis-ci.com/github/Prasanna-Automation/AutomationFramework/builds/17517294 at java.base/java.lang.ProcessBuilder.start…

---

## [Chosen JDK for build is not honoured as javac and java binaries differ in versions](https://travis-ci.community/t/chosen-jdk-for-build-is-not-honoured-as-javac-and-java-binaries-differ-in-versions/3591)

<div class="topic-metadata">

**Author:** [@ottlinger](https://travis-ci.community/u/ottlinger)\
**Replies:** 2\
**Last updated:** [July 12, 2020, 1:33am UTC](https://travis-ci.community/t/chosen-jdk-for-build-is-not-honoured-as-javac-and-java-binaries-differ-in-versions/3591 "2020-07-12T01:33:58Z")

</div>

Having a build configured to run with a matrix of JDK versions I’d expect java and javac to be of the same version. Experiencing build failures in that seem to be related to the mixup of versions: $ java -Xmx32m -ve…

---

## [Installing Java 14 fails with "travis\_setup\_java: command not found"](https://travis-ci.community/t/installing-java-14-fails-with-travis-setup-java-command-not-found/8626)

<div class="topic-metadata">

**Author:** [@softwaredoug](https://travis-ci.community/u/softwaredoug)\
**Replies:** 24\
**Last updated:** [July 6, 2020, 5:01pm UTC](https://travis-ci.community/t/installing-java-14-fails-with-travis-setup-java-command-not-found/8626 "2020-07-06T17:01:17Z")

</div>

Hi, I help maintain the Elasticsearch Learning to Rank Plugin. As part of this Pull Request, we are upgrading to Elasticsearch 7.7. Part of this Elasticsearch now requires Java 14, so we updated our config to oraclejdk14…

---

## [OpenJDK 6 no longer usable](https://travis-ci.community/t/openjdk-6-no-longer-usable/9192)

<div class="topic-metadata">

**Author:** [@algarecu](https://travis-ci.community/u/algarecu)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 12:30pm UTC](https://travis-ci.community/t/openjdk-6-no-longer-usable/9192 "2020-07-02T12:30:09Z")

</div>

Builds that worked before here are now failing, does this make sense? OpenJDK 6 was used before. Not working either with newer versions now but that is a different topic. Is Travis dropping support for Open JDK 6? Pass…

---

## [JDK 14 retrieval error](https://travis-ci.community/t/jdk-14-retrieval-error/9195)

<div class="topic-metadata">

**Author:** [@apupier](https://travis-ci.community/u/apupier)\
**Replies:** 2\
**Last updated:** [July 1, 2020, 4:44pm UTC](https://travis-ci.community/t/jdk-14-retrieval-error/9195 "2020-07-01T16:44:07Z")

</div>

Since today, jobs fro JDK 14 are often failing while trying to retrieve JDK 14. the error: The command "~/bin/install-jdk.sh --target "/home/travis/openjdk14" --workspace "/home/travis/.cache/install-jdk" --feature "14…

---

## [Install-jdk.sh failing for openjdk9 and 10](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998)

<div class="topic-metadata">

**Author:** [@jayvdb](https://travis-ci.community/u/jayvdb)\
**Replies:** 29\
**Last updated:** [July 1, 2020, 11:48am UTC](https://travis-ci.community/t/install-jdk-sh-failing-for-openjdk9-and-10/3998 "2020-07-01T11:48:33Z")

</div>

Installing openjdk10 $ export JAVA\_HOME=~/openjdk10 $ export PATH="$JAVA\_HOME/bin:$PATH" $ ~/bin/install-jdk.sh --target "/home/travis/openjdk10" --workspace "/home/travis/.cache/install-jdk" --feature "10" --license "GP…

---

## [Java + wiremock: SocketTimeOut](https://travis-ci.community/t/java-wiremock-sockettimeout/9163)

<div class="topic-metadata">

**Author:** [@bmarwell](https://travis-ci.community/u/bmarwell)\
**Replies:** 2\
**Last updated:** [June 29, 2020, 9:08am UTC](https://travis-ci.community/t/java-wiremock-sockettimeout/9163 "2020-06-29T09:08:00Z")

</div>

Hi, I am using wiremock to test a restful API. For some reason, the build fails connecting to wiremock on localhost:8080 (or any other port) with this error message: Caused by: java.net.SocketTimeoutException: SocketT…

---

## [Error accessing jar: java.util.zip.ZipException: zip END header not found](https://travis-ci.community/t/error-accessing-jar-java-util-zip-zipexception-zip-end-header-not-found/9094)

<div class="topic-metadata">

**Author:** [@Tochemey](https://travis-ci.community/u/Tochemey)\
**Replies:** 2\
**Last updated:** [June 22, 2020, 10:29pm UTC](https://travis-ci.community/t/error-accessing-jar-java-util-zip-zipexception-zip-end-header-not-found/9094 "2020-06-22T22:29:59Z")

</div>

https://travis-ci.org/github/super-flat/lagom-pb/jobs/700952758 Hello geeks. There is something weird happening. I am able to locally test the application. Also when I checked the PR on travis it was good. However when …

---

## [Maven is not available for Java language on ARM64 architecture](https://travis-ci.community/t/maven-is-not-available-for-java-language-on-arm64-architecture/8163)

<div class="topic-metadata">

**Author:** [@martin-g](https://travis-ci.community/u/martin-g)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 10:40pm UTC](https://travis-ci.community/t/maven-is-not-available-for-java-language-on-arm64-architecture/8163 "2020-06-10T22:40:22Z")

</div>

According to https://docs.travis-ci.com/user/languages/java#overview when using “language: java” Maven and Gradle come pre-installed and available to use. Only Ant should be manually installed. It appears that Maven is …

---

## [Selenium passes on dev box, fails on Travis: page start’s javascript acts differently](https://travis-ci.community/t/selenium-passes-on-dev-box-fails-on-travis-page-start-s-javascript-acts-differently/8655)

<div class="topic-metadata">

**Author:** [@GregJohnStewart](https://travis-ci.community/u/GregJohnStewart)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 3:22am UTC](https://travis-ci.community/t/selenium-passes-on-dev-box-fails-on-travis-page-start-s-javascript-acts-differently/8655 "2020-05-18T03:22:28Z")

</div>

I’m having an issue where the selenium based tests I have run fine locally, but fail on Travis. Example build: https://travis-ci.com/github/GregJohnStewart/task-timekeeper/builds/166433204 Git repo: https://github.com/…

---

## [Sonar scanner is not working anymore](https://travis-ci.community/t/sonar-scanner-is-not-working-anymore/5848)

<div class="topic-metadata">

**Author:** [@berickus](https://travis-ci.community/u/berickus)\
**Replies:** 7\
**Last updated:** [April 12, 2020, 9:48pm UTC](https://travis-ci.community/t/sonar-scanner-is-not-working-anymore/5848 "2020-04-12T21:48:44Z")

</div>

Since this morning out of nowhere our CI builds are failing. We are quite puzzled why. \`https://sonarcloud.io/api/settings/values.protobuf | time=632ms 11:47:52.935 INFO: -----------------------------------------------…

---

## [Does Travis centrally cache Maven artifacts?](https://travis-ci.community/t/does-travis-centrally-cache-maven-artifacts/8011)

<div class="topic-metadata">

**Author:** [@adamretter](https://travis-ci.community/u/adamretter)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 4:27pm UTC](https://travis-ci.community/t/does-travis-centrally-cache-maven-artifacts/8011 "2020-04-06T16:27:56Z")

</div>

We have started seeing strange issues in some of our builds which were otherwise fine. \[ERROR\] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project exi…

---

## [java.lang.UnsupportedClassVersionError](https://travis-ci.community/t/java-lang-unsupportedclassversionerror/7564)

<div class="topic-metadata">

**Author:** [@amCap1712](https://travis-ci.community/u/amCap1712)\
**Replies:** 8\
**Last updated:** [March 14, 2020, 4:56am UTC](https://travis-ci.community/t/java-lang-unsupportedclassversionerror/7564 "2020-03-14T04:56:25Z")

</div>

I am trying to setup CI for https://github.com/amCap1712/pljava using Travis. But it fails with following log: find pljava-packaging -name \\\*.jar | sudo xargs java -jar Error: A JNI error has occurred, please check your…

[Next page](https://travis-ci.community/c/languages/java/46.md?page=1)
