jar Questions

5

After a research in google i found good answers like: 1)using jps or jps -l to get the jars running under JVM OK with this answer but if the user has not java installed at all and i run my jar us...
Bureaucratize asked 28/2, 2015 at 18:14

4

Solved

I have the following docker file that runs a spring boot application: # For Java 11, try this FROM adoptopenjdk/openjdk11:alpine-jre # ARG JAR_FILE=/build/libs/pokerstats-0.0.1-SNAPSHOT.jar # WOR...
Simar asked 8/4, 2020 at 18:56

5

Solved

When I was trying to self-sign in the jar like below. jarsigner -keystore my keystore myjar.jar myalias It gives warning like: No -tsa or -tsacert is provided and this jar is not timestamped....
Petula asked 11/2, 2014 at 7:18

8

Solved

is it possible to run an executable jar file (command line based) in android? one of my friend told me that it is possible to run executables written in C. Is it possible for java too? I will run t...
Jobye asked 15/10, 2012 at 22:38

10

Solved

Is there any way I can read the content of a jar file. I want to read the manifest file in order to find the creator of the jar file and version. Is there any way to achieve it?
Vertical asked 23/9, 2010 at 9:39

5

Solved

i am using Linux ubuntu and i have created a java program named hola.java which is the following program code, this program works perfectly import javax.swing.*; import java.awt.*; public class h...
Tswana asked 29/10, 2015 at 1:24

10

Solved

For testing an application I am creating SOAP messages. This works when run directly from Eclipse (Oxygen.1a) but after packaging as runnable jar (option: package required libraries into generated ...
Mateya asked 9/11, 2017 at 10:46

11

I have just installed maven. I downloaded distributive, extracted files and set bin value environment variables, but when I type mvn -version in CMD I am getting message: 'mvn' is not recognized...
Anopheles asked 14/6, 2014 at 15:17

3

Solved

I have .class and .java files in JAR archive. Is there any way to extract only .java files from it? I've tried this command but it doesn't work: jar xf jar-file.jar *.java
Talaria asked 22/9, 2014 at 11:22

11

My application is built on Java EE. I have approximately 50 jars in this application. Is it possible to search for a particular keyword (actually I want to search for a keyword BEGIN REQUEST)?
Tades asked 26/4, 2012 at 9:49

5

Solved

I am using maven-compile plugin to compile classes. Now I would like to add one jar file into the current classpath. That file stays in another location (let's say c:/jars/abc.jar . I prefer to lea...
Giantess asked 4/8, 2010 at 23:3

5

Solved

As for now we have a project structure with single source folder named src, which contains source code for three modules. What I want to do is: 1) Compile source code. This is easily done with sou...
Tradespeople asked 15/11, 2013 at 18:43

7

Solved

I recently just started toying around with Maven in java. Time comes to test my project, it works fine in the NetBeans window, running the main class found in App.java (com.MyCompany.App), but when...
Midsummer asked 4/9, 2012 at 15:29

4

I have a JAR which accepts environment variable options. When I run the main class manually by setting run configuration, I provide environment variable as : KERBOROS_KEYTAB_LOC="location of the ke...
Pastor asked 15/5, 2019 at 16:19

2

Solved

Is there a way in eclipse (Helios) to package/export my JUnit test suites (or maybe even test cases if possible) as executable jars? I know how to generate runnable jars from projects with a main c...
Carrara asked 10/1, 2011 at 15:24

4

Solved

is there a java library which can handle quaternions and matrices (quaternion matrix multiplication) with all the standard operations? (i searched google and here before - but didnt find any adequ...
Uncloak asked 15/10, 2012 at 13:54

20

Solved

Running a .jar file in a command line works fine, but i am not able to run any .jar file by double clicking on my Windows 7 (64). It seems nothing happens after the double click. I tried the ftype...
Corcyra asked 14/12, 2011 at 20:17

7

Solved

What is the difference between the maven scope compile and provided when artifact is built as a JAR? If it was WAR, I'd understand - the artifact would be included or not in WEB-INF/lib. But in cas...
Diplodocus asked 11/7, 2011 at 7:24

2

Solved

I'm compiling my project with mvn clean package, and failed with package does not exist. The detail command: Get the jar file target/xxxx.jar by running mvn clean package in source project. inst...
Spermaceti asked 3/8, 2017 at 8:39

10

I'm using IntelliJ 11.1.3 and I'm trying to attach two external libraries in the form of jarfiles to use in a module. I've added them in project structure -> module -> dependencies and they show up...
Earnest asked 15/8, 2012 at 2:13

41

Solved

I want to execute my program without using an IDE. I've created a jar file and an exectuable jar file. When I double click the exe jar file, nothing happens, and when I try to use the command in ...
Profligate asked 14/8, 2012 at 0:1

5

spring boot project, build as a executable jar, but I found cannot extract the executable jar, e.g. jar xvf spring-boot-foo-0.0.1-SNAPSHOT.jar nothing output. But when extract a normal jar, it i...
Replication asked 13/6, 2016 at 6:27

9

Solved

How do I add config files or any other resources into my jar using gradle? My project structure: src/main/java/com/perseus/.. --- Java packages (source files) src/main/java/config/*.xml --- ...
Grimaldi asked 13/7, 2014 at 15:39

5

I'm using Maven to build a Java project, and I've got a couple files, CHANGELOG and LICENSE, that I'd like to copy to the META-INF directory inside the JAR file. So far what I've got working is th...
Nitrous asked 8/8, 2016 at 15:39

21

Solved

Why is it so hard to do this in Java? If you want to have any kind of module system you need to be able to load JAR files dynamically. I'm told there's a way of doing it by writing your own ClassLo...
Anguish asked 13/9, 2008 at 18:48

© 2022 - 2025 — McMap. All rights reserved.