Because that’s what I learned from Uni, didn’t want that skill to go to waste. I was thinking about how it would be easier to make the apps (plain applications that use executables and shell to run) .desktop file without any hassle (for new Linux users).
Also, Python was two semesters ago, so I forgot all about it.
I believe some BSDs use it too, and WSL2 will make Linux applications automatically appear on Windows, so editing desktop files may be useful there too. Plus, you don’t need to deal with different architectures (aarch vs amd64).
Alright, but maybe take a look into something like Zenity. The task done by your tool doesn’t really justify installing a huge JRE, when a simple bash script would suffice.
I didn’t make the tool, I merely answered a question.
Had I wanted to develop such a tool myself I probably would’ve gone Python + Qt6 or used some Rust GTK wrapper, or maybe dust off Gambas if all I want it a a few buttons and text fields.
Because it works, does not have any drawbacks that I could see, and is universal, but not from Microsoft, and does not require you to install pip or npm to run.
No offense, but why Java?
Because that’s what I learned from Uni, didn’t want that skill to go to waste. I was thinking about how it would be easier to make the apps (plain applications that use executables and shell to run) .desktop file without any hassle (for new Linux users).
Also, Python was two semesters ago, so I forgot all about it.
Learn Kotlin, it’s adjacent and better.
Easy to make, cross platform GUI toolkit.
I dislike the look of standard Java applications myself, but it still makes a lot of sense for a quick form based application like this.
Why do you need cross platform availability, if .desktop files are (mostly) Linux only?
I believe some BSDs use it too, and WSL2 will make Linux applications automatically appear on Windows, so editing desktop files may be useful there too. Plus, you don’t need to deal with different architectures (aarch vs amd64).
Alright, but maybe take a look into something like Zenity. The task done by your tool doesn’t really justify installing a huge JRE, when a simple bash script would suffice.
I didn’t make the tool, I merely answered a question.
Had I wanted to develop such a tool myself I probably would’ve gone Python + Qt6 or used some Rust GTK wrapper, or maybe dust off Gambas if all I want it a a few buttons and text fields.
Because despite the popular bandwagon belief, there’s nothing wrong with using Java. It’s just a tool, like so many others.
This is like saying, “Why that Philips head screwdriver? Why not this other Philips head screwdriver?”
Why language-as-it’s-own-OS for displaying a dialogue?
Write with what you know
Because it works, does not have any drawbacks that I could see, and is universal, but not from Microsoft, and does not require you to install pip or npm to run.
Don’t you need the JRE to run Java code?
Yes, it’s only compiled to bytecode, which still needs an interpreter.