Questions tagged [jar]

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

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
140 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 ...
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 ...
1
vote
0answers
72 views

Export files directly into the jar

How would I go about exporting the files directly into the jar, instead of it in a directory? For example, here's my project tree: project name src folder package Java class ...
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
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. ...
0
votes
0answers
73 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
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 ...
0
votes
2answers
36 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
365 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 ...
0
votes
0answers
508 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....
0
votes
0answers
74 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
305 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 ...
0
votes
0answers
527 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 ...
0
votes
1answer
584 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?
0
votes
0answers
793 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....
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 ...
0
votes
1answer
118 views

Problems to open jar file

I use mac with mountain lion and java u update 21. When I try to open the file with a double click, I get the following error: java file.jar could not be launched, or sometimes not after the double ...
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 ...
0
votes
0answers
1k views

.desktop shortcuts aren't working for java applications in LXDE

I just installed minecraft on my LXDE desktop/Lubuntu machine and I'm trying to create a .desktop file on the desktop that executes java -jar ~/minecraftlauncher.jar. The command works in bash scripts ...
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 ...
-3
votes
0answers
24 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-...