executable

Java : create jar executable with dependant jars embedded

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 16:15:23
I have created an executable JAR with the manifest: Manifest-Version: 1.0 Main-Class: MyClass Class-Path: lib/ext.jar I can successfully run this JAR if I have folder lib with dependent ext.jar in the folder of .jar created. I would like to embed ext.jar in my executable JAR to launch it anywhere I want, without creating lib folder. This would allow the JAR file to be self-contained, including all of its dependencies. Is there any way to do this? gigadot The default Java class loader cannot find an embedded jar inside a jar file. You will need to set your Java program to use a class loader

How to get information about a Windows executable (.exe) using C++

╄→尐↘猪︶ㄣ 提交于 2019-11-27 15:17:41
问题 I have to create a software that will scan several directories and extracts information about the executables found. I need to do two things: Determine if a given file is an executable ( .exe , .dll , and so on) - Checking the extension is probably not good enough. Get the information about this executable (the company name , the product name , and so on). I never did this before and thus am not aware if there is a Windows API (or lightweight C/C++ library) to do that or if it is even

How to setup HtmlUnit in an Eclipse project?

百般思念 提交于 2019-11-27 15:07:55
问题 My project includes htmlunit jars and downloads some pages content. Executable jar (which includes libs, funct. of eclipse export) thereof, however, works only on the machine on which I created it (on different it doesn't execute). EDIT: It doesn't execute as it doesn't show "Starting Headless Browser" MessageBox upon startup. I used Eclipse Indigo: File > Export > Runnable jar > package required libratries into generated jar Help, gods: import java.io.*; import com.gargoylesoftware.htmlunit

Python - create an EXE that runs code as written, not as it was when compiled

大兔子大兔子 提交于 2019-11-27 15:01:34
I'm making a pygame program that is designed to be modular. I am building an exe with pygame2exe of the file main.py, which basically just imports the real main game and runs it. What I'm hoping for is a sort of launcher that will execute Python scripts from an EXE, rather than a single program containing all immutable files. What is the best way to go about this? I've tried using imp to dynamically import all modules at runtime instead of implicitly importing them, but that seems to break object inheritance. After some experiments I've found a solution. Create a separate folder source in the

How to tell ant to build using a specific javac executable?

…衆ロ難τιáo~ 提交于 2019-11-27 14:47:14
问题 How can I tell ant to use a specific javac executable from the command line? I have an installation of gcj, built as part of gcc, within a library we distribute, and I'd like to have a particular piece of Java software built against that. However, it just seems to use the system-gcc, and options such as "-Dbuild.compiler" seem to want me to specify some kind of Java class rather than a filepath. I was hoping for something similar to CC in Makefiles. I'm sure it's something really simple, and

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

雨燕双飞 提交于 2019-11-27 14:44:30
问题 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 success. fx@fx-ubuntu:~/Documents/projects/foo$ bin/bar -c somefile.xml -d text.txt -r aString -f anotherString >output The application "bar" also references to some libraries, it also create the file "bar.xml" besides the output. How do I get access to these files? Just by using

How to set processor affinity from Batch File for Windows XP?

守給你的承諾、 提交于 2019-11-27 14:07:26
问题 I've got a dual processor machine and I would like to launch an executable via a batch file on both processors. For example: (1) Launch Notepad.exe on Processor 1, and (2) Simultaneously, Notepad.exe on Processor 2 Currently, I'm using the following in my batch file, since my executable was "difficult" to launch and needed a return in order to run when launched: echo.|DoStuff.exe Thus, I would like to launch it and have it run on each processor. Thanks for any feedback provided. P.S. I don't

ImportError: cannot import name RAND_egd

本小妞迷上赌 提交于 2019-11-27 13:55:46
问题 I've tried to create an exe file using py2exe. I've recently updated Python from 2.7.7 to 2.7.10 to be able to work with requests - proxies . Before the update everything worked fine but now, the exe file recently created, raising this error: Traceback (most recent call last): File "puoka_2.py", line 1, in <module> import mLib File "mLib.pyc", line 4, in <module> File "urllib2.pyc", line 94, in <module File "httplib.pyc", line 71, in <module File "socket.pyc", line 68, in <module> ImportError

Compile to a stand-alone executable (.exe) in Visual Studio

ぐ巨炮叔叔 提交于 2019-11-27 12:19:47
how can I make a stand-alone exe in Visual Studio. Its just a simple Console application that I think users would not like to install a tiny Console application. I compiled a simple cpp file using the visual studio command prompt. Will the exe work even if the .NET framework is not installed? I used native C++ code. Anything using the managed environment (which includes anything written in C# and VB.NET) requires the .NET framework. You can simply redistribute your .EXE in that scenario, but they'll need to install the appropriate framework if they don't already have it. Inside your project

LINK : fatal error LNK1104: cannot open file 'D:\\…\\MyProj.exe'

烂漫一生 提交于 2019-11-27 12:17:23
Using Visual Studio 2010, when I build + run my application in short intervals I often get the following error. If I just wait a minute or two and try again it works fine. Unlocker claims no handle is locking the executable file. How can I discover what's locking it? If it's Visual Studio itself, what should I do to make it stop? or alternatively to release the file? 1>------ Build started: Project: MyProj, Configuration: Release Win32 ------ ... 1>InitializeBuildStatus: 1> Creating "Release\MyProj.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> All outputs are up-to