Questions tagged [executable]

An executable is a binary file that can be executed by the operating system.

An executable is a binary file that can be executed by the operating system.

3697 questions
25
votes
3 answers

Exec format error 32-bit executable Windows Subsystem for Linux?

When I try to execute a 32-bit file compiled with gcc -m32 main.c -o main on Windows Subsystem for Linux, I get the following error: bash: ./main: cannot execute binary file: Exec format error. If I compile it without -m32 it runs. Any solution for…
25
votes
6 answers

How to package an Electron app into a single executable?

Using electron-packager I can create a 'packaged' version of my JavaScript application for various architectures and platforms. However, it does not package each build as a single binary which I can distribute. When looking for alternatives I found…
Kees
  • 353
  • 1
  • 3
  • 5
24
votes
1 answer

Compiling Binaries with Clozure Common Lisp

Given a simple program such as the following, how would you: compile it as a seperate image file to be loaded by the implementation, and what command line arguments would you use to load it? Compile it as a standalone binary that can be loaded…
BlueBadger
  • 898
  • 3
  • 10
  • 20
24
votes
2 answers

How to pass arguments from wrapper shell script to Java application?

I want to run Java programs I am creating at on the command line (linux and mac). I don't want to type "java" and arguments all the time, so I am thinking about creating wrapper scripts. What's the best way to do this so that they work everywhere?…
gonzobrains
  • 7,856
  • 14
  • 81
  • 132
24
votes
3 answers

How to make a call to an executable from Python script?

I need to execute this script from my Python script. Is it possible? The script generate some outputs with some files being written. How do I access these files? I have tried with subprocess call function but without…
fx.
  • 1,217
  • 3
  • 10
  • 17
24
votes
1 answer

Usage differences between. a.out, .ELF, .EXE, and .COFF

Don't get me wrong by looking at the question title - I know what they are (format for portable executable files). But my interest scope is slightly different MY CONFUSION I am involved in re-hosting/retargeting applications that are originally from…
ha9u63a7
  • 6,233
  • 16
  • 73
  • 108
24
votes
2 answers

Creating an executable jar file from a clojure project?

I have a clojure project that uses the slick 2d game engine that I am trying to run as an executable jar file. I created the project in both Netbeans and Eclipse and I have had no luck exporting them into an executable format. It keeps giving the…
toofarsideways
  • 3,956
  • 2
  • 31
  • 51
23
votes
2 answers

Why can an executable run on both Intel and AMD processors?

How is it that an executable can work on both AMD and Intel systems? Aren't AMD's and Intel's instruction sets different? How does the executable work on both? How exactly do they compile the files to work like that? And what exactly is the role of…
23
votes
10 answers

"Launch Failed. Binary Not Found." Snow Leopard and Eclipse C/C++ IDE issue

Not a question, I've just scoured the internet in search of a solution for this problem and thought I'd share it with the good folks of SO. I'll put it in plain terms so that it's accessible to newbs. :) (Apologies if this is the wrong place -- just…
Alex
  • 271
  • 1
  • 2
  • 6
22
votes
3 answers

Embedding an icon in a Linux executable

I have written an application in Java and succesfully compiled it using gcj. In (X)ubuntu's File Manager, my application appears with the default Linux executable icon, which I would like to replace with my own. I have seen that other applications…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
22
votes
1 answer

Creating self-contained python applications

I'm trying to create a self-contained version of pisa (html to pdf converter, latest version), but I can't succeed due to several errors. I've tried py2exe, bb-freeze and cxfreeze. This has to be in windows, which makes my life a bit harder. I…
changelog
  • 4,646
  • 4
  • 35
  • 62
21
votes
4 answers

Using dlopen() on an executable

I need to call a function from another program. If the other program were a library, I could simply use dlopen and dlsym to get a handle to the function. Unfortunately, the other program is a Unix Executable, and building it as a library is not an…
Jeff
  • 2,149
  • 3
  • 17
  • 19
21
votes
4 answers

One big executable or many small DLL's?

Over the years my application has grown from 1MB to 25MB and I expect it to grow further to 40, 50 MB. I don't use DLL's, but put everything in this one big executable. Having one big executable has certain advantages: Installing my application at…
Patrick
  • 23,217
  • 12
  • 67
  • 130
20
votes
4 answers

How can I package my Perl script to run on a machine without Perl?

People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed. There are several solutions, I know of: perl2exe of IndigoStar It is commercial.…
szabgab
  • 6,202
  • 11
  • 50
  • 64
20
votes
6 answers

How long does a batch file take to execute?

How can I write a script to calculate the time the script took to complete? I thought this would be the case, but obviously not.. @echo off set starttime=%time% set endtime=%time% REM do stuff here set /a runtime=%endtime%-%starttime% echo Script…
Methical