We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jar]

Questions about the Java Archive (JAR) package file format.

Filter by
Sorted by
Tagged with
-4
votes
0answers
27 views

https://repository.cloudera.com/artifactory/cloudera-repos/ name and services unknown

After maven is installed in Ubuntu and execute the command mvn install -Dmaven.test.skip=true, the installation process stops with this failure: [ERROR] Failed to execute goal on project mahout-...
0
votes
1answer
2k views

Cannot delete jar from lib/ext folder

I've added a jar in the extension folder of my JRE (lib/ext) in order to provide an extension code to my applications. Now I want to delete this jar, but I cannot. The error message says: Cannot ...
4
votes
5answers
18k views

Unable to run .jar files by double-clicking them on Windows 7

Running a .jar file in the command line works fine, but I am unable to execute .jar files on my PC by double-clicking them. What is interesting, the same .jar files successfully execute on my laptop ...
0
votes
1answer
23 views

How do I output content of specific file from zip achrive by `jar:` URL in Linux?

Given URL like jar:file:///path/to/some/file.jar/path/inside/zip/hello.txt, how do I uncompress and output specified file from specified archive automatically? A script using unzip or jar or 7z can ...
0
votes
1answer
3k views

Execute a jar with double click in linux

What I'm trying to achieve is to run a java program on any Linux system (Ubuntu, Fedora, etc... covering as much as possible) by simply double clicking a file-like I would on Windows. I have created a ...
1
vote
1answer
680 views

Run artifact (.jar) in Eclipse after Maven build success

I'm working on a Maven project, and after resolving many configuration problems, finally I am able to build the project successfully in Eclipse. After selecting maven install and seeing build success, ...
1
vote
1answer
4k views

I can not start a .jar-file by double-clicking, only from command-line in Windows

I have a Java application in a .jar-file. I can start it by typing java -jar myapp.jar and the application starts, but if I double-click on the .jar-file, nothing happens. What can be wrong? How can I ...
0
votes
1answer
19 views

When I open Java, .jar files are not opened

I have installed the latest version of Jave, but when I run it, the command line screen comes and goes immediately. I am using Windows 10. What can I do to fix this?
0
votes
0answers
17 views

linux - can't run graphical java application from terminal, throws NoClassDefFoundError

I have a jar file which I would like to create a desktop icon and a menu entry for in the cinnamon desktop environment. When I double click the jar file or open it with right click -> Open with: ...
0
votes
0answers
23 views

.jar File won't work for some reason

I wrote and compiled a java program and the resulting files are (HelloWorldSwing.java), (HelloWorldSwing.class) & (HelloWorldSwing$1.class) as shown in the image The files are in a package called ...
0
votes
0answers
7 views

How do I deal with JAR executable files? Using Main-Class and the Class-Path?

I am new to handle the JAR files, I have below requirements. I have set off.JAR executable files, the purpose of this JAR file is to communicate to the UDP server. Below is MANIFEST.MF file. ...
1
vote
2answers
454 views

Jar file opens with internet explorer

I downloaded Optifine, it's a jar file, after that i installed Java to install optifine with the jar file, but the jar file opens with internet Explorer prompting me to download the file again. This ...
-2
votes
1answer
39 views

Services prefer to block executable files, why is that?

I have been having a discussion with a friend of mine about executable files, more specifically .jar and .exe files. When you download a file from your browser it usually asks for permission to store ...
0
votes
0answers
87 views

Launching an executable .jar on computer start so that when windows logs in the user does not see the Windows Desktop

I am new to this side of the forum, so hopefully this is not off topic. I wish to run an executable .jar file before the windows login screen is ever shown to the user so that when windows logs in to ...
0
votes
0answers
30 views

Why Eclipse is not creating jar files while configuring maven project?

Why Eclipse is not creating jar files while configuring maven project?
0
votes
2answers
38 views

jar file doesn't finish installing

I want to install: landserf230WindowsInstall.jar I have: Windows 7 & the most recent Java (jre-8u211-windows-x64) What I've tried: When I run cmd as admin and paste the path file of the jar ...
0
votes
0answers
27 views

How to update Procfile without redeploying the webapp

I am using the Heroku CLI Deploy to deploy my Spring Boot Webapp to Heroku as jar file. Now I want to change only my Procfile. Changing it locally and executing heroku restart -a mywebapp does not ...
1
vote
1answer
51 views

Can’t open “.jar” files after Java update on macOS

Ever since I updated my Java version (around 3 updates ago) it stopped opening .jar files on my computer. I get a pop-up that says: “The java jar file could not be launched check the console for ...
0
votes
0answers
380 views

Need Help overcoming this error: 'jar' is not recognized as an internal or external command, operable program or batch file

So Im trying to run the command jar -cf wordcloud.jar * to try to create a file called wordcloud.jar but i keep getting the error 'jar' is not recognized as an internal or external command, ...
0
votes
0answers
43 views

Jarsigner giving blank or no response on Mac

The jarsigner binary was found on /usr/bin and I added the path using export command. After running the jarsigner command, the command was looking for the existence of the binary in $JAVA_HOME and was ...
9
votes
4answers
18k views

How to pin an executable jar to start in Windows 10?

I tried creating a normal shortcut, and a javaw.exe shortcut, which creates the context menu option "Pin to Start", but that does nothing.
0
votes
0answers
517 views

Missing artifact Errors in pom.xml with dependencies

POM.XML Screenshot After that, the project showed me 4 errors in my pom.xml http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 <artifactId>wearsafe</artifactId> <groupId>com....
11
votes
2answers
38k views

How to replace a file in jar with command line in linux?

I have a jar, and I need to replace a class in it, at this moment, I can only open it with "archive manager" and then drag and drop the new compiled class into the jar, but I think this is really ...
0
votes
0answers
75 views

OutOfMemoryError when running jar file on a ubuntu VPS

I have a jar file that i used to run on my windows 10 and it works fine no problem. I was trying to run it on my vps server, which has ubuntu server 18.04 with mate desktop environment but it throws ...
0
votes
0answers
309 views

Need workaround for: 'attempted to open sandboxed jar “+ url +” as Trusted-Only' error

I used to be able to access my work computer remotely from my personal computer at home through VPN (with Cisco AnyConnect). However, now when I try to the following error pops up: "Application Error ...
1
vote
0answers
142 views

How do I export a JAR without all the project files (just the src) in Intellij?

I'm currently using Eclipse as the IDE for a project but I'd like to work with intellij. When I export this project in Eclipse, I get the standard jar (its size is about 80MB). When I try to make an ...
10
votes
3answers
28k views

How to search for a file in war,ear and jar files recursively in Linux

I need to search for a file (logo.png), in a folder that contains war, ear, and jar archive files. Can anyone help me with the command?
0
votes
0answers
530 views

Windows 7 Jar not running with double click

I have the following problem: I wrote a program in Java for a community and they're trying to run it. They installed Java and tried double clicking it but nothing happened. Under my remote ...
2
votes
3answers
14k views

How can I use Task Scheduler to schedule a .jar file?

I have an executable jar file and I am trying to create a scheduled task for every day using windows Task Scheduler I go through the following steps: open Task Scheduler -> Create Basic Task -> ...
1
vote
2answers
1k views

How do I run this JabRef JAR file I downloaded?

I downloaded a jar file from here. But - I don't know how to get it to run. Here's the error I get: $ java -jar /path/to/JabRef-4.1.jar Error: Could not find or load main class org.jabref.JabRefMain ...
0
votes
3answers
7k views

Can not open “.jar” file in windows 8

I downloaded a jar application named Need for speed most wanted. I double clicked on the jar file icon, however it did not execute. I checked I have jre installed in my windows 8 (64 bit) machine in ...
47
votes
8answers
58k views

Is there a way to edit files inside of a zip file without explicitly extracting them first?

I sometimes need to make changes to a .zip or .jar file, so I usually move the file to /tmp, extract all the files with unzip, edit a few files, and then re-zip up the files. This works, but it can ...
0
votes
1answer
6k views

Adding a jar file to CLASSPATH is still not executable

Perhaps I just don't understand how the whole CLASSPATH environment variable works when trying to find .jar files on your system. I thought if you specified it, you could launch .jar files with java ...
1
vote
1answer
92 views

Problems in building a Github Java project

This is a follow-up question from my previous question. I was initially trying to just install and run with the executables, but now I am trying to build the project located at: https://github.com/...
5
votes
2answers
29k views

How do you remove META-INF from minecraft.jar without any manual file deletion?

How can I remove META-INF from minecraft.jar, without administrator privileges? I can't install new software.
1
vote
2answers
207 views

Windows 10 how to create a command line program

I've just downloaded swagger-codegen-cli (doesn't matter what it is, it's just an executable jar) in a Windows 10 OS, which runs from the command line. So to execute it I must go to the corresponding ...
0
votes
1answer
587 views

MAC OS - Terminal command to set JAR program to run at startup?

This is where MAC OS stores its start-up items, /Library/LaunchAgents How to set a JAR program from Terminal to run at startup? Also how to remove existing program from startup?
7
votes
2answers
8k views

Editing a .jar with `vim`

On an Amazon Linux instance I'm trying to edit a jar file remotely through putty. vim provides a convenient navigator, which displays a prompt with a list of the contained files in the jar: > vim ...
0
votes
1answer
458 views

Problems with running jar files

Introduction. I love Minecraft. So I want to play it with my friends. I downloaded minecraft_server.jar file, but when I run it I see "A Java Exception has occurred." When running other jar files, ...
0
votes
1answer
1k views

How do I run multiple jar files from shell or cmd, and have all of them use different proxies?

I'm trying to run a jar file through a socks proxy. If I only had one jar, it would probably work to just change system variables, but I need to run like 20 jar files at the same time, all with ...
0
votes
1answer
508 views

Command-line to run executable JAR with configuration

How to run the executable JAR file with a specific configuration? My code can be run in Eclipse with the run configuration " 9001 12.123.23.43 9001 " Now export the executable jar file and hope to ...
0
votes
0answers
794 views

Unpacking and then repacking a war file using batch command is increasing the size of the war file

I have a war file named CheckIn.war. I use the following batch command to unpack and then pack the war file. I also use a java code to change a value in an xml file after unpacking. jar -xvf CheckIn....
-1
votes
1answer
314 views

Why is plain jar file compressed to 76% but after ProGuard shrink & obfuscate; it is compressed to 102% ?! How to fix?

I have a jar file of size 392 MB. I made another copy of it, so I have now two copies of the same jar file. For one of them I used 7-zip to compress it. It is compressed to 76% of the original size, ...
1
vote
0answers
3k views

How to run .jar file on Mac 10.11 without installing Java?

So I made an application using Java swing and converted it to a .jar file and would like to share it with my friend. However, he is not a programmer so his computer needs to install Java bloatware to ...
3
votes
1answer
418 views

why doesn't `find . -name '*.jar' | xargs jar tf` work?

I ran this find . -name '*.jar' | xargs jar tf hoping it would, find all the .jar files and execute jar tf on them (to view the content). But it didn't seem to work!!!
3
votes
2answers
7k views

Finding which jars contain a file

With Windows XP, I recall being able to using Windows Search to find which jars in a dir contain a specific class file. But on Windows 7, this no longer seems to work. I've got the Search option ...
0
votes
1answer
1k views

Where is the Java Jar icon located?

I'm trying to find what dll or folder the jar icon for Java is located in. it looks like I'm referring to the complete icon you see in the picture, complete with the paper backing. I've already ...
0
votes
1answer
328 views

I can't run a jar file with

OK, so I can't run jar files of any sort on my windows 7 pc, the one in particular I'm trying to use is the forge installer for minecraft so an installer window should open when i double click the ...
1
vote
1answer
3k views

How to make a java jar file to be a single file executable?

I have a jar file with a main class in it. The main class is already configured in the manifest file, meaning the jar can be executed in the following way: java -jar Main.jar I'd like to make it ...
3
votes
2answers
34k views

Shell Script to Start and Stop an Executable JAR in Linux Environment

I have to write a start and stop script for an executable jar (e.g., executable.jar). How to do it using shell scripting? I got success to do it for Windows environment with .bat file. But not able ...