Category "java"

Heads up push notification not doing the Pop up function

I am new to Android and I have been trying to show a Heads up action push notification just like whatsapp does. This is my configuration for my notification:

how to create java project with command?

I'm a beginner, when I create a java project using the command pallate in vscode ctrl-shift-p -> java: Creat java project, only created the lib, src and read

class cannot be cast to the same class Spigot custom API

I recently made a custom api for my spigot plugin to manage the database connection in an easier way. I had to get the plugin and cast it to the class of my API

quarkus + oauth2 + auth0

I'm trying to get auth0 to work with quarkus: resources i've used are: https://github.com/quarkusio/quarkus-quickstarts/tree/main/security-oauth2-quickstart htt

How to convert ArrayList to Pageable object springboot

I was trying to return list as page object to my client side angular Application. But it return all the list not a page. this is my server side controller m

Comparator Error java.lang.IllegalArgumentException [closed]

How can I sort array according to the count of set bits? I'm getting an error whit below code: Arrays.sort(arr, (o1, o2) -> { if (Integ

Netfilx eureka server - client booth in docker at gitlab ci; 400 bad request

I'm working with two apps, one of them is server-app (Netflix eureka server) and the other is the client-app, they works perfectly on my machine, client registe

How to set java classpath in Visual Studio Code (v 1.27.2)?

I am new to Visual Studio Code for Java development and I had a workspace open yesterday for testing. Now when restarting Visual Studio today, I get a "Classpat

How to set java classpath in Visual Studio Code (v 1.27.2)?

I am new to Visual Studio Code for Java development and I had a workspace open yesterday for testing. Now when restarting Visual Studio today, I get a "Classpat

Another Maven "Source option 6 is no longer supported. Use 7 or later."

I see lots of answers to this question but they don't work for me. I installed Visual Studio Code, latest version of Java and Maven on my PC and I was able to s

How many HTTPS certificates have the google reCaptcha endpoint? And where can I download them?

We have a Java web application that implements reCaptcha validation against URL https://www.google.com/recaptcha/api/siteverify in a microservice in Docker. Thi

Flutter:MainActivity cannot be converted to FlutterEngine in Java Native code

I am trying to create a plugin for Flutter in Java. I am trying to pass the Android activity parameter in my main Java class. This is my native code: package

how i use odoo login api to external application like postman and java?

I want to hit login api from postman or java and the error generating bad csrf token. Have any solution to fix this issue or we disabled csrf token?

generated sources of other modules

I have a multi-module maven project. I use maven build helper plugin to automatically add generated sources to the classpath. I am able to use the generated s

Maven build failed with GC overhead limit exceeded

I am trying to build the project with the following command mvn clean install But every-time its end with memory issue ,then i run same command with -X opt

Eclipse windowbuilder not showing the full frame

I'm trying to use Eclipse windowbuilder, but when I go to the design page the frame gets cut. Below is an image of what I am seeing. This is just a simple JFra

I have two filters in a Spring Boot project. Why the response.isCommited() became true when the response go through the first filter

I have two filters, and one of them needs to setting headers into the response. response.setHeader("Access-Control-Allow-Origin", "*"); response.setHeader("Acce

Hibernate 5 migration Issue with Multilevel Joined table Inheritance with Hibernate 5.4 DiscriminatorColumn

I am working on migrating a legacy Hibernate project from version 4.1 to 5.4. The code has Multilevel Joined table inheritance using a dedicated DiscriminatorCo

Parameter 0 of constructor in required a bean of type 'java.lang.String' that could not be found

I am working on spring batch with spring boot 2.X application, actually its existing code i am checked out from git. While running the application it fails due

Can´t run JavaFX application outside ide

I want run JavaFX application with module but dont know how to do. I tried several times but i never got it. I use Eclipse, and export the proyect with the firs