Questions tagged [openjdk-11]

Open JDK 11 is the open-source reference implementation of version 11 of the Java SE Platform as specified by by JSR 384 in the Java Community Process.

251 questions
0
votes
0 answers

Trying to run a java command in Ubuntu and it throws the exceeded heap size error. How do I run in 64 bit mode? -d64 doesn't work

On Ubuntu java -XshowSettings:vm throws: VM settings: Max. Heap Size (Estimated): 1.00G Using VM: OpenJDK Server VM I tried editing /etc/profile as in another post to no avail java -version throws: openjdk version "11.0.7" 2020-04-14 OpenJDK…
Owen
  • 23
  • 5
0
votes
1 answer

Gradle bootrun fail with openjdk 11

Operating system - Windows 10 Java version: openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode) gradle…
Shivraj
  • 462
  • 2
  • 9
  • 27
0
votes
0 answers

QName is accessible from more than one module - OpenJDK 11?

I have a QName reference problem in my project in eclipse, using JDK 11. The package org.w3c.dom is accessible from more than one module: , java.xml I have looked for all class references, and if you can help me with this…
Junior
  • 1
0
votes
1 answer

How can i exclusively lock files in Windows 10 with Java (openjdk 11)?

I am trying to exclusively lock a file in Windows 10 with openjdk 11 but it does not work as intended. It should guarantee that as long as the lock is in place, no process but my own should be able to edit/delete/... the file. I searched for…
mamayr
  • 31
  • 4
0
votes
0 answers

Web Start in Netbeans11 Ubuntu

I use netbeans 11 with openjdk 11 in Ubuntu 18.04 LTS. I want to run applet program, even though it is deprecated, it is part of my college assignment ☹️ I know that to run applet, you need jdk7/8/older, but previously in Eclipse & IntelliJ I was…
curious_mind
  • 189
  • 1
  • 9
0
votes
1 answer

com sun tools jar not found even if it exists in openjdk 11 lib folder

In my openjdk 11 lib folder i have placed tools.jar C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\lib\tools.jar. But while building project with mvn install command i get the following error Could not find artifact com.sun:tools:jar:1.8 at…
mahfuj asif
  • 1,691
  • 1
  • 11
  • 32
0
votes
1 answer

Amazon Corretto 11 not included jFX

I have download open jFX 11.0.2 version (JavaFX Windows SDK) and Corretto 11. Is there any way to integrate it into Corretto 11 JDK?
0
votes
1 answer

How to read value of java annotation with JDK8 and JDK11?

How to read value of java annotation with JDK8 and JDK11? import io.cucumber.java.en.When; public class Sof { private static final Logger log = LoggerFactory.getLogger(Sof.class); @When(value = "I update text {string} with…
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
0
votes
0 answers

OpenJDK11 and JiBX

Why do I get error below using OpenJDK11, Spring 5.2.3 and JiBX bcel-6.4.1.jar, jibx-bind-1.1.6.jar, jibx-run-1.1.6.jar Invocation of init method failed; nested exception is java.lang.VerifyError: Expecting a stackmap frame at branch target…
minh
  • 1
0
votes
1 answer

How to have same slf4j log with JDK8 and JDK11 (with String.format inside)?

How to have same slf4j log with JDK8 and JDK11? My java Slf4j logger: log.info("---> {} {}", "When", String.format(matcher.group(1).replaceAll("\\{\\S+\\}", "{%s}").replace("(\\?)", ""), invocation.getArguments())); My trace in java 8 by JDK8: --->…
Stéphane GRILLON
  • 11,140
  • 10
  • 85
  • 154
0
votes
1 answer

HttpMethodDirectory executeWithRetry and SSLProtocolException in Java

I am using httpclient-3.0 library to parse data to cloud. When I run the application on my local machine (Windows 10), it works fine and the data gets parsed to the server and I receive success response, but when I deployed it on our server which…
0
votes
2 answers

Strange error in my java code with httpconnection

I write this code: import java.net.HttpURLConnection; import java.net.URL; public class Main{ private static HttpURLConnection connection; public static void main(String[] args){ final URL url = new URL (spec:…
0
votes
1 answer

How can I add external libraries in jdk-11?

I want to compile a java code that using servlet with javac command. So I need to add servlet-api.jar into jdk-11 to compile it.
DeoBelbert
  • 13
  • 6
0
votes
1 answer

Maven - Exclude a specific dependency using build profile

Based on JDK11 restructuring of tools.jar I was trying to exclude it from a POM dependency as follows exclude-if-jdk11 11
ha9u63a7
  • 6,233
  • 16
  • 73
  • 108
0
votes
2 answers

derby database create=true on debian 10

On creating a new database with ij of derby db I got an SQL Error, but no entry within derby.log. No mean to correct the error, hence I set up an new default installation of debian 10 within a virtual machine. With apt-get I added jdk 11. I…
juerg
  • 381
  • 4
  • 18