Category "java"

An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene54' does not exist

With lucene-core-5.5.2 i am facing problem a in weblogic server. standalone search application works but when i deploy as WEB APP it is failing with below error

Java says FileNotFoundException but file exists

I have an assignment for my CS class where it says to read a file with several test scores and asks me to sum and average them. While summing and averaging is e

How to use different menu in fragment than in activity?

I want to have a menu for my main activity and a menu for a fragment which is contained in the main activity. The main activity menu should be removed and the f

what is the default page for spring-mvc application

IF i have this line in web.xml then i know which is landing page <welcome-file-list> <welcome-file>redirect.jsp</welcome-file> </welcome

Regular expression with variable number of groups?

Is it possible to create a regular expression with a variable number of groups? After running this for instance... Pattern p = Pattern.compile("ab([cd])*ef");

Default properties of Java Annotation

What are the exact default values of two meta annotations (Target and Retention) in a user defined annotation? public @interface AnnotationWithDefaultProps { }

How to replace ppt/word template data using Aspose and java

I want to update a PowerPoint template using Java and Aspose library: For Example: I have key and value in ppt as firstname:${firstname} lastname:${lastname

Reading InputStream as UTF-8

I'm trying to read from a text/plain file over the internet, line-by-line. The code I have right now is: URL url = new URL("http://kuehldesign.net/test.txt");

How to force jboss to load classes from jars in webapp's lib

I am trying to deploy my web application on jboss-6.0.0Final, which is currently deployed on apache tomcat. I have two jars one that contains same package which

Howto get list of running processes in Java using JNA in a cross-platform environment?

I need to monitor servers in a cross-platform environment : Windows, Unix (Aix, Solaris) and Linux. It means : get processes, find some files, ... So i am focu

Difference result by using sign and verify for signature

I tried to use private key to sign the message digest to generate the signature, and then use public key to verify the signature to get message digest. I want t

Rotating BufferedImage instances

I am having trouble getting a rotated BufferedImage to display. I think the rotation is working just fine, but I can't actually draw it to the screen. My code:

Swipe gesture is very slow,...how to speed up my Swipe Gesture in android?

I have horizontal swipe gesture for my Appium test but when it is executed to the swipe gesture is very slow. Is there any posible way to do it? Suggestion will

Given two trees, return true if they are structurally identical they are made of nodes with the same values arranged in the same way

public static boolean identical(treenode<Integer> root1,treenode<Integer> root2) { boolean ans; for(int i=0;i<root1.children.

How to validate Hour and Minutes that came from a Swing textBox?

I have a window that contains a HH:mm time TextField in it, in 24 hours format I need to validate if the user entered any non valid hour, like 28:00, 99:00, 24

How do I call a @Before method from my Hooks class, in TestRunner?

I am setting up an automated framework to run tests on Android emulators, using Appium. I have added logic to launch Appium and the emulator programatically, bu

High application time in GC Log

Mystery in GC LOG - Application Time. GC LOG contains more details and there is found "Application time" field and 83 Seconds was there. In that time serve

Can not open project with IntelliJ IDEA

I have a project that was already working with IntelliJ IDEA but now,when I want to open it with IntelliJ IDEA, I am facing this error message:"Contains no Inte

How to validate Hour and Minutes that came from a Swing textBox?

I have a window that contains a HH:mm time TextField in it, in 24 hours format I need to validate if the user entered any non valid hour, like 28:00, 99:00, 24

How to decode JWT token to get details of Header and Payload using nimbus-jose-jwt?

I have the following JWT token that I want to decode: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik5UQXhabU14TkRNeVpEZzNNVFUxWkdNME16RXpPREpoWldJNE5ETmxaRFUxT