18,856 questions
1
vote
1
answer
110
views
java.lang.NoClassDefFoundError: com/mongodb/client/MongoClients
I've been making a minecraft papermc plugin and I ran into an issue trying to add MongoDB to my project using Gradle. I followed the "Getting Started" steps with Java Sync, but I kept ...
2
votes
0
answers
137
views
How do I convert this Create_javah call into an add_jar() with GENERATE_NATIVE_HEADERS?
I'm mostly Java-illiterate; unfortunately, I have to update a CMake project which uses Java, to build on a system with a newer version of Java. The old project does this:
Create_javah(
...
0
votes
1
answer
93
views
Deploying SpringBoot backend on server. URL/URI not hierarchical due to jar file
I'm working on a project for school. It's almost finished I just need to deploy the application to a server. I am doing this step-by-step.
I have built the application on the server using the command ...
0
votes
0
answers
164
views
Visual Studio Code : jar import error - package does not exist
When referencing an external library (.jar) with an import, i get the error "package ... does not exist".
I precised that compilation is OK (when i print in the console, changes are ...
-2
votes
1
answer
76
views
Management in targets directories in modules maven [closed]
I'm a making a little project involving a server-client multi-module project. Where the project is composed of three modules; service, common and client-app.
Now, after compiling the source code of ...
0
votes
1
answer
209
views
Launching a jar by directly loading jar bytes in memory from a graal native image and launching the application no disk writes
I'm building an application launcher using GraalVM native image. The launcher downloads an encrypted JAR, decrypts it in memory, and needs to launch it without ever touching the disk. Security ...
0
votes
0
answers
84
views
Bazel Query Command to get all the transitive external dependencies
I am using the java_export rule to publish an SDK:
load("@rules_jvm_external//:defs.bzl", "java_export")
java_export(
name = "sdk_maven",
maven_coordinates = &...
0
votes
1
answer
230
views
H2 Database connects in IDE, but not from console or as a JAR file [duplicate]
I'm trying to make a Maven project that connects to an H2 database. In an IDE this works fine, but when executing the compiled project in the terminal, or when building the project into a JAR file and ...
0
votes
0
answers
66
views
Android project using untiy-classes.jar (generated by Unity) with some classes that can't be resolved
I work on a small android project that uses the unity-clases.jar generated by Unity. Some (not all) of the files/classes in the .jar can't be resolved when compiling the android project and I don't ...
1
vote
1
answer
91
views
How to correctly incorporate GroupId in a JAR file using Gradle?
I have 2 projects, a LibraryProject and an ApplicationProject. ApplicationProject needs LibraryProject as a dependency.
In the LibraryProject, the build.gradle contains:
group = 'com.company.product'
...
3
votes
1
answer
167
views
What is a .so file in Java projects, and how can I use an old JAR that depends on .so files in Spring Boot?
I have an old Java JAR file that depends on .so files (shared object libraries).
I understand .so files are native libraries (written in C/C++), and the JAR uses JNI (Java Native Interface) or JNA to ...
0
votes
0
answers
225
views
How to overwrite or delete an existing package version in GitLab Package Registry from CI/CD?
I have a GitLab CI/CD pipeline that builds and deploys a package into the GitLab Package Registry.
For a specific (and temporary) use case, I need the pipeline to delete the package from the registry ...
0
votes
0
answers
92
views
kotlinc cant compile file with more 1 path to .jar in -cp or -classpath flag
Problem description: When using the Kotlin compiler (kotlinc) of any version from the command line (not IntelliJ IDEA, but a separate folder with a .bat file), and when specifying multiple libraries (....
1
vote
1
answer
127
views
Unable to install. Invalid file. J2ME Application
I was making a J2ME MIDlet application. I wrote the code, compiled it to Java 1.2 bytecode, prevrified it and then packed it into jar. But when I sent it to my Nokia N72, it said: Unable to install. ...
0
votes
1
answer
32
views
Duplicate classes from commons-io 2.19.0 and 2.4 — how to resolve cleanly?
Build fails with hundreds of “Duplicate class …” errors showing both:
commons-io:commons-io:2.19.0 (transitive)
commons-io-2.4.jar (in libs/ via implementation fileTree(dir: 'libs',
include: ['*.jar'...