LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-23-2022, 04:53 PM   #1
GumiBear
LQ Newbie
 
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 18

Rep: Reputation: 3
installing Minecraft on Slackware64 Current


this is my first post on here, this forum has helped me out a bunch as i started learning linux with slackware a few days ago, but now i've encountered a problem without any recent coverage anywhere.
i've been trying to run minecraft on my machine, as i mainly try and use it for gaming. i've installed the java jre according to the official howto.
on a side note, running slackpkg clean-system now constantly tries removing the newly installed jre. maybe someone could help with that, too.
the installation succeeded, running java -version yields
Code:
java version "1.8.0_341"
Java(TM) SE Runtime Environment (build 1.8.0_341-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.341-b10, mixed mode)
older posts referred to downloading the client jar from minecraft's website, which (thanks to Microsoft's wonderful changes to the game) is not offered anymore - i'm stuck with the tar gz from the official website.
extracting the content (a single file) and executing it in terminal with "./minecraft-launcher" only yields
Code:
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Aborted
it does create empty "/.minecraft/launcher" folders in my home directory though.

other than that the website only offers Debian, Arch and Snap packages. The first two obviously aren't viable, and from what i've understood messing with snap on slackware is too big of a hassle to be worth it. i hope someone can point me into the right direction.
 
Old 08-23-2022, 05:20 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Welcome GumiBear (used to love those candies)

First to avoid the proposal of removing a third-party package, use blacklist (or greylist ?) config file in /etc/slackpkg (check manpage).

Second, I'd rather try to convert Debian package than going snap way. Iirc SBo has a deb2tgz offered.

If I'm unclear do not hesitate to ask for further information.

Edit : maybe blacklist is a feature of slackpkgplus

Last edited by Tonus; 08-23-2022 at 05:22 PM.
 
1 members found this post helpful.
Old 08-23-2022, 05:42 PM   #3
reddog83
Member
 
Registered: Apr 2018
Distribution: Slackware 15.0/Current
Posts: 443

Rep: Reputation: 229Reputation: 229Reputation: 229
Slackware 15.0
https://slackware.nl/people/alien/sb..._64-1alien.txz
Slackware Current :
https://slackware.nl/people/alien/sb..._64-1alien.txz
This is the Java package you are looking for. Just make sure to reboot after installing openjdk


I have Minecraft on all my kids computer systems.

And here is Minecraft:
http://reddoglinux.ddns.net/linux/mi...6-noarch-1.txz

Last edited by reddog83; 08-23-2022 at 05:53 PM.
 
Old 08-23-2022, 05:48 PM   #4
GumiBear
LQ Newbie
 
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 18

Original Poster
Rep: Reputation: 3
thank you Tonus for the two ideas. editing the blacklist worked great, i totally forgot about that feature of slackpkg!
i tried using the deb2tgz tool which brought me a step closer - the game now shows up in my list of programs, but still doesn't do much. it launches the "minecraft-launcher" command, which again yields the same error as the tar.gz.

i will try red's solution tomorrow, thank you guys for the ideas and fast replies
 
Old 08-23-2022, 06:00 PM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by GumiBear View Post
thank you Tonus for the two ideas. editing the blacklist worked great, i totally forgot about that feature of slackpkg!
i tried using the deb2tgz tool which brought me a step closer - the game now shows up in my list of programs, but still doesn't do much. it launches the "minecraft-launcher" command, which again yields the same error as the tar.gz.

i will try red's solution tomorrow, thank you guys for the ideas and fast replies
Just make sure if you use the OpenJDK package that Reddog83 posted above that you remove the existing java package you have installed. You won't need both.
 
Old 08-23-2022, 06:17 PM   #6
slac
Member
 
Registered: May 2019
Posts: 265

Rep: Reputation: Disabled
I made a fresh installation of Slackware 15 just last night, so I tried to install Minecraft just to see if the same was happening to me:

* I downloaded the launcher from this link: https://launcher.mojang.com/download/Minecraft.tar.gz
* I extracted the contents of it: tar xvf Minecraft.tar.gz
* I executed minecraft-launcher/minecraft-launcher

A window box appeared telling that the launcher was being updated. It finished updating and then launcher was showed correctly.

Which means that you probably messed up something because everything is working correctly.

Also remember that the game needs java but not launcher itself anymore.

When you execute the launcher and install a version of the Minecraft Java Version a java binary will be installed and that is the one used for the game, you no longer need to install an external java version. Once any game version is installed you can find the java binary here: .minecraft/runtime/java-runtime-gamma/linux/java-runtime-gamma/bin/java

Just in case... Remember that the launcher is only for 64bit machines.
 
Old 08-23-2022, 10:07 PM   #7
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
I forgot, does 15 ship with Wayland? I'm on current, and I'm still using X, but the launcher (looking at ldd minecraft-launcher) is hooking into it now.

ETA: looks like this is a known problem: https://bbs.archlinux.org/viewtopic.php?id=248209 Do you have a locale set?

Last edited by garpu; 08-23-2022 at 10:10 PM.
 
Old 08-23-2022, 10:39 PM   #8
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 452

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by garpu View Post
I forgot, does 15 ship with Wayland?
It does; only Plasma uses it.
 
Old 08-24-2022, 04:22 AM   #9
GumiBear
LQ Newbie
 
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 18

Original Poster
Rep: Reputation: 3
Quote:
Just make sure if you use the OpenJDK package that Reddog83 posted above that you remove the existing java package you have installed. You won't need both.
thanks for the reminder. looks like messing with more jdks or jres won't help though, and as slac said, with modern versions of the game no external java libraries are needed.
Quote:
Just in case... Remember that the launcher is only for 64bit machines.
i'm on a 64bit system with multilib, a friend helped me with the setup.
apparently there are larger issues here, i have seen the posts that garpu referred to before i hit the hay.
they mention running the launcher with:
Code:
LC_ALL=C minecraft-launcher
i've only seen these solutions related to the arch installer, and since i'm fairly new to linux i'm not quite sure if this does apply to me, and if it does, how to pass these parameters (and what they do).
Quote:
Do you have a locale set?
could you please elaborate on that? i am using kde plasma, and i have set my keyboard layout, currency, time and date values according to my local standard (Germany).
running "locale" returns
Code:
LANG=en_DE.UTF-8
LC_CTYPE="en_DE.UTF-8"
LC_NUMERIC="en_DE.UTF-8"
LC_TIME="en_DE.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_DE.UTF-8"
LC_MESSAGES="en_DE.UTF-8"
LC_PAPER="en_DE.UTF-8"
LC_NAME="en_DE.UTF-8"
LC_ADDRESS="en_DE.UTF-8"
LC_TELEPHONE="en_DE.UTF-8"
LC_MEASUREMENT="en_DE.UTF-8"
LC_IDENTIFICATION="en_DE.UTF-8"
LC_ALL=
i would like to keep these overall settings as they suit my daily use best (english language with local values and metric system). specifying LC_ALL will overwrite the other values from what i've heard, can i set it temporarily to run the installer and leave the rest as-is?

Last edited by GumiBear; 08-24-2022 at 04:28 AM. Reason: added output of locale command
 
Old 08-24-2022, 04:56 AM   #10
GumiBear
LQ Newbie
 
Registered: Aug 2022
Location: Germany
Distribution: Slackware64 Stable 15.0
Posts: 18

Original Poster
Rep: Reputation: 3
i did it!
a friend was able to give me a quick answer, running "LC_ALL=C ./minecraft_launcher" is indeed just a temporary change of the LC_ALL variable, and the game seems to be running now. thank you all for your patience, i hope i'll soon be able to contribute a bit to this place on my own

for anyone using the game from the tar.gz installer, after installing you can simply create a desktop shortcut with a file with the contents
Code:
#!/bin/bash
cd /home/yourname/.minecraft/launcher/
LC_ALL=C ./minecraft-launcher
name it something like "Minecraft", and make it executable (chmod +x /path/to/Minecraft)

Last edited by GumiBear; 08-24-2022 at 06:12 AM. Reason: added instructions for creating a shortcut
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Minecraft NFC -- How one man took Minecraft to the next level LXer Syndicated Linux News 0 02-21-2016 05:53 AM
[SOLVED] Launch Minecraft and Minecraft server as non-root user Hasek39 Linux - General 4 01-04-2016 03:06 AM
Minecraft world trickery (and even minecraft on ipad) lhartvik LinuxQuestions.org Member Success Stories 2 05-28-2015 01:32 AM
LXer: GOL MineCraft Weekly. Grab Issue 2 Today, Linux Minecraft server LXer Syndicated Linux News 0 08-04-2013 11:41 AM
Updating from Slackware64-current to Slackware64 13. glore2002 Slackware 4 08-28-2009 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration