Category "java"

Loading images from firestore in image slider

I'm trying to load the images in an image slider from firestore. The image urls are there in firestore. I'm using the following library https://github.com/denzc

JSVGCanvas svg is blurry

I have pretty much copy pasted the code from http://people.apache.org/~clay/batik/svgcanvas.html but the svg that is outputing is blurry. I have used both a fon

How to change the Gradle version?

I would like to change the Gradle version to 3.5.1 according to the project version received from git using this eclipse. So I changed the editing path for the

IllegalArgumentException: At least one JPA metamodel must be present

while starting with spring rest I got following error as > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'jpaM

Installing jdk17 on Mac with brew

I am trying to install jdk17 with brew, while also having java8, java11 and java16 installed. In order to install 8, 11 and 16 I ran: brew tap adoptopenjdk/open

Convert float to String and String to float in Java

How could I convert from float to string or string to float? In my case I need to make the assertion between 2 values string (value that I have got from table)

Peer not authenticated while importing Gradle project in eclipse

While I am importing gradle project in eclipse, it is giving me this error. FAILURE: Build failed with an exception. * What went wrong: A problem occurred con

jTable saving each row element in the new line in the .txt file

I have a problem with saving the jTable contents to a file. Every row data printed to file makes a new line along. So reading from .txt looks like this: Here

Multi-line block select using the keyboard in IntelliJ IDEA on a Mac OS X

I've recently switched from Eclipse to IntelliJ IDEA 13. I use the VI keybindings. One non-vi thing I am used to doing in Eclipse is using Shift + ↑ / Sh

Hibernate : Why is it trying to drop/create database on startup?

I'm new with Spring. I finally succeeded to build my application with no error but when i'm looking to the output i have a lot of information that i don't under

Getting a nullpointerexception for my EntityManager

Working with Wildfly 10 on the following: a JSON webservice accessing a postgresql db using hibernate through a DAO object. More specifically, my POJO User.jav

How to send post request with x-www-form-urlencoded body

How in java, can I send a request with x-www-form-urlencoded header. I don't understand how to send a body with a key-value, like in the above screenshot. I

Error in multipart file upload: Failed to parse multipart servlet request; nested exception is java.io.IOException

We have an API to upload document. We got a very strange error and we got this error for the first time on our server. This is the API structure. @PatchMapping(

jstack: Target process not responding

I am running Ubuntu server edition and I wanted to take a thread dump of Tomcat. So, I first tried to find out which PID tomcat uses: $ jps -l 5809 sun.tools.

No matching client found for package name "...." with different buildvariant

I want o implement push notification. I added to project level: dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.

Can not run Elastic Search on ubuntu (Error opening log file)

I have problems with running Elastic Search on my ubuntu 20.04 server (I can do it locally). When I run ./bin/elasticsearch in terminal I get lines below Excep

Find element using explicit wait within another element

I have the following code: List<MobileElement> messages = driver.findElements (By.id ("body_bubble")); //find all messages MobileElement lastMessage = me

How to put Hover effect on jbutton?

I am trying to create a Java Desktop application where I am using two buttons. I want to add hover effect in those buttons. I want: When I click any button it s

How can I write to stdout using FlatFileItemWriter in spring batch?

I have the following writer configured in my beans definition file of a spring batch project : <bean id="writer" class="org.springframework.batch.item.file.

How to exclude class in TestNG [duplicate]

I have a test suite called Test.XML. If I want to exclude any one class, how can I do that? Here is the Test.XML: <?xml version="1.0" encod