#how do i install java again?

1 messages · Page 1 of 1 (latest)

rain plover
#

how do i install java, i havent done it for so long that idk, like i only know how to get the SDK XD not the actual runtime

glossy birchBOT
#

<@&987246399047479336> please have a look, thanks.

glossy birchBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

https://adoptium.net

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 🎉

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.

rare magnet
#

@rain plover

rain plover
#

ok

#

so the jdk isnt enough right

rain plover
#

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

rare magnet
rain plover
#

then why doesnt it work

#

do i also hvae to add it to java home?

rare magnet
rain plover
rare magnet
#

?

rain plover
#

well

#

it doesnt say java 8

rare magnet
#

what's the problem ?

rain plover
#

but where java does say java 8

#

i need java 8

rare magnet
#

ah

#

do where java

rain plover
#

i did

rare magnet
#

so ?

rain plover
#

it has java 8

#

do i have to add it to java home?

rare magnet
#

no

#

it's normal you have all of those in the path

#

they are conflicting betewee, each other

rain plover
#

well im trying to run mc

rare magnet
#

windows doesn't know which one to use, so it usually takes the first

rain plover
#

ye but i really dont want to switch the order every time

#

💀

#

oh wait i can probably point it towards the executable

rare magnet
#

so remove all of those you don't want from the path

rain plover
#

in the installation

rare magnet
#

you should only have one in the path

teal flame
rain plover
#

ok but then i have to switch it every time its a pain in the ass

rare magnet
#

what is the error ?

teal flame
rain plover
#

cant find java runtime

rare magnet
#

in english ?

rain plover
#

it cant find java runtime

rare magnet
#

how do you run mc ?

rain plover
#

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

teal flame
#

yeah you can set the java in the installation options

#

but why would you?

rain plover
#

because it doesnt work otherwise

#

i can run mc versions with jdk 17

#

but not with 8

rare magnet
#

in any case

#

even if you specify the version

#

then you just specify the version

rain plover
#

ye it works

rare magnet
#

there is nothing to change in the path

rain plover
#

ok but now it works

rare magnet
#

so what's the problem ?

rain plover
#

there is none it is fixed now

teal flame
#

also next time go ask your question directly

rain plover
#

i felt like i did

glossy birchBOT
#

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/.

teal flame
#

you asked how to install java

rain plover
#

well yes

teal flame
rain plover
#

ok but i feel stupid if i dont even try to solve it

teal flame
#

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

deep nacelle
#

Might not hurt to try jarfix by johan lofflman

teal flame
#

yeah true, kinda unrelated to the problem but might work

glossy birchBOT