Solved

Add dos .exe to java application

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
robocopy vs xcopy vs copy 8 89
github account with ecipse 1 42
PHPStorm debugging issues 1 23
access denied when running native SQL tool: SQLIOSIM 2 23
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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.

911 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

20 Experts available now in Live!

Get 1:1 Help Now