2,977 questions
0
votes
0
answers
57
views
gradlew build - FAILURE: Build failed with an exception
Unable to launch Gradlew build. I've tried everything, but it won't launch. It works fine, but as soon as I want to create a mod for Minecraft, it doesn't work.
I'm attaching a Google Drive link with ...
0
votes
0
answers
53
views
Font-face icons not displayed correctly after jdk and struts update
I recently upgrade the version of struts2 used by my project from 2.3.37 to 2.5.33 following the migration guide here.
To do so, we had to update the jdk version 6 to 7.
Everything seemed to work fine ...
2
votes
1
answer
3k
views
java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module [duplicate]
I am getting following error while running a test in my Project:
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader....
0
votes
1
answer
511
views
How to enable the TLSv1.2 support in java 7
We wanted to enable the TLSv1.2 protocol with version of Java 7, while also ensuring support for the lower versions.
I am aware that we can utilize SSLContext.getInstance("TLSv1.2") to ...
0
votes
0
answers
36
views
maven build issues with Java7
Below is my pom.xml. We are still using Java7 and when I run mvn clean install or mvn clean package it creates the Jar just with META-INF and a Manifest file. I do not see the generated classes in the ...
0
votes
1
answer
416
views
Mojo Dependency issue with java 1.7
Background: I have a EJB application which runs on java 1.7 and we are using maven 3+ version for building the code.
Issue: When I build this code I am getting java version mismatch issue i.e major ...
0
votes
1
answer
1k
views
Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
I'm having a problem with building Java project with Flutter module when compiling it.
It shows the next problem:
Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus....
0
votes
2
answers
1k
views
Regular expression to match date format MM/dd/yyyy and (or) M/d/yyyy
I need to find a regex that will match both date formats:
MM/dd/yyyy and M/d/yyyy
ex. 01/31/2022, 1/1/2022, 12/13/2022, 12/1/2022
So far I tried
^(1[0-2]|0[1-9])/(3[01]|[12][0-9]|0[1-9]{1}$)/[0-9]{4}$...
2
votes
3
answers
4k
views
Is Java 7 available for M1 Mac?
Is there a Java 7 binary release for Apple Silicon available anywhere? I have an old app to maintain and getting that to run on Java 8 would be a really risky exercise.
0
votes
0
answers
65
views
G1GC and Permgen
I'm having doubts regarding which metrics I should follow to allocate memory for the permgen.
I'm having crashing problems and that permgen is full, my server has 32gb of memory for the heap and 512m ...
-1
votes
2
answers
659
views
Finding the next not null object in an object array
I have an array of objects in a class, call it passengers.
I initialized the array with the x number of passengers, and that would make the array with length x, full of nulls.
I need to get a method ...
4
votes
2
answers
21k
views
Unrecognized VM option 'MaxPermSize=512m' and Could not create the Java Virtual Machine when running React Native Apps (closed)
I tried to run react native app with this command.
npx react-native run-android --variant=stagingDebug --appId com.xx_staging
But I am getting this error message. I want to run multiple java versions ...
-1
votes
2
answers
1k
views
Confused about what jdk and jre my command prompt is using for java
I was super confused about compatibility on a java tool I was using and ended up downloading different versions of java so now I do not know what versions of jdk or jre I am actually using. When I ...
1
vote
2
answers
5k
views
Spring Boot YAML configuration for a list of strings containing commas
I'm using Spring Boot version 1.5.22 because of Java 7 compatibility - legacy stuff, museum grade, don't use.
I need an array of strings containing commas in YAML config for Spring Boot.
The problem ...
0
votes
1
answer
655
views
Using custom CharacterEscapeHandler with JaxWsProxyFactoryBean to suppress CDATA being encoded
There is a bunch of legacy JAX-WS request code that had to be extended and include now a field holding "<!CDATA[[...]]>" encapsulated data.
We managed to get the field into the request,...
0
votes
1
answer
269
views
jboss fuse 6.1 features:addurl TLS1.2 Failed due to javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
We are in process to migrate a new nexus repo.
The below are the platform information:
Nexus Repo Server: HTTPS only supports TLS 1.2
Application server: FUSE 6.1
Java(...
0
votes
1
answer
124
views
String Split and save into ArrayList in JAVA7 [closed]
I have a string wherein I need to split it and store in an ArrayList as seen below; All these using Java7.
The below is the input for my program;
String inputStr = "ABC:DONE:07JAN90:1234:00001111:...
0
votes
2
answers
335
views
java streams between java 8 and Java 7
I have the following method in Java 8 and I'm working in project using java 7:
public <T> List<T> getValues(CommandLineItem commandLineItemMod, Class<T> targetClass) {
Object ...
1
vote
0
answers
699
views
Draw text line with padding using Apache PDFBox
I have an existing pdf where I need to draw a fixed length text without calculating the position for each character. By introducing four spaces between each character I nearly get the desired result ...
4
votes
1
answer
2k
views
Can't verify signature ECDSA key
I'm trying to create a key pair with ECDSA algorithm using javascript, sign a message and then verify it server-side (with Java).
sample javascript code:
// help function
function ...
0
votes
2
answers
2k
views
How can I change Java version 1.7 to 1.8 in Ubuntu?
My Ubuntu machine have installed both java 1.7 and 1.8. But when I checked Java version it shows version Java 1.7 as the snapshot below. When I check Java alternative version I can see "java-8-...
2
votes
2
answers
2k
views
Finding largest number in Java
I am trying to find the large number in java by using the integer parameter. I converted the integer value to string but the problem is, it failed on the run and did not show the expected result.
Here ...
0
votes
3
answers
2k
views
Retrieve specific values of instance variable from each object of a list containing Objects of different classes
I have a list which contains objects of different classes say A, B, C, D, E, F, G. Each of the objects(A, B, C, D, E, F, G) have an instance variable "name" in it. I want to iterate over the ...
1
vote
1
answer
2k
views
How to read .rpt files in Java and save it as pdf
I have a .rpt file. I want to read it programatically in java and save it in pdf file.
I followed the solution
multithread pdf conversion
My source code provided below
final String rpt = "/...
0
votes
2
answers
815
views
How to get next year date from the user entered date in java
Below is the code that returning wrong date
String dt = "01-08-2021";
SimpleDateFormat format = new SimpleDateFormat("dd-mm-yyyy");
Date date = new SimpleDateFormat("dd-mm-...