• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 419
  • Last Modified:

Add dos .exe to java application

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
RichardSDetsch
Asked:
RichardSDetsch
  • 2
1 Solution
 
JIEXACommented:
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
 
RichardSDetschAuthor Commented:
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
 
RichardSDetschAuthor Commented:
Sorry, zipentry not root
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now