jQuery in Action, 2nd edition*
The moose likes Linux / UNIX and the fly likes how to run a .exe file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to run a .exe file" Watch "how to run a .exe file" New topic
Author

how to run a .exe file

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
I am using Linux Fedora

How do we run a .exe file on OS.

What are the commands we need to use

Can we run a binary file on Linux
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

".exe" files are executables for DOS or Windows; they don't run directly on Linux. You need to use some special (but readily available, and possibly already installed) software that will let you run the *.exe file. For DOS executables, you can use DOSEMU. For Windows programs, WINE does what you need.


[Jess in Action][AskingGoodQuestions]
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
When I tried running an exe file.
I am getting the following error message:


An error occurred while loading the archive.

Command line output says:

[/home/opensource/Desktop/.exe]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: /home/opensource/Desktop/.exe may be a plain executable, not an archive
zipinfo: cannot find zipfile directory in one of /home/opensource/Desktop/.exe or
/home/opensource/Desktop/.exe.zip, and cannot find /home/opensource/Desktop/.exe.ZIP, period.



How do I resolve this error
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

You have a file which is named ".exe" (i.e., just ".exe", nothing before the dot)? What command exactly did you try to run? The error message looks like you're trying to unzip it, but it isn't a ZIP file.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
The file name is 101GoldenKeys.exe.

Its actually a book I tried to open on Linux.The above message is getting displayed.

Is it not possible to open this file on Linux OS.
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
I didnt run any command.I just double clicked on this file.exe icon.

The same file I can open on Windows Vista.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9950
    
161

p hasini wrote:I didnt run any command.I just double clicked on this file.exe icon.

The same file I can open on Windows Vista.


Did you read the first reply that you got in this thread?
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
Yes.

You need to use some special (but readily available, and possibly already installed) software that will let you run the *.exe file. For DOS executables, you can use DOSEMU. For Windows programs, WINE does what you need.

I dont know how to execute the command in Linux.I am new to Linux software.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9950
    
161

p hasini wrote:
I dont know how to execute the command in Linux.

Which command?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9950
    
161

Follow the instructions in the link which Ernest posted.
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
ok. Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to run a .exe file
 
Similar Threads
Working with Java in Linux - how to execute exe files
program running problem
running a java program
How to run a commandline command from a java program
C++