All Questions
Tagged with openjdk-11 or java-11
3,168 questions
0
votes
0
answers
68
views
How to config bootstrapClasspath in java 11 about android studio project?
Here is android studio project app module script file(build.gradle.kts) segment:
android {
....
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
...
0
votes
0
answers
27
views
OpenEJB (for Unit-Tests) not working after Upgrade from 7 to 8
we use OpenEJB 7.0.9 for Unit-Testing with Java 8.
Now we switch our Application to Java 11 and tried to Upgrade OpenEJB to 8.0.16.
But since Version 7.1.4 and 8.0.0 (org.apache.tomee -> openejb-...
0
votes
1
answer
564
views
Error E: Package 'openjdk-11-jdk-headless' has no installation candidate when trying to install eProsima FastDDS
I've been trying to ./install.sh eprosima fastdds 3.2.0 Linux on a Raspberry Pi but running the install always returns E: Package 'openjdk-11-jdk-headless' has no installation candidate.
I've tried ...
2
votes
0
answers
63
views
Interceptor for {http://service.ws.um.carbon.wso2.org}RemoteUserStoreManagerService#{http://service.ws.um.carbon.wso2.org}isExistingUser errors
After upgrading our Spring Boot application from version 2.5.12 to 3.1, we started experiencing issues when calling both SOAP and REST APIs. Below are the details of the error we are encountering:
...
2
votes
1
answer
185
views
How to Install Java 11 with IBM WebSphere Liberty
I am trying to install IBM Liberty version 24.0.0.6 with Java 11 on an AIX server using the following command:
./imcl install com.ibm.websphere.liberty.ND_24.0.6.20240603_2002,com.ibm.java.jdk.v11_11....
-1
votes
1
answer
77
views
How to solve JDK Gradle Config error in Flutter
I tried running few flutter projects but it gives me this same error -
ashvinstech@Ashvins-MacBook-Air untitled1 % flutter run
Launching lib/main.dart on Redmi Note 7 in debug mode...
FAILURE: Build ...
0
votes
0
answers
75
views
configurable attribute "actual" in @google_protobuf3//:google-protos doesn't match this configuration
Facing below issue on bazel build on M1 Pro (MacOS - 13.6.5)
bazel build :all --config=mac64
WARNING: Option '...
0
votes
0
answers
67
views
the package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml
If I remove in build.gradle
implementation('net.sf.jodreports:jodreports:2.4.0')
the errors disappear, but I need that for my code to compile
If I use
implementation('net.sf.jodreports:jodreports:2.4....
8
votes
2
answers
1k
views
Why does “var” in Java 11 bypass the “protected” access restriction?
Today, while working on a project for a college “Design Patterns” course (Java 11 required), I discovered a problem with the access restriction of the access modifier that can be bypassed by declaring ...
0
votes
0
answers
36
views
Spring Boot 2.7, @Scheduled, ignoring initialDelay OneTime Execution Process, without using cron
I'm using Spring Boot 2.7
I would like to execute a process 120 (or another value stablished in application.yml) seconds after the microservice has started.
This is my code:
import org.springframework....
-1
votes
1
answer
54
views
Could not bind /JStatRemoteHost to RMI Registry
I am running a Java 11 app inside docker container on my machine and trying to connect it via VisualVM.
I have already added required JMX parameters in CMD instruction of my Dockerfile
-Dcom.sun....
0
votes
1
answer
150
views
At any given point how to Collect HeapDump for the running program from a pod
I've got Springboot apps which uses OpenJDK running in container and runs as pid 1. These are non root containers and imx remote enabled. I am trying to generate heap dumps on demand for these running ...
-1
votes
1
answer
1k
views
Best JDBC driver to pick for Oracle 19c and JDK 11 [closed]
The differences between the JDBC drivers supporting Oracle 19c isn't fully clear to me. I am running an application on Red Hat with OpenJDK 11.0.24 and I seem to have the following options:
Oracle ...
0
votes
1
answer
52
views
Cassandra datastax 3.11.5 compatability
I have used datastax driver 3.11.5 version to connect to cassadra instance in version 4.x .Is this compatable ?
Also when I am using EmbeddedCassandraServiceHelper from cassandra-unit version 4.3.1.0 ...
0
votes
2
answers
186
views
Understanding the difference between two Thread implementation approaches in Java?
I'm learning about Java Threads and I've encountered two different ways to create a thread. I'm not sure about the technical differences between them:
// Approach 1
Thread n = new Thread(new ...
0
votes
0
answers
227
views
MULE Custom connector With JAVA 11 Build failure
I am trying develop a Mule 4.x custom connector using JAVA Mule SDk.
The connector for which I am trying is build is only supporting JAVA 11 at the moment .Thus when I am trying to build the it via ...
-4
votes
4
answers
141
views
Using download percentage to implement Java recursion
Public class JavaRecursion {
static void downloadStatus(int percentage) {
System.out.println("download is at " + percentage + "%\n"):
downloadIncrease();
}
...
0
votes
0
answers
121
views
Class not found: Java.lang.ObjectBeanInfo
I am upgrading a project from Java 8 to Java 11 (yes, I know there's more recent). One web app uses JideSoft, and we upgraded this from 3.5 to 3.7.15. For legacy reasons, the web app does not use ...
1
vote
0
answers
47
views
migrate appengine runtime from java 8 to 11
I am trying to migrate my Java Spring MVC code from Java 1.8 to Java 11 runtime version. This code we deployed in Google AppEngine Flex environment and I need to upgrade the runtime due to recent ...
-1
votes
1
answer
6k
views
JAXB 3 on Java 11 getting "Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:2.5.0:xjc (xjc) on project: Prefix '' is already bound to ''"
I am getting the following error upon building my project in Java 11:
[INFO] Created EpisodePath [XXXX/src/main/java/META-INF/JAXB]: true
[INFO] Ignored given or default xjbSources [XXXX/src/main/xjb],...
0
votes
1
answer
375
views
Azure pipeline Java 11 Tool Installer not preinstalled
I am using the following yaml for an Azure pipeline, but getting an error. Even though that image has Java 11 installed. Any idea what I am doing wrong?
Error:
##[error]Java 11 is not preinstalled ...
1
vote
0
answers
30
views
Print List of Generic Interface in Java 11
I have this property in a class:
private final List<KafkaInterface<EventWhateverDTO>> producers;
Code of interface:
public interface KafkaInterface<T> {
void produceEvent(Map<...
0
votes
1
answer
156
views
Pure Spring Security user authentication doesn't work
I have a very simple pure Spring web application with a login page (and it shouldn't use SpringBoot). I would like to authenticate the user and after that the user could go forward to its appropriate ...
0
votes
0
answers
79
views
Spring security authorization not working
I created a pure Spring web application for learning purposes. It uses a simple database, where there are two roles: "Admin" and "User". It has a /login part where I can log in. ...
1
vote
1
answer
119
views
Overloading Constructor with Generic Class in Java 11
I'm trying to understand two constructors with some initialization like
CardboardContainer<String> n1 = new CardboardContainer<String>("Hello"); // In T constructor
...