exe

How can I convert a .jar to an .exe?

折月煮酒 提交于 2019-11-26 05:54:08
问题 I want to convert a .jar to an .exe for microsoft. Is there any program converter for this? Also if there\'s one for Mac and Linux I would appreciate suggestions for those too. 回答1: Launch4j works on both Windows and Linux/Mac. But if you're running Linux/Mac, there is a way to embed your jar into a shell script that performs the autolaunch for you, so you have only one runnable file: exestub.sh: #!/bin/sh MYSELF=`which "$0" 2>/dev/null` [ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" JAVA_OPT=""

Run .exe file in Java from file location

限于喜欢 提交于 2019-11-26 04:49:16
问题 I have to open a .exe file from my Java program. So I tried following code First. Process process = runtime.exec(\"c:\\\\program files\\\\test\\\\test.exe\"); But I was getting some error. Then I found out that the exe has to be launched from that location that is c://program files/test/ only then it will open with out errors. So I decided to write a .bat file and execute so that it will cd to that location and execute the .exe file. Following is my code: BufferedWriter fileOut; String

How to bundle a JRE with Launch4j?

久未见 提交于 2019-11-26 03:54:07
I have Launch4J on my computer and it's a great program. One of its features I'm interested in is the ability to bundle a JRE in the general .EXE file. However, I can't find any documentation that describes how to go about doing this. How do I bundle a JRE with the EXE? Plus, where do I get a compact, portable JRE to run? The download links on Oracle are for the installer packages. After some attempts i finally get a workaround to bundle the jre in my application: I package my app as a zip file with the following folders inside: containerFolder |- jre |-bin (in bin there is java.exe) |-lib |-

Java: run as administrator

半城伤御伤魂 提交于 2019-11-26 03:16:43
问题 Is there a way in Java to ask the system to get control over administrator functionality. Of course without doing: Right click on the exe -> run as admin. What I want is that there comes a frame from UAC like in Windows Vista or Windows 7. Or have I to do some settings while making an exe from the jar? 回答1: You have to create a manifest file that specifies that your application needs administrator permissions. You can include the manifest in your exe or keep it as a separate file (yourapp.exe

How to run an EXE file in PowerShell with parameters with spaces and quotes

谁说胖子不能爱 提交于 2019-11-26 02:41:59
问题 How do you run the following command in PowerShell? C:\\Program Files\\IIS\\Microsoft Web Deploy\\msdeploy.exe -verb:sync -source:dbfullsql=\"Data Source=mysource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;\" -dest:dbfullsql=\"Data Source=.\\mydestsource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;\",computername=10.10.10.10,username=administrator,password=adminpass\" 回答1: When PowerShell sees a command starting with a string it just evaluates the string

Signing a Windows EXE file

二次信任 提交于 2019-11-26 02:26:38
问题 I have an EXE file that I should like to sign so that Windows will not warn the end user about an application from an \"unknown publisher\". I am not a Windows developer. The application in question is a screensaver generated from an application that generates screensaver applications. As such I have no influence on how the file is generated. I\'ve already found out that I will need a code signing certificate from a CA like Verisign or instantssl.com. What I don\'t understand is what I need

How can I run another application within a panel of my C# program?

好久不见. 提交于 2019-11-26 02:05:46
问题 I\'ve been reading lots on how to trigger an application from inside a C# program (Process.Start()), but I haven t been able to find any information on how to have this new application run within a panel of my C# program. For example, I\'d like a button click to open a notepad.exe WITHIN my application, not externally. 回答1: I don't know if this is still the recommended thing to use but the "Object Linking and Embedding" framework allows you to embed certain objects/controls directly into your

Create a single executable from a Python project

£可爱£侵袭症+ 提交于 2019-11-26 01:26:50
问题 I want to create a single executable from my Python project. A user should be able to download and run it without needing Python installed. If I were just distributing a package, I could use pip, wheel, and PyPI to build and distribute it, but this requires that the user has Python and knows how to install packages. What can I use to build a self-contained executable from a Python project? 回答1: Here are some common ones. Unless explicitly noted, all projects listed below are being actively

How to bundle a JRE with Launch4j?

最后都变了- 提交于 2019-11-26 01:14:34
问题 I have Launch4J on my computer and it\'s a great program. One of its features I\'m interested in is the ability to bundle a JRE in the general .EXE file. However, I can\'t find any documentation that describes how to go about doing this. How do I bundle a JRE with the EXE? Plus, where do I get a compact, portable JRE to run? The download links on Oracle are for the installer packages. 回答1: After some attempts i finally get a workaround to bundle the jre in my application: I package my app as

How can I make an EXE file from a Python program? [duplicate]

核能气质少年 提交于 2019-11-26 01:06:03
问题 This question already has an answer here: How can I create a directly-executable cross-platform GUI app using Python? 11 answers How to deploy Python to Windows users? 4 answers Create a single executable from a Python project 2 answers I\'ve used several modules to make EXEs for Python, but I\'m not sure if I\'m doing it right. How should I go about this, and why? Please base your answers on personal experience, and provide references where necessary. 回答1: Auto PY to EXE - A .py to .exe