# \#java

**URL:** https://travis-ci.community/tag/java/34.md

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

---

## [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. …

---

## [Allow custom Gradle versions to be specified in travis.yml](https://travis-ci.community/t/allow-custom-gradle-versions-to-be-specified-in-travis-yml/2751)

<div class="topic-metadata">

**Author:** [@richiksc](https://travis-ci.community/u/richiksc)\
**Replies:** 3\
**Last updated:** [February 26, 2023, 10:11pm UTC](https://travis-ci.community/t/allow-custom-gradle-versions-to-be-specified-in-travis-yml/2751 "2023-02-26T22:11:27Z")

</div>

I use Travis CI to build and deploy my Java applications. I use Gradle as my build tool, and use Java 11. Travis CI has built-in support for Java 11 through specifiying jdk: oraclejdk11, however, the minimum Gradle versi…

---

## [Hosts: feature breaks /etc/hosts file and gradle](https://travis-ci.community/t/hosts-feature-breaks-etc-hosts-file-and-gradle/13340)

<div class="topic-metadata">

**Author:** [@Aranduran](https://travis-ci.community/u/Aranduran)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 3:26pm UTC](https://travis-ci.community/t/hosts-feature-breaks-etc-hosts-file-and-gradle/13340 "2022-09-26T15:26:19Z")

</div>

Hi, We use an older version of gradle which is determined to use jcenter (which surprisingly is still around but occasionally has issues). When I updated our gradle build to have hosts: - https://jcenter.bintray.c…

---

## [Update install-jdk.sh with the new revision](https://travis-ci.community/t/update-install-jdk-sh-with-the-new-revision/12761)

<div class="topic-metadata">

**Author:** [@iamarjun](https://travis-ci.community/u/iamarjun)\
**Replies:** 18\
**Last updated:** [September 2, 2022, 3:11am UTC](https://travis-ci.community/t/update-install-jdk-sh-with-the-new-revision/12761 "2022-09-02T03:11:24Z")

</div>

The install-jdk.sh script has been updated Update install-jdk.sh · sormuras/bach@d9aa8c6 · GitHub, need to update the script on the Travis’s end also, builds depending upon JDK are not building. Installing oraclejdk11 $…

---

## [Installing OracleJDK 11 failed](https://travis-ci.community/t/installing-oraclejdk-11-failed/13050)

<div class="topic-metadata">

**Author:** [@iamarjun](https://travis-ci.community/u/iamarjun)\
**Replies:** 14\
**Last updated:** [September 2, 2022, 3:06am UTC](https://travis-ci.community/t/installing-oraclejdk-11-failed/13050 "2022-09-02T03:06:10Z")

</div>

Installing oraclejdk11 535W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty …

---

## [Arch s390x has JRE but most builds of java needs jdk](https://travis-ci.community/t/arch-s390x-has-jre-but-most-builds-of-java-needs-jdk/12143)

<div class="topic-metadata">

**Author:** [@romani](https://travis-ci.community/u/romani)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 1:18pm UTC](https://travis-ci.community/t/arch-s390x-has-jre-but-most-builds-of-java-needs-jdk/12143 "2021-09-22T13:18:27Z")

</div>

logs from build on arch s390x Setting up libsisu-plexus-java (0.3.3-3) ... Setting up libmaven3-core-java (3.6.3-1) ... Setting up default-jre-headless (2:1.11-72) ... Setting up openjdk-11-jre-headless:s390x (11.0.1…

---

## [Sdkmanager to run with Java 11](https://travis-ci.community/t/sdkmanager-to-run-with-java-11/11978)

<div class="topic-metadata">

**Author:** [@SolarUltima](https://travis-ci.community/u/SolarUltima)\
**Replies:** 3\
**Last updated:** [August 17, 2021, 6:33pm UTC](https://travis-ci.community/t/sdkmanager-to-run-with-java-11/11978 "2021-08-17T18:33:45Z")

</div>

there’s a problem while running Android sdkmanager with Java 11, i don’t want to install JDK 8 or something similar. Is there a way to fix this for Android sdkmanager with JDK 11?

---

## [Java language support in Windows](https://travis-ci.community/t/java-language-support-in-windows/10767)

<div class="topic-metadata">

**Author:** [@zubcevic](https://travis-ci.community/u/zubcevic)\
**Replies:** 4\
**Last updated:** [April 29, 2021, 10:34am UTC](https://travis-ci.community/t/java-language-support-in-windows/10767 "2021-04-29T10:34:35Z")

</div>

I would like to see the java language support for windows. https://travis-ci.org/github/zubcevic/WebGoat/jobs/747909491 I want to be able to test the build and unit test phase on linux windows and macos. As the WebGoat…

---

## [JDK 8 and Maven missing in ARM64 despite \`jdk: openjdk8\`](https://travis-ci.community/t/jdk-8-and-maven-missing-in-arm64-despite-jdk-openjdk8/11450)

<div class="topic-metadata">

**Author:** [@matthias-schn](https://travis-ci.community/u/matthias-schn)\
**Replies:** 3\
**Last updated:** [April 14, 2021, 5:13pm UTC](https://travis-ci.community/t/jdk-8-and-maven-missing-in-arm64-despite-jdk-openjdk8/11450 "2021-04-14T17:13:17Z")

</div>

I am trying to a multiarch docker container with CICD using Travis ci Travis already creates and pushed the Container into Dockerhub → but only AMD64 and I want to run it on my Raspberry either. What is the best way to…

---

## [Add artifacts built on different operating systems to a single release](https://travis-ci.community/t/add-artifacts-built-on-different-operating-systems-to-a-single-release/11390)

<div class="topic-metadata">

**Author:** [@hneemann](https://travis-ci.community/u/hneemann)\
**Replies:** 1\
**Last updated:** [April 1, 2021, 11:47am UTC](https://travis-ci.community/t/add-artifacts-built-on-different-operating-systems-to-a-single-release/11390 "2021-04-01T11:47:23Z")

</div>

In java, it has been intended for some time to ship the application together with the JVM. However, the necessary packages for different operating systems/architectures must also be built under the corresponding systems. …

---

## [Download of JDK 11 and JDK 14 times out intermittently](https://travis-ci.community/t/download-of-jdk-11-and-jdk-14-times-out-intermittently/10647)

<div class="topic-metadata">

**Author:** [@headius](https://travis-ci.community/u/headius)\
**Replies:** 1\
**Last updated:** [November 21, 2020, 3:54am UTC](https://travis-ci.community/t/download-of-jdk-11-and-jdk-14-times-out-intermittently/10647 "2020-11-21T03:54:29Z")

</div>

We have been seeing intermittent failures downloading JDK11 and JDK14 for JRuby builds. A recent failed build is here: https://travis-ci.com/github/jruby/jruby/jobs/444912309 Restarting the build usually succeeds. Ple…

---

## [AWS Graviton2 builds are slower compared to old Travis implementation](https://travis-ci.community/t/aws-graviton2-builds-are-slower-compared-to-old-travis-implementation/10240)

<div class="topic-metadata">

**Author:** [@cmccarthyIrl](https://travis-ci.community/u/cmccarthyIrl)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 4:05pm UTC](https://travis-ci.community/t/aws-graviton2-builds-are-slower-compared-to-old-travis-implementation/10240 "2020-10-22T16:05:14Z")

</div>

Hi, I’m not seeing the expected behavior of quicker build times using the new AWS Graviton implementation and im wondering if im missing something. The Graviton builds are consistently slower - please see the following…

---

## [Deploy not in parallel using a matrix on multiple OSs](https://travis-ci.community/t/deploy-not-in-parallel-using-a-matrix-on-multiple-oss/2263)

<div class="topic-metadata">

**Author:** [@lamba92](https://travis-ci.community/u/lamba92)\
**Replies:** 2\
**Last updated:** [September 22, 2020, 9:16am UTC](https://travis-ci.community/t/deploy-not-in-parallel-using-a-matrix-on-multiple-oss/2263 "2020-09-22T09:16:58Z")

</div>

I have a Kotlin multiplatform project that needs to build on Windows, OSX and Linux. Now, I want to deploy on Maven Central every time I create a release on GitHub and I managed to accomplish it (exept for Windows since…

---

## [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…

---

## [./test is a directory?](https://travis-ci.community/t/test-is-a-directory/9172)

<div class="topic-metadata">

**Author:** [@HD-901](https://travis-ci.community/u/HD-901)\
**Replies:** 9\
**Last updated:** [June 30, 2020, 5:56am UTC](https://travis-ci.community/t/test-is-a-directory/9172 "2020-06-30T05:56:52Z")

</div>

when i try to use ant test or ./test {NUMBER} it says ant test: BUILD FAILED Target "test" does not exist in the project "Disguises". Total time: 0 seconds The command "ant test" exited with 1. ./test: /home/travis/…

---

## [Transfer failed for maven central storage](https://travis-ci.community/t/transfer-failed-for-maven-central-storage/9139)

<div class="topic-metadata">

**Author:** [@knastnt](https://travis-ci.community/u/knastnt)\
**Replies:** 3\
**Last updated:** [June 28, 2020, 12:40pm UTC](https://travis-ci.community/t/transfer-failed-for-maven-central-storage/9139 "2020-06-28T12:40:33Z")

</div>

Hello, We’ve had problems with Maven dependencies failing to be retrieved from Maven Central. \[INFO\] Downloading from google-maven-central: https://maven-central.storage-download.googleapis.com/maven2/org/apache/maven/…

---

## [Installig openjdk8 fails with “travis\_setup\_java: command not found”](https://travis-ci.community/t/installig-openjdk8-fails-with-travis-setup-java-command-not-found/8651)

<div class="topic-metadata">

**Author:** [@GhostNA](https://travis-ci.community/u/GhostNA)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 1:50am UTC](https://travis-ci.community/t/installig-openjdk8-fails-with-travis-setup-java-command-not-found/8651 "2020-05-18T01:50:52Z")

</div>

Configuration .travis.yml language: java jdk: - openjdk8 sudo: required services: - docker cache: directories: - "$HOME/.gradle/caches/" - "$HOME/.gradle/wrapper/" install: - sudo pip install --quiet ansible=…

---

## [Use (latest) Java point versions from Ubuntu packages, instead of hard-coding old fix versions from java.net in install-jdk.sh](https://travis-ci.community/t/use-latest-java-point-versions-from-ubuntu-packages-instead-of-hard-coding-old-fix-versions-from-java-net-in-install-jdk-sh/8518)

<div class="topic-metadata">

**Author:** [@vorburger](https://travis-ci.community/u/vorburger)\
**Replies:** 1\
**Last updated:** [May 9, 2020, 7:40am UTC](https://travis-ci.community/t/use-latest-java-point-versions-from-ubuntu-packages-instead-of-hard-coding-old-fix-versions-from-java-net-in-install-jdk-sh/8518 "2020-05-09T07:40:14Z")

</div>

See https://travis-ci.community/t/old-java-version-in-bionic/4726 for background. The way you install (recent) JDKs from in install-jdk.sh by downloading from java.dev with fixed versions seems not so great, to me. Why…

---

## [Build randomly using jdk 13](https://travis-ci.community/t/build-randomly-using-jdk-13/5636)

<div class="topic-metadata">

**Author:** [@Parth](https://travis-ci.community/u/Parth)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 6:29am UTC](https://travis-ci.community/t/build-randomly-using-jdk-13/5636 "2020-04-30T06:29:29Z")

</div>

https://travis-ci.com/lockbook/lockbook-dev-desktop/jobs/248527996#L4726/13 config clearly states java 11, builder uses java 13, causes build failure, see worker information for more details.

---

## [Build randomly using jdk 13 despite osx\_image: xcode10.1](https://travis-ci.community/t/build-randomly-using-jdk-13-despite-osx-image-xcode10-1/6085)

<div class="topic-metadata">

**Author:** [@jcharlet](https://travis-ci.community/u/jcharlet)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 6:18am UTC](https://travis-ci.community/t/build-randomly-using-jdk-13-despite-osx-image-xcode10-1/6085 "2020-04-30T06:18:00Z")

</div>

Hi, having the same issue as https://travis-ci.community/t/build-randomly-using-jdk-13/5636 but I do specify osx\_image: xcode10.1 as suggested there. xcode10.1 provides jdk 13 instead of 11 as per https://docs.travis-c…

---

## [Start jetty 9 in travis.yml file](https://travis-ci.community/t/start-jetty-9-in-travis-yml-file/8372)

<div class="topic-metadata">

**Author:** [@wdidada](https://travis-ci.community/u/wdidada)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 10:34am UTC](https://travis-ci.community/t/start-jetty-9-in-travis-yml-file/8372 "2020-04-28T10:34:52Z")

</div>

java -jar jetty-distribution-9.4.28.v20200408/start.jar --add-to-startd=http,deploy jetty.port=8080 java -jar jetty-distribution-9.4.28.v20200408/start.jar jetty.port=8080 & after above command terminal will stop and…

---

## [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…

---

## [Zulu JDK 7 availability to replace OpenJDK](https://travis-ci.community/t/zulu-jdk-7-availability-to-replace-openjdk/7884)

<div class="topic-metadata">

**Author:** [@elharo](https://travis-ci.community/u/elharo)\
**Replies:** 0\
**Last updated:** [March 29, 2020, 2:57pm UTC](https://travis-ci.community/t/zulu-jdk-7-availability-to-replace-openjdk/7884 "2020-03-29T14:57:43Z")

</div>

Our CI is failing on Java 7 due to an SSL cert issue. Not too surprising. OpenJDK7 is very out of date n such things. Could you make the Zulu Java 7 JDK available, which shouldn’t have this problem? Thanks.

---

## [Python: os.system() shell has different java version than the travis build environment](https://travis-ci.community/t/python-os-system-shell-has-different-java-version-than-the-travis-build-environment/7732)

<div class="topic-metadata">

**Author:** [@patrick-werner](https://travis-ci.community/u/patrick-werner)\
**Replies:** 3\
**Last updated:** [March 23, 2020, 10:46am UTC](https://travis-ci.community/t/python-os-system-shell-has-different-java-version-than-the-travis-build-environment/7732 "2020-03-23T10:46:56Z")

</div>

In a travis build environment: language: java dist: xenial jdk: - openjdk13 script: - java -version - script.py The first java -version outputs JDK13, but when using os.system(java -version) inside the python scr…

---

## [C3P0 failed to connect to SQL Server on Docker](https://travis-ci.community/t/c3p0-failed-to-connect-to-sql-server-on-docker/7591)

<div class="topic-metadata">

**Author:** [@ron190](https://travis-ci.community/u/ron190)\
**Replies:** 3\
**Last updated:** [March 17, 2020, 8:43pm UTC](https://travis-ci.community/t/c3p0-failed-to-connect-to-sql-server-on-docker/7591 "2020-03-17T20:43:59Z")

</div>

Hello, I’m used to connect to multi tenants databases MySQL, H2 and PostgreSQL on Travis CI through connection pool C3P0 with Hibernate. My test suites are stable and I have encountered no problem with these databases,…

---

## [Use both Python and sbt](https://travis-ci.community/t/use-both-python-and-sbt/7227)

<div class="topic-metadata">

**Author:** [@lucagiovagnoli](https://travis-ci.community/u/lucagiovagnoli)\
**Replies:** 0\
**Last updated:** [February 13, 2020, 7:49pm UTC](https://travis-ci.community/t/use-both-python-and-sbt/7227 "2020-02-13T19:49:31Z")

</div>

---

## [JAVA\_HOME is not exported for arm64 architecture](https://travis-ci.community/t/java-home-is-not-exported-for-arm64-architecture/6993)

<div class="topic-metadata">

**Author:** [@martin-g](https://travis-ci.community/u/martin-g)\
**Replies:** 8\
**Last updated:** [January 28, 2020, 9:09pm UTC](https://travis-ci.community/t/java-home-is-not-exported-for-arm64-architecture/6993 "2020-01-28T21:09:31Z")

</div>

I see a strange behavior that I believe is a bug. If I use the following config: language: java jdk: oraclejdk11 install: - echo $JAVA\_HOME - false then the outcome is: $ java -Xmx32m -version openjdk versi…

---

## [\[Maven\] Maven Central repository restricted communication via HTTPS only which breaks the stock settings.xml](https://travis-ci.community/t/maven-maven-central-repository-restricted-communication-via-https-only-which-breaks-the-stock-settings-xml/6900)

<div class="topic-metadata">

**Author:** [@Tamas](https://travis-ci.community/u/Tamas)\
**Replies:** 7\
**Last updated:** [January 21, 2020, 2:34pm UTC](https://travis-ci.community/t/maven-maven-central-repository-restricted-communication-via-https-only-which-breaks-the-stock-settings-xml/6900 "2020-01-21T14:34:27Z")

</div>

Hi! As of January 15, 2020 the Maven Central repository is only accessable via HTTPS protocol only. Not sure if this is a common problem in Travis CI or something went wrong in our build but some of our maven modules we…

---

## ["Expected feature release number in range of 9 to 12, but got: 8" installing oraclejdk8](https://travis-ci.community/t/expected-feature-release-number-in-range-of-9-to-12-but-got-8-installing-oraclejdk8/1345)

<div class="topic-metadata">

**Author:** [@IEnoobong](https://travis-ci.community/u/IEnoobong)\
**Replies:** 16\
**Last updated:** [January 2, 2020, 2:45am UTC](https://travis-ci.community/t/expected-feature-release-number-in-range-of-9-to-12-but-got-8-installing-oraclejdk8/1345 "2020-01-02T02:45:39Z")

</div>

I suddenly start getting this error Expected feature release number in range of 9 to 12, but got: 8 The command “~/bin/install-jdk.sh --target “/home/travis/oraclejdk8” --workspace “/home/travis/.cache/install-jdk” --…

---

## [JAVA\_HOME on macOS not set (OpenJDK/Java 13)](https://travis-ci.community/t/java-home-on-macos-not-set-openjdk-java-13/6590)

<div class="topic-metadata">

**Author:** [@sormuras](https://travis-ci.community/u/sormuras)\
**Replies:** 0\
**Last updated:** [December 22, 2019, 4:47am UTC](https://travis-ci.community/t/java-home-on-macos-not-set-openjdk-java-13/6590 "2019-12-22T04:47:10Z")

</div>

Seems like JDK 13 is the default JDK on MacOS – install-jdk.sh is not invoked by Travis CI on that configuration. Compare the output to the other ones of MacOS: 11: https://travis-ci.org/forax/pro/jobs/628128983#L54 – 1…

[Next page](https://travis-ci.community/tag/java/34.md?match_all_tags=true&page=1&tags%5B%5D=java)
