Tuesday, July 28, 2020

Fedora 32 : Play Minecraft with TLauncher.

Today I will show you how you can install java and use TLauncher to play Minecraft game on Fedora 32.
You need to have version Java 9 or 10 in order to use this software.
First, download the archive from the official website.
Create a folder name and unzip it into this folder and use these commands:
[mythcat@desk TLauncher]$ ls
README-EN.txt  README-RUS.txt  TLauncher-2.72.jar
[mythcat@desk TLauncer]$ sudo su 
[root@desk TLauncher]# dnf list java* | grep openjdk-devel
java-latest-openjdk-devel.x86_64                  1:        @updates
java-1.8.0-openjdk-devel.x86_64                   1:           updates 
java-1.8.0-openjdk-devel-slowdebug.i686           1:           updates 
java-1.8.0-openjdk-devel-slowdebug.x86_64         1:           updates 
java-11-openjdk-devel.i686                        1:               updates 
java-11-openjdk-devel.x86_64                      1:               updates 
java-11-openjdk-devel-slowdebug.x86_64            1:               updates 
java-latest-openjdk-devel.i686                    1:        updates 
java-latest-openjdk-devel-slowdebug.x86_64        1:        updates 
[root@desk TLauncher]# dnf install java-11-openjdk.x86_64
Last metadata expiration check: 0:09:17 ago on Tue 28 Jul 2020 09:33:24 PM EEST.
Dependencies resolved.
 Package                              Architecture       Version                           Repository           Size
 java-11-openjdk                      x86_64             1:                updates             251 k
Installing dependencies:
 java-11-openjdk-headless             x86_64             1:                updates              38 M
 ttmkfdir                             x86_64             3.0.9-58.fc32                     fedora               58 k
 xorg-x11-fonts-Type1                 noarch             7.5-24.fc32                       fedora              500 k

Transaction Summary
Install  4 Packages

Total download size: 39 M
Installed size: 173 M
Is this ok [y/N]: y
[root@desk TLauncher]# sudo alternatives --config java

There are 4 programs which provide 'java'.

  Selection    Command
   1           /opt/jdk1.8.0_232/bin/java
   2           /opt/jdk1.8.0_201/bin/java
*+ 3           java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-
   4           java-11-openjdk.x86_64 (/usr/lib/jvm/java-11-openjdk-

Enter to keep the current selection[+], or type selection number: 4
[root@desk TLauncher]# export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-
[root@desk TLauncher]# echo $JAVA_HOME
[root@desk TLauncher]# java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment 18.9 (build 11.0.8+10)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10, mixed mode, sharing)
Now you can start the program:
[mythcat@desk TLauncher]$ sudo java -jar TLauncher-2.72.jar

run double running protection
[Downloader2] Loaded configuration: normal
[Downloader2] Files in queue 15
[Downloader2] Starting download 15 files...
The last command will run the software and you will able to play the game.