Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [jar]

JAR file (or Java ARchive) aggregates many files into one. JAR files build on the ZIP file format.

0 votes
1 answer
12 views

Supported Kubernetes Versions for Each Kubernetes Client JAR Version

One of our spark containers uses a jar called "kubernetes-client-4.12.0.jar". Is there a document available mentioning its respective Kubernetes version support. Currently we have Kubernetes ...
Alexy Pulivelil's user avatar
0 votes
0 answers
9 views

JAR package only necessary classes and dependencies

I am new to maven and I would like to know what would be the best way to package only those classes and dependencies that are needed to run that class. For example if I have a lot of classes A, B, C ...
lola's user avatar
  • 1
0 votes
1 answer
58 views

Invalid bean definition is defined in class path resource as there is already a Generic bean

I am trying to convert a spring application to springboot application. The application runs fine when I run it using the intellij GUI, but if i use the terminal and try to run it by java -cp command ...
Moneet's user avatar
  • 15
1 vote
0 answers
34 views

How can I add all jar files from my lib folder to my maven project? [duplicate]

I have many maven projects packaged as Jar files and I need those projects that interact with each other to be available in my web project which is also a maven project. I need the classes inside ...
Ismael J. Varela's user avatar
1 vote
1 answer
57 views

Service provider running outside of jar file but not inside of a jar file

import java.util.ServiceLoader interface A data object B : A { @JvmStatic fun provider(): A = this } fun main() { println(ServiceLoader.load(A::class.java).toList()) } this program run ...
LTBS46's user avatar
  • 225
0 votes
2 answers
54 views

Log4j2 No inject constructor error when launching through java.exe

I have a program in java made through maven and packaged with assembly into a single jar with all the dependencies. I need to run this in docker so I need to be able to launch it with java.exe. The ...
Patrik Holub's user avatar
2 votes
1 answer
80 views
+100

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 provides access to files, e.g. config files, that are classpath resources. It's my first time working with nio.file.Pathand nio.file....
CJOverflow's user avatar
-1 votes
0 answers
45 views

NoClassDefFoundError while running springboot application from command line

I have a spring boot project which works fine when I run the main class from IntelliJ GUI. But when I try to run the same program using the command line using the command java -jar my-data-server.jar ...
Moneet's user avatar
  • 15
-2 votes
2 answers
100 views

Attempting to run a Minecraft server and I keep getting Error: unable to access jarfile

I'm trying to run a minecraft server and when I type the command: java -Xmx1024M -xms1024M -jar minecraft_server.1.21.jar and I get - Error: unable to access jarfile minecraft_server.1.21.jar... I ...
ProbablyGametes's user avatar
0 votes
0 answers
26 views

Sevlets with @WebServlet annotation in JAR files not accessible (wildfly 26.1.3.Final)

I have a project where I need to include some servlets. For some reasons the customer wants a JAR file not a WAR file. After a few days research I was unable to find a solution to make wildfly's ...
Riva86's user avatar
  • 11
-1 votes
3 answers
66 views

Java can't open any .jar files

I was following this tutorial: https://docs.opentripplanner.org/en/latest/Basic-Tutorial/ to get started with OpenTripPlanner for the first time. Once I got to the step "starting OTP" I ...
Noah's user avatar
  • 1
0 votes
0 answers
20 views

Can't activate jar-dependencies-0.3.10, already activated jar-dependencies-0.4.1

I'm getting this error. can't activate jar-dependencies-0.3.10, already activated jar-dependencies-0.4.1 Please help me My project has gem 'jar-dependencies', '0.4.1' but in my system it was ...
ankit susne's user avatar
-1 votes
1 answer
15 views

Jars are not printing from internal url

I am building my maven project with updated setting.xml which not contain any public URL which have some internal URL to our company what i want is i want to run the build and want to print the what ...
punit jain's user avatar
1 vote
0 answers
42 views

Issue with getting Jar dependencies via Jdeps

I want to create a JLink image of a jar file of my Java project and I'm using Maven as build tool. I'm trying to get all dependencies needed to run my project to create a JLink image of it by using ...
Aryan's user avatar
  • 121
0 votes
0 answers
51 views

Why does linux deny permission to establish a Java Jsch session when the war file is deployed in a Tomcat server?

I have been trying to establish a Jsch session in a Java Spring Controller, so I can execute a shell script. The session is established and commands are run during local testing and manually testing ...
Sarath M's user avatar

15 30 50 per page
1
2 3 4 5
1264