Questions tagged [adoptopenjdk]

AdoptOpenJDK is a community of Java User Group (JUG) members, Java developers and vendors with the purpose of producing high-quality runtimes and associated technology for use within the Java ecosystem. The Eclipse Adoptium project is the continuation of the original AdoptOpenJDK mission.

106 questions
2
votes
1 answer

JNI_CreateJavaVM fails with Adopt OpenJDK 11.0.8

Our 64 bit C program instantiates a JVM using JNI. Currently we are using Adopt Open JDK 8.0.1920.12 and everything works fine. Now we are trying to migrate to Adopt Open JDK 11.0.8.0. When using that one, JNI_CreateJavaVM always returns -1. What I…
Michael
  • 43
  • 3
2
votes
1 answer

Unable to debug Junit test anywhere

I tried debugging a junit test in STS (Spring Tool Suite). When I try to perform 'step-into' in any method of the class under test object I get com.sun.jdi.InternalException: Got error code in reply:35 occurred retrieving 'this' from stack…
Nishant Ingle
  • 397
  • 4
  • 8
2
votes
0 answers

Purpose of AdoptOpenJDK jdk-slim vs jre?

I wonder what is the use case for jdk-slim docker image? In which cases should I use jdk-slim instead of jre? Are there any well-known issues (e.g. some monitoring tools are not working on jre?)
pixel
  • 21,352
  • 30
  • 113
  • 196
2
votes
1 answer

Maven compile failure using OpenJ9 with Lombok

I would like to ask help of community. I made an experiment to change jvm to Eclipse OpenJ9 VM AdoptOpenJDK from Oracle Hotspot. I created a simple spring boot application but I got an error in compile time. java -version: openjdk version "13"…
Gabor Szabo
  • 165
  • 3
  • 11
2
votes
1 answer

Deployment issue with IntelliJ when moved to open-jdk 8u212

We recently migrated our systems to open-jdk from oracle jdk. When I tried deploying my war application, Facing some issues with the same. C:\Softwares\apache-tomcat-8.0.24\bin\catalina.bat run [2019-06-14 05:19:12,449] Artifact expresso:war…
R.B.
  • 389
  • 3
  • 16
2
votes
2 answers

Where is the Rhino javascript JSR-223-wrapper for use in JDK8?

My purpose is to have a JSR-223 javascript engine available in the AdaptOpenJDK 8 VM. So i thought to use the already familiar Rhino. The OpenJDK wiki document…
Houtman
  • 2,647
  • 2
  • 19
  • 28
2
votes
0 answers

Does ZGC use more shared memory?

Why does the JVM process using ZGC of OpenJDK 11 on CentOS within Docker use huge shared memory? Server: 2 cores/4G memory; VIRT: 17.032t, RES: 7.974g, SHR: 7.382g, %CPU: 26.9, %MEM: 199 JVM parameters: -Xmx3296m -Xms1977m…
Spike Liu
  • 43
  • 4
1
vote
0 answers

Release version 11 not supported while using Gradle on MacOS with AdoptOpenJDK 11

When running gradle build (that works for other developers in my team) I'm getting: Execution failed for task ':compileJava'. > error: release version 11 not supported This is with installation of AdoptOpenJDK11 on MacOS. java -version openjdk…
Krešimir Nesek
  • 4,642
  • 4
  • 23
  • 52
1
vote
1 answer

Is there a difference in how AdoptOpenJDK and AzulOpenJDK handle new File("version")?

I have the below in my build.gradle file static def getVersionName() { return new File("version").getText().trim() } When I use AdoptOpenJDK, it compiles well. However, when I use AzulOpenJDK, it complains: * What went wrong: A problem occurred…
Elye
  • 30,821
  • 26
  • 115
  • 272
1
vote
1 answer

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/policytool" (-1)

How to resolve the following problem? $ policytool Unable to locate an executable at "/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/policytool" (-1) $ OS: Mac Update: It works for JDK1.8.0_181 but not for JDK15
Beginner
  • 65
  • 6
1
vote
1 answer

latest AdoptOpenJDK cannot compile Java 8 Maven project

I had not developed Java in 10 years and needed to quickly compile a plugin project written with Java 8 features. I downloaded the latest JDK (AdoptOpenJDK 16) and installed it on my MacOS development machine. Looking at the POM file for the…
Taterhead
  • 4,845
  • 2
  • 23
  • 35
1
vote
0 answers

Gradle falsely determines Jar task UP-TO-DATE

I recently got a peculiar problem when developing a hobby project in Java together with three friends. We are all using Adopt OpenJDK 15, Netbeans 12.1, and Gradle 6.8. The project is a Gradle multi-project build consisting of several projects, of…
chrillof
  • 137
  • 11
1
vote
1 answer

Is Java RMI doesnt work traditional way with AdoptJDK Openj9 JVM?

I am trying to start a simple RMI server with AdoptOpenJDK's OpenJ9 JVM but, the program exits with no error/exception and the RMI server doesn't start. Exact same program works with AdoptOpenJDK's HotSpot JVM and other oracle variants. Sample…
ladybug
  • 9
  • 4
1
vote
0 answers

OpenJDK 11: class not found error com.sun.java.swing.plaf.windows.WindowsLookAndFeel (linux)

We have a desktop based swing app running fine with oracle jdk1.8. After moving to openjdk11 we got some not found exceptions for classes com.sun.java.swing.Painter, we resolved that by generating a bundle jar which contains some classes of…
benchpresser
  • 2,027
  • 1
  • 15
  • 32
1
vote
0 answers

AdoptOpenJDK apt-get update fails with error "Unknown date format Bad header data"

I am trying to install AdoptOpenJDK Java version 8 with OpenJ9 as the JVM on Debian 10.4. I used these instructions to install it. But when i do sudo apt-get update to refresh my package list I recieve this error: Err:6…
Gregyyy
  • 26
  • 2
  • 3