Category "java"

Swipe to refresh data using SwipeRefreshLayout in fragment?

I want my layout to be refreshed when the app starts and the data should show in and when the user swipes the data should be updated and show new data if new da

ListFragment Not displaying data from List

After I try to open the navigation drawer and go to a different tab and then go back to it. It is not showing data in a list once again. Main Activity package c

How to read/write a file in Java

I would like to replace some items in a file, based on some regular expressions. In order to do that: I read the file line per line For every line, I check for

Generating and accessing WSDL on Tomcat with Maven

I have a JAX-WS server that I package with Maven and deploy on Tomcat. The pom.xml generates the WSDL file automatically with the trick from Use Maven to trigge

I added a maven project as dependency in another maven project

I added a maven project A as dependency in another maven project B and then access the jar created by B in another project through reflection, but its throwing

Calling default method in interface when having conflict with private method

Consider below class hierarchy. class ClassA { private void hello() { System.out.println("Hello from A"); } } interface Myinterface { defa

Spring Boot Custom Authentication Provider with Java Configuration not working

I am trying to setup a REST based web application, where the frontend is using Reactjs and the backend is using Spring Boot. I am also trying to setup a custom

how to get clicked value and pass it to another jsp page (integer)

I am working in a project in which I have a Display.jsp page which fetches all the records from mysql database and shows in a table on the page. While I want to

Android Tip,Tax,Total Calculator

Hello I am new too Java and learning how to built android apps. I have this calculator that I have been working on I need help in figuring out how to set value

Android Studio mailto Intent doesn't show subject and mail body

I'm trying to send an e-mail from my Android App. With the click on a button, gmail should open and show a new email with my previously defined recipient, subje

Why is my progress bar not turning visible in Android Studio

I am attempting to build an app that displays a "ladder" between two different words of the same length. While my program is finding the ladder between these tw

Unexpected exception caught: com.ptc.pfc.Implementation.pfcExceptions$XToolkitGeneralError while running AsyncInstallTest

Can any one help to write simple program using jlink java to open creo tool on executing of java program. what i have done so far is, installed creo-5.0.0.0 and

Json4s not serializing Java classes

I have some scala code that needs to be able to serialize/deserialize some Java classes using Json4s. I am using "org.json4s" %% "json4s-ext" % "4.0.5" and "org

Spring Boot: run liquibase migrations without starting app

In Spring Boot, the documentation seems to encourage running migrations on app startup. This is fine, but sometimes app startup may have side effects / depende

Get last modification dates of files in directory in git

I have a folder full of files and I want to get the timestamps of last git update for each of those files. I'd like to get those in a Gradle task. I tried the f

static ScheduledThreadPoolExecutor in CompletableFuture.Delayer

In java-9 the new method completeOnTimeout in the CompletableFuture class was introduced: public CompletableFuture<T> completeOnTimeout(T value, long time

jira multiselect customfield AUI selest2 defined in plugin does not pick any options

I'm completly stuck trying to implement AUI.select2 style multiselect customfield in jira plugin. in main class I just declare the constructor and do not overri

JInternalFrame Issue

I could not use JInternalFrameForm in Netbeans. I did right click on my package and go new but I did not see JInternalFrameForm option.

Getting java.lang.SecurityException - "org.hamcrest.Matchers"'s signer information does not match

I am executing below Rest Assured Program: io.restassured.RestAssured.baseURI ="http://a.b.c.d:9200/e/f"; Response responseNew=null; req

Error while building project using maven [com/sun/tools/javac/tree/JCTree$JCCompilationUnit]

I am trying to use maven to build my java project, but I always get the error message, > Execution default of goal org.projectlombok:lombok-maven-plugin:1.1