The tag has no usage guidance.

learn more… | top users | synonyms

-2
votes
1answer
35 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, ...
0
votes
0answers
224 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 ...
2
votes
1answer
31 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!!!
0
votes
0answers
24 views

Unable to copy jar files from Windows 7 to USB external encrypted Hard drive

As per the title I was trying to perform a backup on my company laptop running Windows 7 Enterprise SP1. I usually did it successfully in the past but today the backup program (Cobian 11) was not ...
0
votes
2answers
2k 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
1answer
154 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
149 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 ...
2
votes
2answers
3k 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?
1
vote
1answer
694 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 ...
1
vote
2answers
617 views

How to stop a running jar file in a bash script after 5 minutes and start the next one?

I have to run a jar file with different parameters like this: #!/bin/bash cd /Users/hawkarhama/Desktop/RUN echo $(java -jar IPM.jar 0 20 3 sign.txt) echo $(java -jar IPM.jar 1 20 3 sign.txt) echo ...
2
votes
2answers
14k 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 ...
0
votes
3answers
5k 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 ...
0
votes
1answer
3k 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 ...
0
votes
1answer
29 views

Copying Jar files into single zip file

I am trying to compress the hundreds of jar files into a single zip file that can be transferred to a different location. Please help.
5
votes
1answer
2k 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 ...
15
votes
5answers
17k 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
1k 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
2answers
1k views

Corrupt usr/bin/java

I just did a pretty stupid thing, when I tried to copy JSTestDriver.jar into usr/bin/java by typing this command: cp jsTestDriver.jar usr/bin/java. Now every 'java' command in terminal just prints ...
0
votes
1answer
91 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
3k views

Can't change default .jar opener from Command Prompt to Java SE Binary

A while back I changed my default opener for .jar files to cmd, as I was writing a few console applications in java and wanted to be able to run them easily (I now know that you can a similar result ...
0
votes
1answer
928 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 ...
2
votes
2answers
177 views

use pipe inside a find exec statement

I'm trying to find which jar contain a class, I wrote the below, which doesn't seem to work any ideas? find -type f -name "*.jar" -exec jar -tvf "{}" \| grep MyClass \; -ls
1
vote
0answers
67 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 ...
1
vote
1answer
326 views

Eclipse with JAR - Classpath on OpenSuse 12.1

howdy! well i am brandnew to eclipse - i never ever used it so far! i run a OpenSuse Linux Version 12.1 - and all works fine. i am currently tryin to install the OSMGenerator - a tool that allows ...
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 ...
1
vote
1answer
2k views

Installing a Java Jar file on Ubuntu 11.10

Is there a way to package a jar file (for example, a .deb) and install it on Ubuntu 11.10. Basically I want to automate the installation of Jar file when I create a Ubuntu VM (using KVM). Thanks.
7
votes
3answers
2k views

“file.myext” is not a valid Win32 application

I have written a registry that creates .myext. Double-clicking on my file.myext refers to my executable file (converted from a batch file that opens a .jar) which then opens my notepad application. ...
1
vote
3answers
9k 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 -> ...
2
votes
1answer
3k views

How to Simulate Jar files on PC

Sometimes it happens that after downloading a Jar file for an App, there appears to be several catch with it, like activation code required. Is there any tool that I can use to simulate the Jar file ...
2
votes
1answer
987 views

How do I delete the meta-inf folder in minecraft.jar?

When I open the minecraft.jar file with p7zip on Linux, I can't delete the META-INF folder. This is the error: Error: /home/davide/.minecraft/bin/minecraft.jar is not supported archive System ...
5
votes
2answers
27k 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.
2
votes
1answer
3k views

Is there a Midlet emulator that emulates custom screen sizes, reading from flash card, web access, camera and bluetooth?

I have a lot of Midlets (Java apps, *.jar, for mobile phones) and I would like to test in my computer before using on my mobile. There are some programs (like MidpX) that can emulate some of them, ...
3
votes
2answers
5k 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
2answers
891 views

Ubuntu Package (.deb) Recommendations Installation Folder and Binary Name

I'm building a .deb file for an executable jar I've built for myself. I got a .deb built and installed my program to /usr/bin. As I have a jar I now had an executable file called ...
6
votes
2answers
10k views

How do I easily elevate when running a .jar file?

When trying to run an installer Jar file, I am getting an error saying that write access is denied to create a directory under the Program Files folder. Right click -> Run as Administrator is not ...
2
votes
2answers
115 views

Is it possible to install software in such a way that the user can't remove it?

Let's say a program is contained entirely in a jar or exe. Is it possible for this program to propagate itself such that the user can't possibly remove it from the machine? I'm wondering how much ...
0
votes
4answers
14k views

Java .jar files to run on double-click

How can I configure .jar files run on double-click in Windows 7?
0
votes
1answer
2k views

How to trust a jar file in IE

We are testing a java application with an unsigned jar file (which we'll sign in time). One tester, on being prompted with standard security warning, selected NO to not trust an application jar file. ...
2
votes
2answers
506 views

How to get a specified file extracted from a JAR file using a batch file?

I have a test.jar file on windows and I want to use 7-zip to get a certain file from outside of the archive, such as the "com/app/test/FILE.class" file. I only have access to java, 7-zip, and the ...
3
votes
2answers
18k 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 ...
1
vote
1answer
1k views

Why it is impossible to delete entries from jar file?

It is possible to add new entries to jar file using jar tool. It is possible to modify some entries in jar file using jar tool. But it is impossible to delete some entries from jar file. Why?
1
vote
1answer
3k 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
2k views

unable to access jarfile alliance.tmp

I've just installed the p2p software Alliance. Whenever I'm trying to open Alliance a "Java Virtual Machine Launcher" window pops up with this error message: "unable to access jarfile alliance.tmp". ...
4
votes
1answer
3k views

Windows' “open with” with java and a jar file

I use the rest-client to test REST APIs. It is basically just a .jar file, that is called via java -jar rest-client.jar. The rest-client uses two file extensions, in my case .rcq, to store data in ...
1
vote
1answer
372 views

executing a .jar

I have a simple .jar file, when i run this: >java -jar SLA.jar It works correctly, however when i run >SLA.jar Nothing happens at all, i thought that these were meant to be the same the ...
30
votes
4answers
23k views

Can you configure Windows to open JAR files like ZIP files without a 3rd party tool?

I'd like to be able to examine the contents of a JAR file without having to install Winzip or some other tool and without having to rename the file. Windows Explorer can open ZIP files just fine; is ...