Questions tagged [java-8]
Use this tag for questions specific to Java 8 which is version 8 (internal number 1.8) of the Java platform, released on 18 March 2014. In most cases, you should also specify the java tag.
java-8
23,226
questions
1
vote
0
answers
33
views
How to work with (Zip)FileSystems - keep open or re-open as needed?
I'm working on a project with java 8. The component I'm working on shall provide access to files, e.g. config files, that are classpath resources.
It's my first time working with nio.file.Pathand nio....
0
votes
2
answers
33
views
How to install Java 8 on Debian 12 [closed]
I want to run a minecraft server on my raspberry pi with debian 12(bookworm) on 1.12.2 and for that
I need to use Java 8.
Problem is that i cant install Java 8 on Debian 12.
Are there solutions or ...
0
votes
1
answer
16
views
sample example of java upgrade from 8 to 21 using open rewrite
I have a springboot application with version 2.x and using java 8, I would like to upgrade the java VERSION TO 21 and spring boot version to 3.x,
My question is which is the easiest way to upgrade ...
0
votes
0
answers
10
views
How to use Java 8 libs in Java 11 or later applications?
I need several jar libraries that are build with Java 8 and that do not contain the needed module-info.jar files. But the application's dependencies require at least Java 11 (JavaFX).
Compiling is ...
0
votes
0
answers
10
views
Pylucene 8.11.0 installation on Ubuntu
I want to install pylucene 8.11.0 on ubuntu 64
I did python build and install
please help me to solve it
and when I want to make file I have this error
sudo make install
/usr/bin/python3 /usr/lib/...
0
votes
0
answers
16
views
ContextResolver Not Working After Migrating from Jersey 1.x to 2.x
While updating my project from JDK 8 to 17, I found that jersey-server 1.19.2 is not compatible with JDK 17. Therefore, I tried updating it to 2.43 (if I go beyond 2.x, I'll also have to update javax ...
0
votes
0
answers
17
views
Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'kaptGenerateStubsDebugKotlin' (17)
I have tried all of the listed solutions I can find on the Internet and am stumped.
I'm updating to Java 17 from 1.8, and I am getting the error:
Inconsistent JVM-target compatibility detected for ...
0
votes
0
answers
13
views
In Hibernate 5, The Jsonb sql column Serializer/Deserializer using SnakeCase than the camelCase (TypeDef JsonBinaryType)
While saving/retrieving Jsonb Object in a DB. JSON key are saved in SnakeCase than the CamelCase
Entity Class
@Entity
@TypeDef(name = "json", typeClass = JsonBinaryType.class)
public class ...
-2
votes
1
answer
68
views
Remove item from list when no matching element found in sub-sub-sub nested collections [closed]
Is there a way to remove an item from the first list (versions) if no item meeting the condition is found.
here's the condition:
s -> s.getId().equals(identifier) && s.getStatus().equals(&...
0
votes
1
answer
78
views
Create a Map<Long, CustomObject> , iterating a List<CustomObject>
I've a list of Order which I am fetching from some third part api.
List<Order> orders = fromApi(orderId);
Here is the Order class:
class Order{
Long orderId;
Product product
}
...
0
votes
1
answer
53
views
Packaging a java 8 - maven - javafx 22 application
I read an article here and understood that there are differences between packaging JavaFX 11 and Java 11, from my project. However, I still don't know how to do it with my project.
Mine is built in ...
0
votes
0
answers
23
views
Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions. Error: Could not create the Java Virtual Machine
I install JAVA 8 from Oracle's offcial website on my new mac.
I want to run unit tests for my scala project on my local.
I am able to build the project with mvn clean install -DskipTests successfully.
...
0
votes
0
answers
13
views
Override parameterNames in EntityPersister to include composite key attribute
There is a column CreatedDate which is updated to be part of composite key in postgresql. @IdClass is used to define the composite key. After the change of adding it as part of composite key, ...
3
votes
2
answers
82
views
How to use the Instant Class in Java to get Elapsed Time in Seconds to a Certain Number of Decimal Points? [closed]
Is there any way to use the Instant class in Java to get elapsed time in seconds to a certain number of decimal points? I took some time to experiment, and I was able to to use the .now() method at ...
0
votes
0
answers
30
views
Try-with-Resources Not Closing Database Connections for One Select Query #hikari [closed]
Facing an issue with try-with-resources as it is not closing the database connections automatically particularly for one select query while same is working for other queries of the same class within a ...