#(Niklas) Change Java version

20 messages · Page 1 of 1 (latest)

proper kestrel
#

How can I change my Java version

vagrant driftBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

supple sinew
#

If you are using a hosting, most of them have that as a tab in the panel

#

"Versions"

smoky lagoon
# proper kestrel Localhost

what's your operating system?
what java version do you have right now?
what steps have you tried to install a different java version?

proper kestrel
#

Spigot

supple sinew
#

That doesn't answer any of the questions they asked

smoky lagoon
# proper kestrel Spigot

spigot is the server software, what I was asking for is the Java version you are using to run Spigot

#

here's a quick startup guide to get familiar

proper kestrel
#

How can i See the java version

finite osprey
# proper kestrel How can i See the java version

Here is a general way to change the Java version:

Download and Install a New Version of Java
You can download the version of Java you want to use from the Official Oracle website. Please note that starting from Java 11, Oracle provides JDK distributions for free under an open-source license (OpenJDK).

Set the JAVA_HOME Environment Variable
This is operating system-specific:

Windows

Right-click the Computer icon on your desktop or in the Start menu, choose Properties.
Click Advanced system settings.
Click Environment Variables.
Click New under System variables.
Enter JAVA_HOME as the variable name and the path to your Java JDK directory as the variable value (e.g., C:\Program Files\Java\jdk-13).
Click OK.
In the System Variables section, scroll down, select the Path variable and click Edit.
In the Edit System Variable window, click New and then add %JAVA_HOME%\bin to the list.
Click OK, and OK again to close out.
macOS/Linux

Open Terminal.
Open ~/.bash_profile or ~/.bashrc or ~/.zshrc (depending on your shell) in a text editor. If these files do not exist, you can create them.
Add export JAVA_HOME=/usr/libexec/java_home -v 13 or export JAVA_HOME=/path/to/your/jdk13/installation at the end of the file (replace 13 with your version).
Save and close the text editor.
To load the new environment variable into the current session, you can type source ~/.bash_profile or source ~/.bashrc or source ~/.zshrc in Terminal.
Verify the New Java Version
Open a new terminal window and type java -version. The output should display the version you just installed. If it doesn't, you may need to close and reopen your terminal windows, or reboot your computer, for the changes to take effect.

Please note that these instructions assume you want to replace your existing Java version. If you want to keep multiple versions and switch between them, the process is a bit more complicated and might require additional tools or scripts.```