#how do i install java again?
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Eclipse Adoptium provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.
Download latest Java from https://adoptium.net/, run the installer.
Open a CMD and type java -version and javac -version, if both show your new Java version, you have successfully installed Java! 🎉
https://i.imgur.com/CurMujt.png
In order to prevent issues with old installations you may want to remove them. Type where java and where javac. They should only show the new and no old entries:
https://i.imgur.com/x5k1GxG.png
If that is not the case, you may want to clean up. Therefore, type "environment variable" into the Windows search and follow the dialog. You will see two entries for a variable called Path, one for your user and one for the system. This variable tells Windows where to look for commands, like java and javac.
https://i.imgur.com/3bN9QE2.png
Edit both. Make sure that they only list the entry to your new Java installation and remove all the old entries you have seen with the where command before:
https://i.imgur.com/JAYog1U.png
Confirm and close all dialogs. Restart your CMD window and try where java and where javac again. It should only list the new installation now and nothing else.
Congratulation, your Java is now finally ready, happy coding 🎉
@rain plover
no i have the jdk
oh wait i probably just have to add it to my path variable then
nah its in path
but like where java works but java version doesnt
@rare magnet
so then i only need the JRE? tbh i thought the jdk came with the jre but ok
it is
what doesn't work ?
?
what's the problem ?
i did
so ?
no
it's normal you have all of those in the path
they are conflicting betewee, each other
well im trying to run mc
windows doesn't know which one to use, so it usually takes the first
ye but i really dont want to switch the order every time
💀
oh wait i can probably point it towards the executable
so remove all of those you don't want from the path
in the installation
you should only have one in the path
minecraft gets shipped with java, no need to install java for minecraft
ok but then i have to switch it every time its a pain in the ass
i do
i get an error
what is the error ?
no you dont
in english ?
it cant find java runtime
how do you run mc ?
launcher
default one
but coudlnt i set it instead of the bundled java version to the one i see in where java
for this installation only
mc has an option for that
ye it works
there is nothing to change in the path
ok but now it works
so what's the problem ?
there is none it is fixed now
also next time go ask your question directly
i felt like i did
What is it?
The XY problem is asking about your attempted solution rather than your actual problem. This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.
* User wants to do X.
* User doesn't know how to do X, but thinks they can fumble their way to a solution if they can just manage to do Y.
* User doesn't know how to do Y either.
* User asks for help with Y.
* Others try to help user with Y, but are confused because Y seems like a strange problem to want to solve.
* After much interaction and wasted time, it finally becomes clear that the user really wants help with X, and that Y wasn't even a suitable solution for X.
* The problem occurs when people get stuck on what they believe is the solution and are unable step back and explain the issue in full.
What to do about it?
1. Always include information about a broader picture along with any attempted solution.
2. If someone asks for more information, do provide details.
3. If there are other solutions you've already ruled out, share why you've ruled them out. This gives more information about your requirements.
Remember that if your diagnostic theories were accurate, you wouldn't be asking for help right?
For examples, please refer to https://xyproblem.info/.
you asked how to install java
well yes
though your problem was this:
ok but i feel stupid if i dont even try to solve it
show what your problem is, what you have tried so far, etc.
also maybe try to reinstall minecraft + deleting .minecraft
because normally you dont need to install java in order to play minecraft
Might not hurt to try jarfix by johan lofflman
yeah true, kinda unrelated to the problem but might work
If you double-click on a jar file, and your Java application does not start, your .jar association has been hijacked. You can fix the problem with Jarfix. https://johann.loefflmann.net/en/software/jarfix/index.html
Jarfix