gdx-setup.jar is not an executable jar file . - libgdx

My gdx-setup.jar file is downloaded but it is not an executable jar file , so it doesn't show the project generator interface on double clicking. How to fix this?

Related

Ionic and Capacitor: How can i change the capacitor.config.ts file to a capacitor.config.json file?

I created an Angular/Ionic project with capacitor. Now I wanted to make changes in my capacitor.config.json but this file is missing? Instead there is the capacitor.config.ts?!
I need the JSON File because otherwise a specific plugin doesnt work!
Here are pictures of my directory and my package.json:
Directory and Files
package.json file
Capacitor 3 allows to have .json, .js or .ts config file.
npx cap init command will create a .ts file if typescript is installed
If you don’t want a .ts file you can just remove it and create a .json file, but everything should still work no matter what the config file extension is.
The version I'm using has the file you require.
application files
ionic version
Please try out ionic 6.18.1 version if possible.

python3 when saving a file it doesn't save to same directory as the EXE pyinstaller

I have used Pyinstaller to pack my script as onedir EXE, then installed to Program Files folder. i used this line to save a json to a file:
json.dump(data, open("data_file.json",'w'))
on some computers the file saved to where EXE is which is what i want, but others save it to different locations.
so when i try to get the file using json.load it says not file found:
json.load(open("data_file.json"), encoding="utf-8")
How can i solve this issue so the script only save files to the same EXE directory?
The cause of the problem is related to writing permission on windows. so instead of writing app data to the Program Files folder which is not recommended, you need to write the data to APPDATA folder.
i have used the code posted by giuliano-oliveira and it works perfectly cross platform.
get_user_data_dir

Distribution of Executable jar file in netbeans

I have created a database desktop application using netbeans. Netbeans creates a jar file in the project folder. When I run it, it works fine.
The problem is when I take that jar file outside the project folder and then try to run it, it shows an exception of org.sqlite.jdbc. This exception keeps on striking until I close the process using Windows task manager but it is not running.
In dist folder, you will find three things :
the .jar file of your project
a lib folder
Readme.txt
Make sure that when you take your .jar file outside the project folder, take the lib folder as well.
The lib folder contains all the libraries and jar files you've used in your project and are essential to make the jar file run.
Hope it helps!! :)
Thanks. I have found a solution here http://arunasujith.blogspot.in/2011/08/how-to-build-fat-jar-using-netbeans.html?m=1.

Can't add the Mobile Apps Tracking bindings to my project

I'm trying to use the MAT bindings in my project however it seems that the .jar file is not included on: http://libgdx.badlogicgames.com/robovm-ios-bindings/
I have also tried adding it to my project by downloading the repository from: https://github.com/BlueRiverInteractive/robovm-ios-bindings/tree/master/mobileapptracking and adding the project to my Robovm build path but it's not working as well.
Any idea how to solve this ?
Thanks,
ASM
I have made a bindings project into a jar file doing the following. I am sure there is an easier way to get the framework in the correct folder, but I have not yet found it.
load bindings project in eclipse
export the source folder (you should get org/robovm/bindings/mobileapptracking/) to .jar file
open the jar file with winrar or similar program
add folder: robovm/ios/libs/ in META-INF folder
add the .framework(s) to this folder
now you should have a similar .jar file as on the libgdx site!

how to find library.swf file in adobe air library project

I am creating ane file for my requirement. I Crated Actionscript library project and generated xxx.swc file through build time, but I can't able to generate library.swf file in Actionscript libary project within the bin directory or in the project directory. Even though my Actionscript library project enabled include Adobe AIR libraries.
Can I create ane file without library.swf file? or please give me steps to get library.swf file.
Have you googled it before?
swc file is a zip file, just rename it from *.swc to *.zip, and unzip it, you will find library.swf.