18,877 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
75
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
45
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
145
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
37
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
2
answers
149
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
40
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
66
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
118
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
126
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
69
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
103
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
20
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'...
-1
votes
1
answer
57
views
Main class in an eclipse plugin
I have made an Eclipse plugin. Now I want it possible to also run it as a standalone app using java -jar.
However the classes are packed in the bin/ folder inside the jar, and I get a ...
0
votes
1
answer
160
views
Can't create any .jar on IntelliJ Fabric Minecraft modding
So lately I've been trying to make a little custom mod for Minecraft 1.21.1 with Fabric Kotlin and after checking everything working completely I wanted to create the .jar to share with a friend but ...
0
votes
1
answer
144
views
JAR file can not access to a given directory
I made a Java application that loads image files from a directory called "images".
If I compile and build in this way it works:
javac Swing.java
java Swing
Conversely, if I compile and ...