2,435
questions
0
votes
0
answers
28
views
Exe file not running when launched from an exe file [closed]
I have a program that works very well, when I run it from a jar file. Here is the code:
try {
Runtime.getRuntime().exec(Paths.get("MyProgram.exe").toAbsolutePath()....
-1
votes
0
answers
28
views
Difference between Thread.currentThread().getContextClassLoader().getResourceAsStream() and MyClass.class.getClass().getResourceAsStream() [duplicate]
I recently had a slightly frustrating experience (for me at least) with respect to loading resources off of the class path. Normally, I would have used:
this.getClass.getResourceAsStream("build....
-1
votes
0
answers
16
views
Java Executable Jar File Missing
Jar file instead of executable jar file Hello, I would like to ask why the file extension description here is labeled as "JAR file" and not as "Executable JAR file." I need to know ...
1
vote
3
answers
79
views
Why does System.console() return "java.io.ProxyingConsole@7ab2bfe1" when I think it should return null?
I'm trying to make a program that will open the command line for the user to interact with when you run it. I did some research on how to do this and found this solution on stack overflow which is ...
0
votes
1
answer
45
views
Executable jar fails with java.lang.NullPointerException: Cannot invoke "manifold.rt.api.util.Pair.getFirst()" because "classSymbol" is null
I have to create an executable jar that takes in some command line arguments to process a json file. It is supposed to dynamically create a java pojo out of the json using manfold libraries and then ...
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 ...
0
votes
0
answers
10
views
Get an external report link of test execution in selenium testNG when Jar file is executed, in the integration testing
I'm working on executing testNG suite through executable jar with dependencies. When we run we see extent reports i.e., emailable report . Now for our application, which has microservice architecture. ...
1
vote
0
answers
8
views
create executable jar of karate testSuite , features are present src/test/java (maven project ) [duplicate]
I want to create an executable jar of my karate test suite created with maven.so that I can run the testcases directly using the jar .The testcases are present in src/test/java and some required ...
1
vote
0
answers
43
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 ...
-1
votes
3
answers
118
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 ...
0
votes
0
answers
56
views
How to create a Windows Service to execute a JAR file automatically when the system is started?
I want to create a Windows Service to execute a JAR file Automatically when the system starts. I've tried creating it manually without using any 3rd party wrappers, but ended up lost. Guide me on how ...
0
votes
0
answers
45
views
Log4j2 Not write to log after I exported to .jar
I have a log4j2.xml which works correctly, until I export the project. The basePath in this case configured manually. So the log file location is correct even after export. After the exporting, just ...
-1
votes
1
answer
35
views
Extract required libraries using maven assembly plugin
I have a maven project that works fine so far, but building an executable JAR gives me a problem I could not solve so far.
This question here: Why is my .jar file running slower than the program in ...
2
votes
1
answer
118
views
Can apm-agent-java plugin be placed inside the application JAR file?
Motivation
Elastic APM Java agent does not support R2DBC. They provide a plugin API, which
lets you add custom instrumentation to the agent, which the agent will automatically apply the same way as ...
0
votes
0
answers
52
views
Unable to execute exetuable jar files
I am working with executable jar files
I have a folder E:\a which has Test.java and its .class files,
in E:\b. I have two classes Employee.java and student.java and there .class files are E:\C which ...