question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation with JDK11 does not work

See original GitHub issue

steps

I’m executing

wget -q https://raw.githubusercontent.com/foundweekends/conscript/master/setup.sh -O- | sh
~/.conscript/bin/cs foundweekends/giter8

problem

While the first command works, the second one fails with:

WARNING: Illegal reflective access by org.jboss.netty.util.internal.ByteBufferUtil (file:/home/skirsch/.conscript/boot/scala-2.11.12/org.foundweekends.conscript/conscript/0.5.3/netty-3.9.2.Final.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of org.jboss.netty.util.internal.ByteBufferUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
An unexpected error occurred: Please check your internet connection.
Exception message: https://api.github.com/repos/foundweekends/giter8/git/refs/heads/master
stack trace
there is none

expectation

The installation should have worked!

notes

Installation with JDK8 works:

me@workstation:~/develop/is24-java-backend-template$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

However, we want to use giter8 on a Jenkins build agent that is only equipped with JDK11.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
ugurkoysurencommented, Jan 8, 2020

Same here, trying to execute cs foundweekends/giter8

Environments: openjdk version “11.0.5” 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)

1reaction
TonioGelacommented, Jun 7, 2021

No worries @sebastiankirsch. Btw, I tested it with openjdk docker images, in particular I used 8, 11 and 17

docker run -it --rm openjdk:{8,11,17} /bin/bash
# And then in each running container
curl -fLo cs https://git.io/coursier-cli-"$(uname | tr LD ld)"
chmod +x cs
./cs install giter8
export PATH="$PATH:/root/.local/share/coursier/bin"
g8 --version

In each of the 3, I get g8 0.13.1 as output. I’m closing it since the actually documented installation instructions are correctly working, feel free to reopen it in case of troubles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java jdk11 installation on Windows 10 problems
I have changed the environment variable (System Variables) that was set for JAVA_HOME from the path of JRE17, to my new destination path...
Read more >
Installation of the JDK on Microsoft Windows Platforms
JDK Installation Troubleshooting · Open the MS-DOS shell or command prompt window. · Right-click the title bar. · Select Properties. · Select the...
Read more >
Windows installer does not recognize installed JDK11 instances
When JDK11 is installed and appropriately configured on a Windows server, the Bitbucket installer still extracts and configures itself to use ...
Read more >
Download and Install Java 11 (OpenJDK and Oracle JDK)
Note that you must have an Oracle account to be able to download JDK 11 installer. If not, creating one is free. Run...
Read more >
How to Download and Install OpenJDK 11 on Windows 10 PC ...
This article explains how to install OpenJDK 11, without removing Oracle Java from the PC. OpenJDK (Open Java Development Kit) is a free...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found