executable

Java WindowBuilder -> Export as .jar (Runnable or Applet)

此生再无相见时 提交于 2019-12-13 21:22:03
问题 I installed the WindowBuilder Plugin for Eclipse 3.7. I created a very simple GUI with various methods (JFrame, JPanel, Application etc.). I tried to Export my Project as a runnable JAR / a .jar file. I have to choose the Main Class: It does not show anything to select! The Export still works but the file is useless. How do I export my GUI class properly? EDIT: Seems I need a main method to make the class show up in the main class list. But the problem is, that WindowBuilder creates a class

python PyInstaller created executable failed to run the exe Error: cannot find Temp\\_MEI175682 (data file)

眉间皱痕 提交于 2019-12-13 20:38:07
问题 Using PyInstaller created an exe for my script and while running the exe it throws the following error where as if i run the .py file no issues found. FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\my_username\\AppData\\Local\\Temp\\_MEI175682\\resources\\template.json' [13396] Failed to execute script my_script I've supplied all the proper flags for the data to be included by PyInstaller and the creation of the exe passed successfully. I have used --add-data flag and I

Can I run a binary file that is Mach-O executable i386 on linux?

隐身守侯 提交于 2019-12-13 18:33:03
问题 I have a program that is Mach-O executable i386 and I was hoping to run it on a linux server. Is this possible?? If so, how? I can't see, to figure this out. Thanks! 回答1: There is currently no working Mach-O loader for Linux. 来源: https://stackoverflow.com/questions/3205986/can-i-run-a-binary-file-that-is-mach-o-executable-i386-on-linux

Problems with python file(.py) to executable(.exe) with cx_Freeze

浪尽此生 提交于 2019-12-13 18:23:39
问题 TO BE MORE SPECIFIC: This program is not running AT ALL, only opening the command prompt and suddenly shutting down... Heres my setup.py file... I imported os and added the links to tcl and tk to prevent another issue for occurring. After solving that issue and now I am able to successfully build an .exe from my raw python code but, when opening the freshly created .exe file... All it will do it open a command prompt screen for mere milliseconds and close once again. I am assuming there was

How to remove the dock icon of a shell executable?

隐身守侯 提交于 2019-12-13 15:14:42
问题 I have a java application built with Eclipse, for Mac OS X. This app is installed via a .pkg file and supposed to be daemonized . Everything works fine, with Macbooks (Pro, Retina) , but with the iMac I work on, when the application launches, i have an icon on the Dock , as you can see on the following link. I have already tried the solution in this topic: stackoverflow.com/a/620950/3641679 but it didn't work (I still have the Dock icon). Currently the Info.plist looks like this. What can I

How to read Mach-O header from object file?

社会主义新天地 提交于 2019-12-13 11:55:04
问题 I have spent the past few days experimenting with assembly, and now understand the relationship between assembly and machine code (using x86 via NASM on OSX, reading the Intel docs). Now I am trying to understand the details of how the linker works, and specifically want to understand the structure of Mach-O object files, starting with the Mach-O headers. My question is, can you map out how the Mach-O headers below map to the otool command output (which displays the headers, but they are in a

how to reduce size of exe using py2exe

别等时光非礼了梦想. 提交于 2019-12-13 11:48:36
问题 I developed a small program using python and wxwidgets. It is a very simple program that uses only a mini frame to display some information when needed, and the rest of the time it shows nothing, only an icon in the taskbar. When I build the exe using py2exe (single file exe mode, optimized), I get a 6MB size file! I tried not including some libraries or dll that were not needed but still, I can't see why I get such a big file for just a mini frame and an icon in the taskbar. Is there any way

How can I incorporate my C++ code into my Xcode project using an Executable file?

送分小仙女□ 提交于 2019-12-13 08:04:23
问题 I am new to Xcode, and I simply want to see if it is possible to use an executable file in Xcode. To test this, I have a very simple C++ code that prints the user's input to the screen. I am working with a swift-based project in Xcode 10. In the project build settings, I can see the linking section which seems like the appropriate place for a executable file to be placed, however all of the info I have found has been about generating an executable file from the Xcode project, which is the

Running an executable command in Java with parameters?

时间秒杀一切 提交于 2019-12-13 07:46:09
问题 So i understand how to use the Runtime command in java pretty well to get an executable to run. My question is how would i code that to incorporate a parameter such as you would see in the target in a shortcut property, i.e. target: "C:......\notepad.exe" -w. In what way could I incorporate a parameter such as -w into the Java runtime command. 回答1: Use a ProcessBuilder and supply the necessary arguments to its constructor: ProcessBuilder builder = new ProcessBuilder("C:\\path\\to\\notepad.exe

How do I determine whether an application I am installing is 32-bit or 64-bit?

懵懂的女人 提交于 2019-12-13 05:00:45
问题 I want to be able to predict the default install location of an application. On a 64-bit machine, if it is a 32-bit application, it would install in "Program Files (x86)" and if it were a 64-bit application, it would install in "Program Files". My goal is to install the application with its default location and validate if the install was fine. But for this I need to know where it would be installed. If I know what architecture the application is built for, I think it would serve my purpose.