Questions tagged [java-11]
Use this tag for questions specific to Java 11, which is version 11 of the Java platform, released on 25 September 2018. In most cases you should also specify the java tag.
2,882
questions
0
votes
0
answers
18
views
Gradle plugin - Different Java version for sub project
This is regarding multi module gradle project and JDK version support.
We have a common module(Commons) where we have a custom plugin along with other utilities which used to keep restrictions on the ...
0
votes
0
answers
21
views
JAXB Problem w. Java 11: ClassNotFoundException: org.glassfish.jaxb.runtime.v2.ContextFactory after jlink
I have a modular Java / JavaFX, both Version 19 project in Eclipse. I use Maven to build the project. This project uses JAXB. The project runs fine within Eclipse if I use "clean javafx:run" ...
-2
votes
2
answers
55
views
why does the code work within main but not the class java swing [closed]
Cant seem to understand why the import doesnt work within the class
import javax.swing.*;
public class Main {
public static void main(String[] args) {
JFrame frame = new JFrame("Test&...
0
votes
0
answers
23
views
gitlab.com CI/CD pipeline setup: where is my JAR artifact? [closed]
I setup a gitlab CI/CD build - pipeline: where is my JAR build - artifact? There is only a "job.log" file for the successful build.
Any ideas appreciated!
test steps:
setup CI/CD pipeline ...
0
votes
0
answers
48
views
Java 8 to 11 error - NoClassDefFoundError: Could not initialize class sun.security.pkcs.SignerInfo
I'm migrating Java code repository from Java 8 to Java 11 and my application keeps failing due to the following error.
I tried searching for the solution online, but didn't find any help resources ...
-2
votes
0
answers
49
views
Where can I download a supported IBM JDK for Windows Server OS? [closed]
I'm trying to move away from Oracle's JDKs due to licensing issues -- namely that we have to pay for it and my org would like to avoid that if possible. The only other supported JVM for the software ...
-1
votes
0
answers
24
views
bare minimum docker image from scratch with glibc and all it dependencies
is there a way to extend a bare minimum docker image(scratch) with glibc and openjdk and all their dependencies?
currently there are alot of information about building an image from a go or c program ...
-1
votes
0
answers
13
views
import java.sql.Connection; DOES NOT WORK
importing (import java.sql.Connection;) in NetBeans, shows the message: "Connection is already defined in this compilation unit"
In JDK 11 does not appear java.sql too.
enter image ...
0
votes
0
answers
28
views
> Could not determine the dependencies of null. Could not resolve com.android.tools.build:gradle:8.1.1
I am trying to create a new project on react native with react-native cli but I wonder why this exception is being thrown(I assume has to do with the JDK being used or something similar)
the exception ...
2
votes
3
answers
77
views
How do java.exe execute a java source code?
When I had only HelloWorld.java in the directory without HelloWorld.class, java HelloWorld in Windows cmd raised a class not found exception. However, java HelloWorld.java was executed properly ...
1
vote
1
answer
49
views
Is it possible to implement a generic repository for an abstract entity?
I have been messing with java generics and spring-boot and I'm trying to implement the following, but I'm not happy with the solution that I achieved for now
Let's say it that I have two entities: Cat ...
0
votes
0
answers
18
views
Apache James: mail server How To
I'm really struggling in the installation of Apache James 3 on CentOS 8 Stream.
I'd like to have a mail server with GUI for administration and webmail. Is Apache James right for this? I've seen that ...
1
vote
1
answer
25
views
Java-11 Profiling
I want to do profiling for the Java-11 Spring hibernate application especially measure the time taken by each method, hibernate queries.
I did tried profiling using intellj but the flame graph dint ...
0
votes
0
answers
12
views
JPA eclipselink 3.0 implementation not working with java 11 and giving java.lang.IncompatibleClassChangeError
I am using java and eclipselink implemetation of JPA in my project,
I need to upgrade my app from java 8 to java 11, so based on recommendation of official website eclipselink, upgraded eclipselink to ...
0
votes
1
answer
22
views
Deploying Geoserver War 2.23.2 on jboss EAP 7.4
Hi guys im trying to deploy a geoserver war 2.23.2 on my jboos 7.4 with java 11
i currently deploy with success geoserver war 2.19.2 using jboss 7.4 with java 11
i getting this error when i try to ...
0
votes
0
answers
36
views
Unable to Build maven project after upgrading to java11
We are using a maven project that has the below dependencies
<dependency>
<groupId>net.tascalate.javaflow</groupId>
<artifactId>net....
0
votes
0
answers
76
views
Is there a way to install OpenJDK Java in Amazon Linux 2023?
In the process of trying out a switch to Amazon Linux 2023 from Centos7 and I am trying to understand my options for Java.
I am currenly running Java 11 openjdk in Centos7. Ideally I'd like to match ...
-2
votes
0
answers
36
views
Difference between var in Java 11 and traditional type declarations [duplicate]
I've been exploring Java 11 and came across the var keyword, I noticed there's a var keyword, How does it differ from traditional type declarations?
// Using var
var list = new ArrayList<String>(...
0
votes
0
answers
26
views
Why does junit behavior change when moving from java 8 to java 11 without changing junit version?
> gradlew -version
------------------------------------------------------------
Gradle 4.10.3
------------------------------------------------------------
Build time: 2018-12-05 00:50:54 UTC
...
0
votes
1
answer
41
views
The warning happens when starting Payara 6 Micro: An illegal reflective access operation has occurred
I am using the latest version of payara-micro-6.2023.8 with openjdk 11.0.20.1 inside of a docker container. When starting the server I get the following warning:
WARNING: An illegal reflective access ...
0
votes
0
answers
19
views
Jboss migration application issues
iam doing migrating from jdk 8 to 11 and jboss 6.4 to 7.4 ,
after migrating standalone.xml,getting below deployment errors.can anyone help with solutions
[stderr] (Finalizer) javax.net.ssl|DEBUG|03|...
-1
votes
0
answers
12
views
Jenkins Bitbucket Conjur Secret Credentials getting An internal error occurred during form field validation (HTTP 500)
I was integrated Bitbucker Server plugin in Jenkins , then after selected Pipeline SCM Bitbucket instance repository project name and repository name empty throwing error like "An internal error ...
0
votes
1
answer
65
views
Is there an alternative to --add-opens command line parameters for just ported applications to a newer Java?
Is there an alternative to --add-opens command line parameters for just ported applications to a newer Java?
To make our venerable monolithic application make to run on Java 11 and Java 17, I had to ...
0
votes
0
answers
28
views
Jenkins Pipeline SCM Bitbucket Credentials getting An internal error occurred during form field validation (HTTP 500)
I integrated Jenkins with the Bitbucket-Server plugin. When I was choosing Bitbucket Conjur Secret Credentials then I got an error like "An internal error occurred during form field validation (...
0
votes
0
answers
22
views
garbage collection batch job jvm arguments
We have following jvm arguments while running batch jobs. These arguments are specific to ibm jdk 8. What are the corresponding variables for open jdk 8?
<jvmSettings>
<maxMemorySize>6144m&...
0
votes
0
answers
18
views
Load all the classes from specific package
I need to retrieve classes from package.
Which Class or interface from Jdk11 could I use to load my classes?
I tried :
Class loader.getSystemClassLoader().getDefinedPackages();
It is not possible to ...
0
votes
2
answers
83
views
Updating JDK/OpenJDK on WSL2 to use with IntelliJ and versions questions
I followed IDEA's guide to use WSL2 with IntelliJ and the version that was installed on the WSL was OpenJDK 11.
Since we're about to receive JDK 21, I wonder if there's a more updated version which I ...
0
votes
1
answer
19
views
Thymeleaf th:each noting include din template
I have a Thymeleaf fragment which contains some status text and an th:each which does not appear in the output.
I have been able to include the model value in the output its a list<list> and is ...
0
votes
0
answers
22
views
Mutinity with CompletableFuture throws an Exception that was losts
I'm using quarkus and i trying to call in asynchronous and reactive mode (using Mutinity) a CompletableFuture, which invokes parallel tasks inside it, calls to a remote rest api endpoint. I get an ...
0
votes
0
answers
26
views
Error: JavaFX runtime component is missing and needs to be used to run this application
jdk:17.0.8 Mave:3.8.8
I want to use GraalVM to package the native image, see GraalVM website
Use the "native image-jar App.jar" command easy to generate a native image.
The premise is that ...
-1
votes
0
answers
47
views
Error (Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: argument type mismatch) (javaFx 17, java 11)
I coded a button in my project to trigger a method that generates multiple anchor panes on a parent anchor pane and displays database information on the label nodes in each of the generated anchor ...
0
votes
0
answers
40
views
Jhipster[5.x.x] project upgrade jdk-8 to jdk 11
I want to upgrade my 5 years old jhipster project with the latest changes by updating ,
spring boot - 2.0.4.RELEASE
jdk 8
jhipster-dependency - 2.0.15
firebird - 3.0.9 [does not support jdk 17]
my ...
5
votes
1
answer
167
views
About project Lombok's future [closed]
I've been using Lombok and am pretty happy with it, enabling my laziness to avoid writing boilerplate code. But there have been some concerning information about Lombok like:
I read here that Lombok ...
2
votes
0
answers
67
views
Java 11 - Could not find or load main class
I am working on a project which used the Jetty server. It uses a framework built on the top of Spring.
This project was running fine with Java 1.8. But when I changed Java version 11, the Jetty server ...
-3
votes
1
answer
72
views
Problems when comparing Strings using the "==" operator (Java 11) [duplicate]
I'm a newbie to Java. Now I'm studying "==" operator with String.
I know that in java, string literals are stored in String Pool in Heap area to achieve immutability and memory saving. And I ...
1
vote
2
answers
50
views
HttpClient Object in Java 11 OpenJDK
I'm using Java 11 HttpClient to send request to a remote server.
I wanted to know if there is a difference on the HttpClient object when creating object in below 2 different ways
HttpClient client = ...
0
votes
0
answers
25
views
NetBeans12 Ant Application: JDK 11: JAX-WS; Provider com.sun.xml.internal.ws.spi.ProviderImpl not found
I am upgrading javax to Jakarta jar's to provide support for the latest Java versions. But when I tried to work with SOAP web services in JDK 11 I get a "...ProviderImpl not found." ...
0
votes
1
answer
46
views
Apache Tomcat is not responding - Unsupported target VM
I have java 11 project and using Apache Tomcat 10.
openjdk version "11.0.19" 2023-04-18 LTS
OpenJDK Runtime Environment Corretto-11.0.19.7.1 (build 11.0.19+7-LTS)
OpenJDK 64-Bit Server VM ...
0
votes
0
answers
18
views
Unable to profile non-responsing JVM application
We have an IDE based on eclipse. Sometimes the Application goes to not responding state for more than 30 minutes.
During this non-responding state, if I try of profile using JMissionControl or ...
0
votes
0
answers
92
views
"The package ***** is accessible from more than one module: <unnamed>, java.xml" error only when deploying feature but not in code
I'm trying to export a deployable feature for my eclipse program, every time I try to export it with jdk17 which we're just upgrading to I get the "The package *********** is accessible from more ...
0
votes
0
answers
31
views
Spring-WebClient: What is the right way to handle the block method when an exception is presented?
I have this code for this for overloaded methods:
public static <R, S> R executeRetrieveCall(WebClient webClient, HttpMethod httpMethod,
URI uri, ...
0
votes
1
answer
82
views
Java code giving javax/activation/MimeTypeParseException when using openjdk11
Below is the code
package TestPackage;
import com.ice.tar.TarArchive;
import com.ice.tar.TarEntry;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import ...
0
votes
0
answers
35
views
Facing this error while migrating from JRE8 to JRE11 in Eclipse 2019
There are two packages client and infra. Infra is built using jdk11 where as client in built using jdk8. The client is importing a nmc dictionary class which is present in infra. But the following ...
1
vote
0
answers
47
views
Static method exists( sun.nio.fs.WindowsPath, java.nio.file.LinkOption ) not found in class'java.nio.file.Files'
I am working in Java 11.0.11 with Amazon Corretto.
This code is running in a beanshell file as part of an identity governance system.
I am trying to use java.nio methods with Windows network paths.
I ...
1
vote
0
answers
14
views
How to make Cirrus CI use Java 17 to support Gradle 8
I wanted to upgrade my Android Studio project to use Gradle 8 and am using Cirrus CI for this project. However, when running the tests after having upgraded, Cirrus tells me that Java 17 is required ...
0
votes
0
answers
27
views
error 'using JAVA_HOME while Logstash distribution comes with a bundled JDK \IBM was unexpected at this time.' when trying to start logstash on my pc
I'm trying to start logstash on my machine, but got below error
C:\Users\xxx\Tool\logstash-7.13.3\bin>logstash -f ../test_cyrark_proxy.conf
"test"
Using JAVA_HOME defined java: "C:\...
1
vote
1
answer
128
views
The following packages have unmet dependencies "openjdk-8-jdk" when installing google-cloud-sdk-pubsub-emulator on Kali Linux
I want to install the package "google-cloud-sdk-pubsub-emulator" on Kali Linux.
However, the error logs happen The following packages have unmet dependencies and Unable to correct problems, ...
0
votes
1
answer
48
views
@PostConstruct on parametrised bean
I have parametrised interface and parametrised class that implements this interface. Than I inject this class into 3 services and set typeParameterClass in @PostConstruct method. 2 classes return ...
1
vote
2
answers
63
views
Using Lambda function to transform a set of string to a set of object
I am new in Java Lambda function, so the question probably is very simple.
I have an entity class and using Lombok:
@Entity
@Data
public class Product {
@Id
@GeneratedValue(strategy = ...
0
votes
1
answer
78
views
How to debug a Google App Engine app with Java 11
Google is deprecating Java 8 on Google App Engine. There seems to be no support for IDEs in moving to Java 11. The Google Cloud plugin for Eclipse is no longer supported. Google says Google Cloud ...