Is it a good idea using Arch Linux? (Java Dev)
So I'll get back to studying java soon and I want to switch my OS from Windows to Arch Linux, but I'm a little afraid of things starting to break 'out of the blue' or me not being able to find the tools I need like Maven(I know I can use this one) or Spring Framework
About this post
- Posted
- Archived
- Score
- 72 · 83% up
- Kind
- Text
- ID
- 1007tf6
107 comments
Maven and spring are fine on arch.
You can have multiple versions of java installed and select which one your using. Read the arch wiki article on Java.
Things don’t break “out the blue”. There’s things that require manual intervention once in a while. Your either fine with that or not. If you can code in Java you can handle maintaining arch linux.
FYI:
out of the bluebasically just meansunexpectedIt's not meant to deflect responsibility.
Deleted before we saved it.
thats an issue with the package, not arch itself. package quality varies.
Things don’t randomly break. When things do break, it’s because of something you did (or didn’t) do. Sometimes packages require manual intervention when updated, you can find out what intervention needs to be done on the Arch home page.
This is not really true. Normal use involves frequent pacman updates, and those can break things. Technically you are instigating the update but you're guaranteeing this guy that things won't break when he can break things unexpectedly by using Arch normally.
Frequently is a vague description. I update once a month or two for the past 2 years.
The biggest problem for me is system python updating, since I use i3pystatus among other things and need to reinstall the libraries for the new Python version. But I think I solved it by using pyenv.
Also I ran out of space in /boot recently (make it bigger!) and had to change the compression algorithm for kernel.
I guarantee you there are people here who haven't updated in over a year who use Arch every day.
Deleted before we saved it.
Yesterday I updated and for no reason at all my system broke.
what?! it’s my fault for not looking at the arch home page every 30 minutes to find out every single intervention my 1.2k packages might have???
Required interventions are pretty rare. If you add one of the pacman hooks that prints new package news before updates you'll be notified before accepting the update too.
Deleted before we saved it.
I haven't reinstalled Arch in 5 years. I've had to intervene, but if you're savvy, you can manage. The pros outweigh the cons every time
No better distro for a developer, if you know what you are doing.
Im one of those devs that doesnt know exactly what im doing a lot of the time. Even i love Arch
Whatever happens, know that Arch wiki has got your back. It is really not as scary as some people portray it and it probably has answers to most of the issues you’ll ever encounter during installation. Just have it opened somewhere and let it guide you.
The wiki is critical.
In a good or a bad way? I sort of didn't catch what you meant there.
Ask yourself, "is what I have now basically good enough?". Then invert the answer.
"Good enough", that is the measure for you?
It's also a measure for you, in case you didn't know.
If you’re a programmer in any capacity. You can handle Arch just fine.
I don’t think anything that CAN break out of the blue (it’s rare anyway) is ever anything important to enough to cause worry.
Arch doesnt randomly brake like the memes making it out to be. I'm using arch on linux-lts like its a standard release, updating every week or so. If anything goes wrong (which it hasnt since i installed it back in january) i just timeshift back a little and wait for the updates to fix themselves.
It can and does though, especially if you're a developer.
never once happened
-c developer
Yeah, but most people make it seem waaaay worse than it is.
What is your definition of random here? I only once managed to brake arch when i did a partial update, which was easy enough to fix with some help from reddit. Otherwise arch doesn't brake out of the blue for me.
yes it is fine. I did all my CS degrees in Scala (needs jvm and java) and using sdkman and it was flawless on Arch. Goodluck!
Been an archer for over a decade its a myth things break out of the blue if not using testing repo. Don't believe the hype.
wrong. have u forgotten about GRUB?
Use EFISTUB instead
I think it's a wonderful idea. So far Arch and Pop are the only two distros I haven't completely broken unintentionally. Arch is very stable. Occasionally another package will contain breaking changes which bleeds into Arch, like the GRUB issue awhile ago, As soon as the problem was identified the Arch wiki was updated to reflect the issue and solution. I don't think there's a better documented distro out there. Between official packages Snap, and Aur you have access to almost every bit of software available.
The only caveat is that it will take you longer to do basic things. Want to hook up a printer? K, remember the old days when you had to manually install and configure CUPS and all that? Well that's still a reality with Arch. Same for running a USB-C to HDMI second monitor. There are situations that are plug and play pretty much everywhere these days that still require manual setup and config with Arch. But that's part of its allure really.
Well put.
I have been on Archlinux for a few years now. I typically update once a day. I'm sure thats a little overkill and I'm not sure if its a strength or a liability lol.
Something that is tangentially related to your comment is that hitting up Archlinux.org every so often is helpful.
Actually arch has a great way to manage different java versions (
archlinux-java) and I think generally you will have a good time in arch. Also there is the aur, which basically contains every program that runs on linux so... :PStick to LTS kernel and read the bulletin board before you update. In case of major updates, especially to the software you have installed for work, go over the Arch forum and hold update for two days. Only if there is an urgent security-based update, do it right away.
With pacman, Arch's package manager, it's easier to manage toolchains/the jdks you install/your build software.
I've been running Arch for my primary work OS for two years without majajor drama, just religiously use timeshift every time you update.
I use bauh as my main package manager as it updates everything in one hit and has an option to automatically do a timeshift backup/snapshot (that way you don't forget) I've had to rollback an update twice I think but timeshift makes it easy.
If you don't touch anything, nothing will break out of blue. But if you get curious about things, that's going to happen as a consequence.
But at first using arch is gonna be a little time consuming, and it's a trade off that you should decide on.
Overall, developing flexible mindset to deal with things and see problems as challenges help you out. Arch is a great OS to learn more about life! just kidding. Not really.
I wouldn't use pacman to manage any of the dependency that would then be replicated on another system: your JVM version should be the one you will use in production, your maven version should be the one your CICD pipeline will use.
You need to track very specific versions of those, discrepancies will break your code first on your dev env as the library gets updated by arch and then in production as your 'updated' code gets deployed there but the library lifecycle on the production server is not the same as the one on your machine. Containers solve this (to some extent, I can imagine docker updates having the ability to break things if you are working at the edge), but then the question is 'should I use arch as a base system in my containers'.
So, yes arch for your dev environment (IDE, debugging, etc.) is a godsend, but unless you are using pacman to deploy on prod you should be very explicit about the versions of whatever will be used "in prod" and "on the path to prod" and my personal opinion is that this is more easily done manually (or through another mean, like docker and all) than through pacman.
The comments stating "things don't randomly break" are a little bit unfair, your system will not break, but your developments relying on a specific version of a specific library might break until you update them (like the other arch packages which were bundled together in your update). And if the new version of the library is not foreseen to be deployed in production at this time you're shit out of luck.
I do android development with java and things are fine on Arch Linux. No issue for the past 5 years. I love Arch Linux.
I have been using Arch Linux, but only thing that I hate is systemd. :(
I'd say the biggest benefit of Arch is not that it is extremely stable, it's that whatever happens there is always a way to fix it (it's arguably much easier to wrap your head around than windows when it comes to the OS as a whole). That said, as long as you don't install any new packages things won't break unexpectedly.
Arch is perfect for software development and the JVM basically doesn't care. It runs everywhere literally. If unsure, start with installing Arch into a virtual machine. Lots of tutorials on youtube how to install and configure arch and virtualbox.
Not vm. He should dual boot to give arch linux full access to the hardware for great performance.
Performance probably isn't a big concern for OP right now since they are just starting out. And yes you can do Java/Scala/Clojure on the JVM with modest resources the jvm is a pretty good at LLVM. In any case, you are going to deploy your services inside docker / k8s so your local env doesn't matter at all.
You can also use https://sdkman.io to install multiple versions of jvm language (java, kotlin, etc.)
I use a VM with Arch on a Windows host to develop Java, Kotlin and JavaScript using IntelliJ and VSCode for my job. Works without problem and my colleagues are always impressed by my fish shell. I gave the VM 8 cores and 30MB RAM and it can run 20 docker instances at the same time inside for testing all our APIs.
In my experience, it was easier to set stuff up on Linux. It's also was easier to switch Java versions with the archlinux-java command instead of having to edit the JAVA_HOME variable every time.
Maybe it's a personal thing, but I also favor editing my .bashrc to set environment variables (for example for maven) instead of having to set it up through the environments variable UI on Windows. It's just quicker.
It's also way easier to install Java on Arch Linux through Pacman than to have to search for the correct download on the web.
Java has good cross platform support, so apps you build on Linux should also work on Windows and Mac as expected without having to compile different versions.
You could always build development environments in a docker container to keep it separate from the OS. Also, I keep pics/documents/etc on a separate drive (RAID1) from the OS. It would be annoying to wipe and reinstall the OS, but I wouldn't lose anything I can't rebuild... this is how I quickly switched from Windows10 to EndeavourOS after determining win11 was a no-go.
With the newer install functionality the Arch devs added, I will probably install Arch next time.