Post4VPS Forum | Free VPS Provider
How to install Java 8/9 on Debian Server - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: Geek World (https://post4vps.com/Forum-Geek-World)
+--- Forum: Scripting & Programming (https://post4vps.com/Forum-Scripting-Programming)
+--- Thread: How to install Java 8/9 on Debian Server (/Thread-How-to-install-Java-8-9-on-Debian-Server)

Pages: 1 2


RE: How to install Java 8/9 on Debian Server - fitkoh - 01-29-2021

(01-28-2021, 07:58 AM)sagher Wrote: i download the file. and paste it into /tmp folder . and give this command via ssh



and the output is :

Code:
Selecting previously unselected package jdk-15.0.2.
(Reading database ... 47584 files and directories currently installed.)
Preparing to unpack .../jdk-15.0.2_linux-x64_bin.deb ...
Unpacking jdk-15.0.2 (15.0.2-1) ...
Setting up jdk-15.0.2 (15.0.2-1) ...

Just in 10sec. is it all done ?

I went to search for a tutorial on running concurrent java versions. I don't recall exactly how to do it off hand, but I know I've seen tutorials before (I haven't used JAVA in many years).

Anyways, I stumbled upon SDKMAN, a CLI tool which is used for managing software development kits. Here is a tutorial for running concurrent versions of java using SDKMAN.

Perhaps if you have a chance to try it you can make a review for us.


RE: How to install Java 8/9 on Debian Server - sagher - 01-29-2021

(01-29-2021, 12:58 AM)fitkoh Wrote: I went to search for a tutorial on running concurrent java versions. I don't recall exactly how to do it off hand, but I know I've seen tutorials before (I haven't used JAVA in many years).

Anyways, I stumbled upon SDKMAN, a CLI tool which is used for managing software development kits. Here is a tutorial for running concurrent versions of java using SDKMAN.

Perhaps if you have a chance to try it you can make a review for us.

Yes Sure @fitkoh
But i need some more disk space for it. i think 5GB is not enough for it. already after all installation we discuss above my machine speed is loaded.


RE: How to install Java 8/9 on Debian Server - fitkoh - 01-29-2021

(01-29-2021, 05:49 AM)sagher Wrote: Yes Sure @fitkoh
But i need some more disk space for it. i think 5GB is not enough for it. already after all installation we discuss above my machine speed is loaded.

Yeah, whatever problem you're having with the disk space I would place at a high priority. I recommend you back up your work and create a support request in the private support forums.


RE: How to install Java 8/9 on Debian Server - LightDestory - 01-29-2021

(01-28-2021, 07:58 AM)sagher Wrote: i download the file. and paste it into /tmp folder . and give this command via ssh



and the output is :

Code:
Selecting previously unselected package jdk-15.0.2.
(Reading database ... 47584 files and directories currently installed.)
Preparing to unpack .../jdk-15.0.2_linux-x64_bin.deb ...
Unpacking jdk-15.0.2 (15.0.2-1) ...
Setting up jdk-15.0.2 (15.0.2-1) ...

Just in 10sec. is it all done ?
Your logs doesn't show any errors, so it the control is returned to the user... it should be ended successfully.
You can also use the following command:
  • apt install /path/to/jdk-15.0.2_linux-x64_bin.deb


Is the package compatible with your distro version? (ex. buster?)

If you have a graphical environment you can try a GUI tool called gdebi, it is very useful.



RE: How to install Java 8/9 on Debian Server - Mashiro - 01-31-2021

I recommend to use AdoptOpenJDK instead of Oracle Java to avoid issues with licensing and etc.

https://adoptopenjdk.net/installation.html#linux-pkg


Apart from that you installed JDK 15 which is neither Java 8 nor Java 9.

AdoptOpenJDK provides binaries for Java 8 up to the latest higher version of 15.

See here: https://adoptopenjdk.net/releases.html