?
Solved

Add dos .exe to java application

Posted on 2010-08-23
3
Medium Priority
?
416 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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month16 days, 19 hours left to enroll

862 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