Most voted "jar" questions
Jar (Java Archive) is a compressed file used to distribute a set of Java classes, a java application, or other items such as images, Xmls, and more. It is used to store compiled classes and associated metadata that can constitute a program.
Learn more…66 questions
Sort by count of
-
12
votes4
answers77025
viewsHow to run . jar with prompt?
I’ve managed the jar file for Netbeans, but I’m unable to run the program at the command prompt. What command to run it in Windows environment?
-
9
votes2
answers6704
views -
6
votes3
answers4083
viewsRunning jar in client from browser
I need to run a jar file that should be on the client’s pc over the web and pass some parameters to this jar, I managed to do this with the exec() php: exec('java -jar…
-
6
votes2
answers758
viewsWhat is Fat JAR?
In my daily studies on Java on the Internet, I found some references and comments from programmers using this name "Fat JAR", in the context of configuration and deployment of Java applications. As…
-
5
votes1
answer1211
viewsHow to include a jar when running a Java file per command line
Every time I run the program I need to call a specific library, which in this case is /home/usuario/Programas/weka-x-x-x/weka.jar, but every time I run the program, I have to include the following…
-
5
votes3
answers534
viewsReduce jar size in Maven Design
I’m generating a jar from a Maven project and the size is absurdly high. What measures can I take to reduce the size of this jar?
-
5
votes1
answer154
viewsEclipse executes the ANT xml buildfile 2 times, even if it only has one run
In netbeans, after a few searches, I was able to edit the file build.xml in order to customize the way the IDE generated my jar and my manifest file. I had to migrate some projects to the eclipse,…
-
4
votes2
answers2530
viewsMaven - Configuring the Mainclass
Problem: When I create a JAR for eclipse it works smoothly, but I’m trying to enjoy the JAR that the Maven is creating and I realized that it does not perform, because my class main is not in the…
-
4
votes1
answer107
viewsDebug Java in Eclipse, excluding classes/packages
My application uses JSF/Hibernate, and a number of other add-ons (jar). When I have to thresh, a page, he stops at breakpoint and after a few Steps (debug) it falls inside the jar of the JSF. You…
-
4
votes1
answer1940
viewsMaven: Generate JAR with Dependencies / Directory recources
I’m very lay with Maven and the fact that there is a lot of material on the Internet I ended up getting lost as I perform the operation below: I need to generate the JAR Runnable of my project with…
-
4
votes2
answers378
viewsLibrary loading at runtime
Is there any contraindication in loading libraries .jar at runtime? I found this code that does this: URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader(); Class sysclass =…
-
3
votes2
answers4563
viewsHow to create an executable in java + Mysql database?
I created a java desktop application that connects to a Mysql database, how can I generate this application to run on any machine along with my database? Thank you!
-
3
votes1
answer1231
viewsJar does not execute.
I’m having a problem running a jar file. that I made. When I click on run nothing just happens, no window opens, no error message or anything. In the folder of Meta-inf has the file MANIFEST.MF…
-
3
votes1
answer1585
viewsGenerate Runnable Jar from a Maven project
I am having difficulty generating a Jar file from my application from Maven, I followed the following tutorial. Mkyoung.com It comes to generate the Jar but with a super reduced size and at the time…
-
3
votes2
answers1093
viewsWhat allows Java to find out which is the main class in a . jar
How Java Does to Figure Out Which Main Class in a File .jar
-
3
votes0
answers23
viewsError creating new CSV + Javafx + Windows file
Good morning, everyone. I have a java desktop (javafx) application that saves some configuration data in a CSV file. The jar of the same works perfectly in both OSX and Linux, but not in Windows, I…
-
2
votes1
answer368
viewsProgrammatically close jar
Currently I have a program JAVA(main), which from it calls another program JAVA (son)... this is OK.. but when I close the main program, I also want to close the son program. I’ve tried to:…
-
2
votes2
answers1138
viewsNetbeans - How to Generate a Jar with Dependencies without Maven
I have a project in Netbeans, but I only know Maven and have some project dependencies. If you build or even run Netbeans everything works smoothly, but I wanted to get the jar and test on other…
-
2
votes2
answers891
viewsObfuscating Java code with Proguard
Problem: I’m getting warnings of Proguard and with it I can’t outshine my .jar, this is the first time I’ve received these warnings and with that I can’t finish the obfuscation. Image with details…
-
2
votes1
answer265
viewsDifficulty Creating . JAR in Netbeans
I’m trying to create a . JAR in Netbeans, but I get the messages : C: Users Admin Desktop Project nbproject build-impl.xml:993: The following error occurred while executing this line: C: Users…
-
2
votes1
answer877
viewsHow to reference a jar from another project in Eclipse
I’m doing a project to test iReport reports, and I was wondering if there’s a way not to include the same jars that already exist in a particular project. Eclipse itself offers the option to…
-
2
votes1
answer443
viewsPermissions and antivirus issues to run the application
I created an application in Java and generated an executable . JAR, which works perfectly, after this I used the Launch4j which transforms my . JAR into . EXE and then I used Installcreator to…
-
2
votes1
answer2316
viewsProblems with the . jar
Good morning guys, good I have a Maven project running over Netbeans however, the .jar generated says at time of execution: "no major manifest attribute in example.jar". I heard there might be some…
-
2
votes2
answers842
viewsHow to add a JAR library to a Java project without IDE?
Save. I’m having trouble adding the Jfreechart library to my Java project (using Windows 8). I’ve unpacked Jfreechart, but I don’t know what to do from there. Since I’m an old school programmer and…
-
2
votes1
answer205
viewsReason for Incompatibleclasschangeerror
I recently noticed some error messages in my code, the message that appears is this: Exception in thread "Thread-3" java.lang.Incompatibleclasschangeerror The strange thing is that it only happens…
-
2
votes1
answer241
viewsHow to generate JAR and POM project by following the Maven repository layout?
I have a project where I need to generate the jar and pom following the same method as the plugin Maven-install-plugin generates within the local repository, as in the return that is given when…
-
2
votes0
answers548
viewsJAR Executable much slower than running by Netbeans
Good morning, I have a project in netbeans that uses Maven to build an executable jar, so far so good. The problem is that when I run the project by ". jar" that is generated by Maven, execution…
-
2
votes1
answer343
viewsFile reading in the IDE works and at the time it generates the . jar does not work
I have an application that reads a text file that is in the same folder where the application is. When I run the program in netbeans it reads the normal file: But when I Gero the JAR it does not…
-
2
votes1
answer197
viewsAccent problem ( -jar mysql)
Hello, I made a program in Java that inserts several texts in a database, running from my machine (Mac Os), everything works very well. But, putting in a VPS (Windows) for the program to run 24/7,…
-
1
votes1
answer6165
viewsHow to create a . jar file appropriately?
I, who am totally new to Java, am trying to compile a "Hello, World!" project. I followed a few steps of this topic Stack Overflow in English. I followed all the steps, but when I open my jar, it’s…
-
1
votes1
answer504
viewsexec() does not execute the past command
I’m trying to use the function exec() from PHP to run a file. jar (I know it’s not good practice, but it’s the only solution I have at the moment), but I’m not getting good results. The code in…
-
1
votes1
answer2086
viewsJava program only works on the development machine
I created a Java application in Netbeans. This application has a GUI and uses some external Jars. After doing Clean and Build in the Netbeans dist folder a Jar (main class) and a folder named lib…
-
1
votes2
answers259
viewsCreate two jar with the same pom by eclipse
How to create a pom in the Maven that manages by eclipse two files. Jars, where one will have the files . class and the other . jar will have the sources ( .java files) doing only one install.…
-
1
votes1
answer54
views24x5 process in jar how to convert to . War
I created a jar to calculate forex signals, but I’d like to host it on some cloud server. As I’ve been researching, it will be much easier to convert it to a War. Since my app should run 24x5, I…
-
1
votes0
answers112
viewsUsing libraries . jar in Embarcadero
Good afternoon to all Searching found several spoken posts about java2po and its function of converting libraries . jar to Delphi language. I managed to perform the conversion of some libraries that…
-
1
votes0
answers127
viewsUnable to build Entity manager Factory in jar created with Maven
Good morning, everyone, In one project we’re using Hibernate, Log4j2, Gson and a few other things that you can see in pom.xml <?xml version="1.0" encoding="UTF-8"?> <project…
-
1
votes2
answers701
viewsIn Netbeans it works, not in Jar
I know you have some similar topics, but none of them answer my question. I created a program to insert information into the database and it works perfectly when I have netbeans compile. I made the…
-
1
votes1
answer1222
viewsHow to sign file . jar with A3 certificate?
I’m developing a web project and I needed to develop a applet with the language Java for some functions. The browsers are complaining about the security issue and, researching, I found that I have…
-
1
votes1
answer470
viewsProblems with Jars
I have a Spring application that uses Maven. All the dependencies are in the file pom.xml or the Jars are in my repository .m2 local. Every time I try to run the application the following messages…
-
1
votes2
answers520
viewsCreate . jar of a multi-package project, without IDE and on the command line
When doing a search for the websites of Stack Overflow, I realized that all topics only teach how to create the file . jar of a single class or even teach how to create the . jar of an entire…
-
1
votes1
answer129
viewsImages and css do not load on the page when executed by the jar
Hello, I see you’ve had similar questions to my own but you haven’t answered my question. I’m developing an API that goes into a database, takes the data and returns a pdf report using Thymeleaf and…
-
0
votes1
answer1170
viewsProtecting Source Code ( Encrypt .jar )
I have an application and would like to protect my source code, which is the safest and correct way to use ??
-
0
votes1
answer65
viewsAndroid not finding class inside a Jar. What to do?
This is the mistake:java.lang.ClassNotFoundException: br.org.projeto.precos.bean.Lista where the "br.org.projeto.precos.bean.Lista" is the Jar from which I am trying to use a class. I imported…
-
0
votes1
answer472
viewsHow to generate a jar through ANT?
I’m using Jdeveloper in conjunction with Ant, however I came across a very boring situation... I can’t generate one. functional jar through ant. I have already built a build.xml that contains the…
-
0
votes1
answer612
viewsHow to extract images and sounds and music in the jar file from any Gameloft java games?
I have a mobile game in Gameloft’s JAR Format I can’t see where the images and sounds and music are. I only see some bin files (Conditionexpr.bin and Resinfo.bin), some class files (a. class,…
-
0
votes1
answer1017
viewsHow to move the Netbeans project to a . jar file?
I just did a project in Netbeans and would like to turn it into a app to run on PC, so I want to turn it into .jar. How to do this?
-
0
votes1
answer522
viewsHow to run a . jar using java jdbc on another machine
I’m a beginner in java, I made an application using the netbeans native database. Gero the file jar, and in the machine I made the application the jar runs normally, but when I put this jar on…
-
0
votes1
answer368
viewsCreate a executable from a Java application
I made an application that has a timer to look in a certain directory of 2 in 2 seconds, well when I am running the application in Netbeans it works normally, but I tried to create a JAR of this…
-
0
votes1
answer848
viewsConvert . Jar to . Dex
Speak people! I decompiled an apk and it generated a class.dex. file I was able to turn that file into . jar and now I want to go back to .dex. How to do this?
-
0
votes3
answers210
viewsLoad Tomcat into Java Desktop application
After a lot of pain, I was able to develop a Java application, with graphical interface (swing), which simulates access to a particular site and extracts data. The problem is that as it simulates a…