executable

Why are “Executable files” operating system dependent?

帅比萌擦擦* 提交于 2020-06-07 09:19:46
问题 I understand that each CPU/architecture has it's own instruction set, therefore a program(binary) written for a specific CPU cannot run on another. But what i don't really understand is why an executable file (binary like .exe for instance) cannot run on Linux but can run on windows even on the very same machine. This is a basic question, and the answer i'm expecting is that .exe and other binary formats are probably not Raw machine instructions but they contain some data that is operating

access files and folders in executable jars

馋奶兔 提交于 2020-06-01 08:13:19
问题 I am facing the following problem: I use Eclipse for my Java projects and there I have the following structure: --> src --> package1 .... --> package2 ... -->dataFolder --> Folder1 --> file1.xml --> Folder2 file2.xml In my java project I parse all files in the dataFolder directory. This is no problem because I can just use the root directory of the eclipse project, like this: File dataStoreFolder = new File("dataFolder"); Some parsing...... But when I export my project as an executable jar

How to distribute a built executable constructed using electron-builder

感情迁移 提交于 2020-06-01 07:42:06
问题 I have recently packaged an electron app using electron-builder: myProject/ ├── package.json ├── app/ └── release/ All files created by electron-builder are place in the release directory. The executable works fine on my local machine, with all features present through the packaged app. However, once I move the application to another machine only some features are available. Noticeably features within subdirectories in app/ are not included. For example here a snippet of the app/ directory:

Java - Execute External Windows Applications?

£可爱£侵袭症+ 提交于 2020-06-01 01:51:29
问题 I'm unsure how to start an external application ( specifically on Windows ) through Java code. I'm not planning on using this Java code for Mac/Linux , so let's focus on the Windows code. What I've Done I've been researching this question for the last two days, and I still have not found an answer. I easily found the Runtime.getRuntime().exec() method, but the thing is I cannot find information on launching a Batch (.bat) file from my local workspace in IntelliJ Idea . What I'm Asking I would

Python files to an MSI Windows installer

风流意气都作罢 提交于 2020-05-29 04:07:29
问题 So I can use PyInstaller to make a one-file executable and to make a standard executable among other files in a folder. But how do I turn Python files into an MSI installer so that it's fool-proof where it makes a shortcut on the desktop? (For distribution so that it isn't required for the user to have Python installed) (When I say Python files to an MSI installer I mean the regular PyInstaller to folder output but with a way of getting a shortcut to the executable onto the desktop very

How to create a .exe similar to pip.exe, jupyter.exe, etc. from C:\Python37\Scripts?

江枫思渺然 提交于 2020-05-28 03:54:28
问题 In order to make pip or jupyter available from command-line on Windows no matter the current working directory with just pip ... or jupyter ... , Python on Windows seems to use this method: put C:\Python37\Scripts in the PATH create a small 100KB .exe file C:\Python37\Scripts\pip.exe or jupyter.exe that probably does not much more than calling a Python script with the interpreter (I guess?) Then doing pip ... or jupyter ... in command-line works, no matter the current directory. Question: how

How to create a .exe similar to pip.exe, jupyter.exe, etc. from C:\Python37\Scripts?

时间秒杀一切 提交于 2020-05-28 03:54:18
问题 In order to make pip or jupyter available from command-line on Windows no matter the current working directory with just pip ... or jupyter ... , Python on Windows seems to use this method: put C:\Python37\Scripts in the PATH create a small 100KB .exe file C:\Python37\Scripts\pip.exe or jupyter.exe that probably does not much more than calling a Python script with the interpreter (I guess?) Then doing pip ... or jupyter ... in command-line works, no matter the current directory. Question: how

Branca Python module is unable to find 2 essential json files when running an executable that uses folium

强颜欢笑 提交于 2020-05-14 07:14:01
问题 There is a chance this is still a problem and the Pyinstaller and/or Folium people have no interest in fixing it, but I'll post it again here in case someone out there has discovered a workaround. I have a program that creates maps, geocodes etc and recently added the folium package to create some interactive maps in html format. I always compile my code using pyinstaller so that others at my company can just use the executable rather than running the python code. If I run my code in an IDE,

Branca Python module is unable to find 2 essential json files when running an executable that uses folium

六月ゝ 毕业季﹏ 提交于 2020-05-14 07:09:10
问题 There is a chance this is still a problem and the Pyinstaller and/or Folium people have no interest in fixing it, but I'll post it again here in case someone out there has discovered a workaround. I have a program that creates maps, geocodes etc and recently added the folium package to create some interactive maps in html format. I always compile my code using pyinstaller so that others at my company can just use the executable rather than running the python code. If I run my code in an IDE,

Branca Python module is unable to find 2 essential json files when running an executable that uses folium

旧巷老猫 提交于 2020-05-14 07:09:06
问题 There is a chance this is still a problem and the Pyinstaller and/or Folium people have no interest in fixing it, but I'll post it again here in case someone out there has discovered a workaround. I have a program that creates maps, geocodes etc and recently added the folium package to create some interactive maps in html format. I always compile my code using pyinstaller so that others at my company can just use the executable rather than running the python code. If I run my code in an IDE,