Solved

Add dos .exe to java application

Posted on 2010-08-23
3
396 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now