Solved

Add dos .exe to java application

Posted on 2010-08-23
3
405 Views
Last Modified: 2013-12-14
Can I hand someone a .jar file that has a dos .exe ('7z.exe' in this case) wrapped inside it so I do not have to reqire my user to have this .exe installed and in their path?
0
Comment
Question by:RichardSDetsch
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
JIEXA earned 500 total points
ID: 33602040
Yes, you can pack any type of file in a JAR file. But you cannot run them just from that JAR file. You need to extract this file first to [a temporary] location.
0
 

Author Closing Comment

by:RichardSDetsch
ID: 33602947
Another way is to extract and place in the users PATH or have the user place the exe in their PATH.  Anyways I am useing java.util.zip it is pain for I have to specify ZipRoots but it work.
0
 

Author Comment

by:RichardSDetsch
ID: 33602952
Sorry, zipentry not root
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet filter example 37 72
How to determine if a string is a valid SHA value 7 36
SequenceInputStream example 3 19
How to configure empty element in XML Document parser? 15 36
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question