Category "java"

Visual Studio Code won't recognize non-java imports

In my Java application, Visual Studio Code throws the following error for all my non-java imports: package this.is.a.package does not exist (compiler.err.doesn

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalDate; error

I tried everything, but the error not getting solved Here is my code: public String[] getWeekDays() { LocalDate today = LocalDate.now(); LocalDate mo

Why can't i select JFXTextfield in scenebuilder and add it

JFTTextArea and JFXButton works but why not the JFXTextField? I have added foenix Library so I have got all the JFXTextField But i am not able to place JFXTextF

Could not find com.beloo.widget:ChipsLayoutManager:0.3.7

I am using repositories mavenCentral() because jcenter() is deprecated. I want to implement com.beloo.widget:ChipsLayoutManager:0.3.7. But this is uploaded on j

I cannot concatenate a variable + string + variable this line of code gives me a error "None of the following functions can called with the argument s

I'm a newcomer in this, and I'm learning kotlin in android studio, and I'm stacked in this error, "None of the following functions can be called with the argume

Handling the Optional which doesn't expected to be empty

I have the following method private Invoice createInvoice(SomeParameter someParameter) { Invoice invoice = new Invoice(); Optional<Customer> custo

character encoding of the plain text document was not declared

I am getting "The character encoding of the plain text document was not declared. The document will render with garbled text in some browser configurations if t

Change Sheet in Excelfile using SmartXls

I´m using SmartXLS for Java(5.7.1) to do some calculations in Excel. Does anyone have experience with SmartXLS? There are 5 worksheets in my file and I wa

12 digit unique distributed random number generator

I ported sonyflake to Java and it worked fine. However, instead of generating 8 digit numbers, I am looking to generate 12 digit unique numbers. The original po

File not found error when running Maxent in biomod2

When I run Maxent into biomod2 I got this error: Error in file(file, "rt") : cannot open the connection In addition: Warning messages: 1: running command 'j

android studio with Java compiler error: string too large to encode using UTF-8 written instead as 'STRING_TOO_LARGE'

When I clean the android project in android studio, the error happen, I have backed to previous commit or different branch, which works find couple days ago, bu

setOnUtteranceProgressListener not at all working for Text To Speech for API > 21

I want setOnUtteranceProgressListener should notify a Toast after the speech is completed.It seems not working. I have used setOnUtteranceProgressListener and o

Use of spnego and kerberos with gss in graal

I'm attempting to reuse some existing code which enables spnego authentication in a new Quarkus app. The Quarkus app when compiled as a standard JAR and run wit

Resultset To List null [duplicate]

public List<Order> getAllOrdersByCustomerId(int customerId) throws SQLException { List<Order> AllOrdersByCustomerId = new Arra

JavaFX circular progressindicator not working as expected

So I'd like to make a circular progress indicator that runs smoothly from start to end, although I haven't found exactly what I'm looking for, I found a workaro

Odd number Sequence Replaced by Count

I am working on java Program here is program Question: Consider Java Program. It reads integers from the standard input (until it gets a negative number) and

Obtain an OracleDataSource in SpringBoot 2

Is it possible to retrieve a OracleDataSource from the default SpringBoot 2 Hikari connection pool using a NamedParameterJdbcTemplate object? Using Java 8, Orac

Java JsonPath: modify multiple JSON attributes at once

I am struggling to modify several JSON objects, while using the JsonPath library. I have a selector, that gets declared at runtime and a JSON file of unknown si

How to encode maiden name

I'm trying to encode maiden name and I'm not sure I'm doing it right. Surprisingly Mother's Maiden Name seems to be a standard field but Maiden Name isn't. My t

java parse date with picosecond

I have a string date with picoseconds (between 9 to 12 digits after the period), and when I try to parse the date with the DateTimeFormatter : DateTimeFormatt