Category "java"

Apache POI: Is it possible to use SXSSF without temporary files?

I'd like to use SXSSF (Streaming Usermodel API) from Apache POI. What I don't like is that it uses temporary files. Question: Is it possible in Apache POI to f

Check Selected Product and product which is added to cart are same or not

I have searched for a mobile product which is of type " Asus Zenfone 5 " in flipkart.com website, search display many products. I selected first product and add

Android how to make ok button on dialog not all caps

For an alert dialog in Android, how do you make the positive button not have all capital letters. The text is "OK" instead of "Ok".

deploy ear file to weblogic 10g

I have coded project in java ee. by using java ee version 6. when I try to deploy my ear file into weblogic 10g I receive the following error: How can I achiev

Where are all the javax jars?

Edit: several fellow SOers have recommended just going to Maven repos, which of course have nothing to do with using Maven as part of one's build. I understand

Append the value of argLine param in maven-surefire-plugin

I am using maven-surefire-plugin + Sonar together and I would like to add some extra value to argLine parameter of the maven-surefire-plugin. So I did it: <

Mockito verify unit test - Wanted but not invoked. Actually, there were zero interactions with this mock

At first I want to sorry for my english. I started to make some unit tests (i've never done this before, i'm a new guy in programming). I have to test simple

Read multiple files zip file with multiple sub directories

I have a zip file with the structure like: xml.zip Root Folder: package Folder: Subfolder.zip Inside Subfolder.zip : Root Folder: _ Folder: var Folder: run Fold

Error with Gradle using VS Code: "Could not run build action using Gradle distribution"

I've started getting the following error message when opening an existing Gradle project in VS Code after upgrading the Gradle installation on my computer: Cou

Java velocity vm file #set use boolean variable

We can not use Boolean variable by #set when I find velocity project guidelines in Apache official site, but it is also worked when I use in my project. #set($

RxJava- CombineLatest but only fire for one Observable's emission?

Let's say I have two infinite Observables that can emit values at any moment. They combine to create a Observable<ProcessFileEvent>. Observable<Intege

Unable to update Maven configuration Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5

From inside eclipse when i am doing Maven -> Update Project i am getting following issue Unable to update Maven configuration Could not calculate build

Unable to pass java compiler parameters using maven

As the title says I am unable to pass command line parameters to the java compiler using maven, I am using the maven-compiler-plugin to do it, and accordingly t

Unable to update Maven configuration Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5

From inside eclipse when i am doing Maven -> Update Project i am getting following issue Unable to update Maven configuration Could not calculate build

spring-boot-starter-data-jpa dependency error

I am using new version of Spring boot - 1.5.7. But , when I create new spring starter project with jpa dependency, I got strange error: Caused by: org.spr

Defining a default/global Java object to Nashorn script engine?

With Java's Nashorn script engine, I can provide objects in the context of an eval() using bindings like so: Bindings bindings = scriptContext.getBindings(Scri

Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository' in your configuration

I am using spring oAuthClient version 5.2.4.RELEASE By following the document link of spring security https://docs.spring.io/spring-security/site/docs/current

Read property file of one java project in another java project

Here is my problem statement: I have a project A which is built in spring and is a maven project. there is project B(not using any framework) which I am develo

Initializing C3P0 connection pool takes 2 min

I can't wrap my head around why the initialization of a c3p0 connection pool takes 2 min in my Hibernate application. This is in my Hibernate.cfg.xml: <hib

How to open file in another directory in java?

How to open a file that is not present in the current directory but in another directory. For example, I have a folder F:/test and my file is in F:/test/test2/d