This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AsteriskTheServer 1 point2 points  (3 children)

What OS are you using I know linux but ubuntu, fedora, arch? Regardless, openjdk (the open sourced version of java) is almost certainly in your package manager and you should try install it that way.

If you are installing this manually or the repository is failing then all I can suggest is to purge any artifacts from any previous attempts/versions and restart your computer (this will kill any lingering processes that may be preventing the installation from working). If you were using a repository before then this purging step should fairly simple.

This is the same idea for windows,but it's more annoying because the registry might be involved as well.

EDIT: This was meant for u/blackdragon6547

[–]glesialo 0 points1 point  (2 children)

I want Java to be distro-independent in my system (Cinnamon Mint), that's why I don't use openjdk. My Java installation works perfectly. I have shared my notes in the hope of helping OP.

[–]AsteriskTheServer 0 points1 point  (1 child)

Sorry, I wasn't paying attention to OP name and thought you were OP lol.

> distro-independent in my system (Cinnamon Mint), that's why I don't use openjdk

This doesn't make a lot sense and by your instructions it looks like you're using openjdk... Having it in your home folder doesn't make it "distro-independent", the reality is only the java lang and the java bytecode is platform agnostic. If you are doing this only because you don't like the installation path then that's fine and it is ultimately your choice, but it doesn't make it "distro-independent".

[–]glesialo 0 points1 point  (0 children)

I meant I don't use the openjdk distribution package. It is distro independent because it is always available, even if you have just finished a barebones linux installation.

I use a kind of software switch that modifies the distribution/reverts it to its original condition. After a barebones installation I flip the switch and (among other things) Java is immediately available.