I'm sorry if this question has been already asked but I did not found it on StackOverflow.
Here is my problem, I have a JAVA project, and I create an executable .jar file with it and I want to know if it is possible to create a .bat file or something to automatically create a shortcut on the user's Desktop and how to do that.
I also want to know if it is possible to automatically place an Icon on my executable .jar and how to do it.
I've already searched the net to find solutions to my problem and people says things like it depends of the OS and create a .exe to do it, but I d'ont want to create a .exe file with my .jar executable file.
And I also did not totally understand what they were talking about...
You can create a StartJar.bat file in the Desktop itself.
Then edit that .bat file and add the following:
#echo OFF
cd <path to the executable jar>
java -jar yourJar.jar
Related
I am running a Django Project in PyCharm and deploying it to EC2 in AWS. The guide tells me to use nginx I have to create a file called nginx_someName.conf however no matter how much I try I can't get create a .conf file and write in it. I tried to download Scala to Pycharm using the question below IntelliJ IDEA plugin to fold .conf files? but somehow the Scala plugin is no longer available on Pycharm. (Scala was supposed to be a plugin that allows .conf files)
However I am able to create .config files So I named my file nginx_someName.config Is it the same thing
Image below in relation to #yole's solution
Following #yole's advise related image Reached here now..
Click this button as shown on the screenshot:
use .ini instead .conf in pycharm for configuration best answer I can come up with for now
create a new file with .ini
I have searched but can find no way to read PYZ files. I know they are a type of zip file, but I can not read them by way of a zip program.
This is in reference to another question where I need access to the _init__ file inside a directory structure that is created by pyinstaller when attempting to build an exe. During this process, a out00-PYZ.pyz file is created, and the error references a file inside the PYZ.
The thread here describes how to decompile from an EXE to obtain PYC files, but doesn't work with PYZ files.
Surely there is someway to crack open this commonly used pythonic file?
Many thanks in advance.
If you had used Pyinstaller you can go to the location of directory which contains .pyz then go SHIFT and right click on directory, go to open command window here, then:
pyi-archive_viewer out00-PYZ.pyz
I want to create a setup for an existent .exe file. This file needs some .ocx and .dll files to run correctly. So this mentioned setup should paste these all files in a specified path and then run the .exe file.
I have tried with installshield 2010 basic and InstallScript projects but i could not create some of dialogs in the format that i wanted.
Is there any way to create this setup? Or any one may help me to work with installshield?
You might find working with another setup program easier, try the NSIS (Nullsoft Scriptable Install System). It has a RegDLL function:
RegDLL "$WINDIR\OCX\vbalGrid6.ocx"
if you need that also.
I'm using QWebView to run a web app. There are 650+ files. Placing the web app's directory in the source directory does not result in the executable bundling the directory.
How do I include the entire web app directory so that the executable will be able to render the files.
Note: I have currently added index.html as a resource, and can access it with qrc:// - But since I cannot add the entire directory structure to a qrc (can I?), the executable does not include the other files.
You need to put an XML node into the .qrc file for each file you want to use using the Qt resource system.
This can be done using a simple pre-build script. Take a look at qrcgen. Quoting the blog post behind this link:
The script I created, qrcgen, takes a directory and a prefix, recursively scans the directory and generates a .qrc file with the same name as the directory scanned. It has solved my problem, and I hope it can help others. It is also available via PyPI, just "easy_install qrcgen".
In order to update the .qrc file whenever your directory contens change, you need to include this step into your build process:
For C++/Qt projects, you can add this step in the build configuration in QtCreator or add in your qmake file a system(...) statement. Note that such commands aren't portable in general. (If it's not portable, you can put some operating system conditions around multiple commands.)
For PyQt/PySide projects, I don't know how to do this, but I'm sure you find a solution for this too.
Basically, Qt provide the cross-plateform.
I have made a application which is used Qt creator on Linux.
But, I can't be running that on Windows because it can't find .dll files such as mingw10.dll and qtcore4.dll, etc.
So, I have copied the .dll files which can be found in qt/bin directory.
And, I create a directory in order to save that like /lib becuase of distribution of application.
But, I can't set up path in .pro file.
How to set up the path for .dll?
Thank you.
You can too compile QT statically in order to not have to link dlls to your exe.
You say you've successfully compiled the app, so the only problem is that it can't find the DLLs.
There are a few solutions, and they have nothing to do with the .pro file. Your two best bets are:
Make sure the DLLs are in the same directory as the .exe file
Make sure the DLLs are in a directory contained in the PATH environment variable