I have the following method: private static Class<?> classForName(final String classNameToIgnore) { try { return TypeAnyHelper.class.getClassL
I am new to Java, I have want to starts 02 thread to increase an attribute of an object and I want to print out the value of this attribute until it reach a cer
I am trying to match a multi line text using java. When I use the Pattern class with the Pattern.MULTILINE modifier, I am able to match, but I am not able to do
My dockerfile looks something like this: FROM maven:3-jdk-11-slim COPY pom.xml . COPY src src RUN mvn clean install That means that part of the build is the
This is not your usual "my breakpoints don't work" question. Consider the following code: Runnable runnable = new Runnable() { @Override public void run()
I am writing code in java with selenium- In my code binary.startprofile is not working. it is saying startprofile is not present in selenium-jar file. I even tr
I need to change the ecs-bucket in VCAP_SERIVCE environment variable with new bucket name and secrete key. However, when I add VCAP_SERVICE variable, cloud foun
In this code, we have to add a method set() which will take two parameters, an int index, and an Integer value, which will set the array eleme
I am doing a rest service with java spring boot. The tables are created correctly in the database and locally test everything works correctly, but when I mount
I'm trying to build my first jpa hibernate projekt, but unfortunally i come across this error here: Error occurred during initialization of boot layer java.lang
I have a credential store that I created with Elytron's tool giving a clear text password: "mypassword". In my Java program I can connect to the store with the
I have an airplane seating program but I don't know how to get it to print the number of seats still available and how to get it to quit when I enter q. Any he
I'm currently working on a Spring boot (webflux) project where we have exposed metrics of our application on /actuator/prometheus endpoint using spring boot act
I recently faced a problem regarding interoperability between Java/Kotlin for suspend functions. See my question: How to Override a suspend function in java cla
I'm trying to use Java to talk to the ibm connections API through urlConnection with the following code String url = "https://example.com"; URL myUrl = new URL
Below shows the relevant code segments. Is it related to connection close or Buffer memory.? (The file, which contains 50MB+ AND 65000+ Text Lines) @Scheduled(c
The code works perfectly fine in IDE but not in normal .jar or in fat .jar? The program works perfectly fine otherwise. Also non-fat .jar doesn't work either. T
I'm creating a cluter in EMR aws and when spark runs my application I'm getting error below: Exception in thread "main" java.lang.UnsupportedClassVersionError:
I have the following Spring Batch test in my src/test/java: @RunWith(SpringRunner.class) @SpringBatchTest @EnableAutoConfiguration @ContextConfiguration(classe
so I am trying to read data from a bunch of sites, now most of these sites use cloudflare // cloudflare antibot, what this does is block my scrape attempts...