exe

Java: embedding jar inside exe

不问归期 提交于 2019-12-06 06:05:26
Here is example to show what i mean: http://www.minecraft.net/download.jsp If you open the Minecraft.exe with winrar you can see the jar manifest and classes and you can actually launch the jar like this java -jar Minecraft.exe But when i tried to embed my jar to my own exe as resource (i can see the classes same way as in minecraft.exe with winrar) and launch it with java -jar it fails with message invalid or corrupt jar file How can i embed the jar to exe correctly? so it can be launched same way as minecraft.exe? Use JSmooth. We use it with much success There is a tool called Jar2Exe . I

lauch4j hello world program

送分小仙女□ 提交于 2019-12-06 05:53:35
I created a "hello world" java program and use lauch4j to convert executable jar to .exe file. When I tried to run it in cmd, but nothing printed out. I also tried to run it in launch4j. Log indicates: Executing: C:\Documents and Settings\cnbq84\Desktop\helloworld.exe. But still no "hello world" is displayed. How to display the "Hello World" msg? Thanks Here is my config file: <launch4jConfig> <dontWrapJar>false</dontWrapJar> <headerType>gui|console</headerType> <jar>C:\Documents and Settings\cnbq84\Desktop\helloworld.jar</jar> <outfile>C:\Documents and Settings\cnbq84\Desktop\helloworld.exe<

Cannot run exe after building the jar

允我心安 提交于 2019-12-06 05:35:26
问题 I made a simple utility app. In it I had an exe file to be run. I got it to run by using: Runtime.getRuntime().exec(this.getClass().getResource("filename.exe").getPath()); I works perfectly when I run the program from the ide(Netbeans). But when I try to run the exe using the above command after building(ie from the jar created on building) it does not work at all. I also tried running this : Desktop.getDesktop().open(new File("filename.exe")) but no use again. Please help 回答1: Tried with a

DirectX Release build works through VS2010, but not exe

ε祈祈猫儿з 提交于 2019-12-06 04:44:23
I've been dropping by Stack Overflow for a few years now via Google, but haven't asked/answered anything as of yet, so here goes. Basically I have a 3D rendering framework set up drawing models and terrain in DirectX 11. Everything works fine, with no problems when running either Debug or Release builds through Visual Studio 2010. However, when I navigate into my folders and run the executables independantly, only the Debug build works. The Release build displays whatever clear colour I have set, but no geometry, although the framerate looks as though it's running, and my mouse is locked to

Python app which reads and writes into its current working directory as a .app/exe

a 夏天 提交于 2019-12-06 04:39:37
I have a python script which reads a text file in it's current working directory called "data.txt" then converts the data inside of it into a json format for another separate program to handle. The problem i'm having is that i'm not sure how to read the .txt file (and write a new one) which is in the same directory as the .app when the python script is all bundled up. The current method i'm using doesn't work because of something to do with it using the fact that it's ran from the terminal instead of executed as a .app? Any help is appreciated! A .app on the Mac doesn't have any reasonable

Is it possible to compile C++ code to .exe on a Mac? [closed]

人盡茶涼 提交于 2019-12-06 03:11:24
I bought a pre-owned Macbook a little while ago and I've been coding inside Sublime Text 2 and compiling in Terminal with g++*. I wrote a stupid text adventure that I'd like to send to a friend and if possible, I'd like to know if there are any methods available on Mac of compiling to exe similar to the way I've been compiling my code (i.e. solely with terminal). I understand that the easy solution would be to just compile the .cpp file on a Windows computer but my computer is all the way over at the other side of the room. Thanks. *Doing this due to being on Snow Leopard and being too tight

JSmooth question on bundling a JRE

夙愿已清 提交于 2019-12-06 01:20:32
问题 I'm trying to bundle a JRE with my jar file so that I can run my application on any windows computer, regardless of if it has Java or not. The jsmooth manual says: For the option to work correctly, you have to put a JRE in a directory near the EXE (generally in a subdirectory called "jre" or whatever). Once the exe is generated, it will FIRST try to locate the JRE at the location mentioned. If it can't be found there, then it will fallback in the normal jre look-up mode (search for a jre or a

Create executable bash script that accepts drag & drop

霸气de小男生 提交于 2019-12-05 22:00:28
问题 I compiled mplayer from source on Ubuntu. I didn't want to use a GUI but I wanted to make a executable bash file that gets the path from an file that gets dropped onto the bash file. How do I make such a thing possible? I wanted to make it look something like this: mplayer <get full path to file . file-ending> I want the executable bash file to sit on my desktop ;) If possible, I'd just like an rightclick -> start with mplayer function, but I don't know how to make one. 回答1: You can access

How can I share my SFML game with others without errors?

天大地大妈咪最大 提交于 2019-12-05 19:38:29
So, I finished a game in C ++ / SFML and I would like to send it to someone but when I send it there are errors: I tested the exe on another computer with SFML DLLs required and it shows me that libstdc ++ - 6.dll is missing, so I added it and I tried again and it tells me that there are still other dll missing, it is very embarrassing. How can I share my game without all those errors and missing DLLs? You could use Dependency Walker (depends.exe) to find all the dll-s your application is using. It will still require some trial and error cycles to discover the ones you need, but at least you

How to execute a C++ code with a python code embedded on a system without python installed

蹲街弑〆低调 提交于 2019-12-05 18:55:42
I'm trying to create a simple game using C++ with Python embedding. The python code is embedded in my C++ code. I used Python/C API for this. There are 2 goals that I would like to achieve: 1) Application should be able to run on a computer that does not have Python installed. 2) Application should be an one standalone executable file(.exe) For example, the following simple code only works if the system has python already installed on it: #include <Python.h> #include <conio.h> #include <stdio.h> int main() { char pySearchPath[] = "Python27"; Py_SetPythonHome(pySearchPath); Py_Initialize();