How to run Java and Minecraft in Slacko64_6.3.0? (Solved)

Booting, installing, newbie
Message
Author
User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

How to run Java and Minecraft in Slacko64_6.3.0? (Solved)

#1 Post by leejosepho »

I have a frugal install of puppy_slacko64_6.3.0 in a partition here in my laptop, and I would like to get Java working and then get Minecraft (client) running. I have already used the Puppy Package Manager to install gcc-java-4.8.2-x86_64-1.txz, but then 'java -jar Minecraft.jar' as a command in a terminal returns a message saying 'bash: java: java not found'.

I have looked at http://puppylinux.org/wikka/JavaRuntimeEnvironment and maybe I should be using something from there, but I do not know which file to use or how to install something manually in Puppy.

What do I need to do?

Many thanks!

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

Howdy Mate!

Lose that pkg you installed, then follow directions here.

Install the third one first, then the second.

That you've got a full install on the hard drive, I'm not exactly sure how Rerwin's Java builder's gonna run. If the prompts get funky, you can always bail..

If in fact it goes about building a *loadable* SFS pkg, make sure wherever you load it from it stays there. Should you ever need to remove the pkg, make sure you "sfs_load" UNLOAD IT beforehand. :wink:
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#3 Post by leejosepho »

Semme wrote:That you've got a full install on the hard drive, I'm not exactly sure how Rerwin's Java builder's gonna run...
I actually have a frugal install I have updated in every way the Package Manager offers. Question: Does frugal or full make a difference? I could easily change to a full install if necessary, but I have 1.5 GiB storage space in my save file and I presently have 844MiB free after removing the gcc-java-4.8.2-x86_64-1.txz package..

Many thanks for your help, and now off to study the directions at your link...

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

Frugal's good. Don't concern yourself with PPM when addressing Java, Richard's installer will take care of everything including determining if there's enough space available outside your save. If for some reason it doesn't seem to work after the build finishes and asks you if "would you like to load it now," reboot.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#5 Post by leejosepho »

Semme wrote:Lose that pkg you installed, then follow directions here.

Install the third one first, then the second...

Richard's installer will take care of everything...
I goofed at first and turned "third one first, then the second" into "third one, then first", but that seems to have not caused any problem. After going back and installing the second and completing everything, 'java -jar Minecraft.jar' now works perfectly! So next:

How can I turn 'java -jar Minecraft.jar' into some kind of Desktop/Tray icon? Going to the .jar and typing the command is not a problem, but having something to simply click would nicely ice the cake here...

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

Go into the "my-applications/bin" directory in your /root folder and rt-clk >> new >> script.

Under the shebang put "java -jar Minecraft.jar &", then save and close.

With this folder still open, drag the icon to your desktop.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#7 Post by leejosepho »

Semme wrote:Go into the "my-applications/bin" directory in your /root folder and rt-clk >> new >> script...
...and make its name 'Minecraft' or whatever?

Semme wrote:Under the shebang...
What and/or where is "the shebang"? I know the meaning of the term, but I do not know where to place 'java -jar Minecraft.jar &'.

Edit: I figured that out and now I have this...

Code: Select all

#!/bin/sh
java -jar /my-applications/Minecraft.jar &
...but it does not work.

note: 'java -jar ~/my-applications/Minecraft.jar' works in a terminal, but none of these work in the script:
java -jar Minecraft.jar &
java -jar /my-applications/Minecraft.jar &
java -jar ~/my-applications/Minecraft.jar &

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

Persistence Mate. You've got to be willing to forge ahead when the going gets tough. :D

When you opened the script after creating it, there was only >> #!/bin/sh, or, your Shebang! Since Java's already on the system $PATH, change the line in your script to reflect the absolute directory path to your Minecraft.jar.

And, rethink'n this, I'd create a "jars" directory wherever you like. Since simple scripts are tiny, this folder could reside in "~/", also known as /root when running Pup. Your script would still point to wherever your store your Minecraft.jar.

That I wanted a quick confirmation, this works fine when clk'd as a desktop shortcut:

Code: Select all

#!/bin/sh
java -jar /tmp/JSudoku_1.0.jar &

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#9 Post by leejosepho »

Semme wrote:Persistence Mate. You've got to be willing to forge ahead when the going gets tough. :D
Maybe you missed what I had posted:
---
...none of these work...
.
#!/bin/sh
java -jar Minecraft.jar &
.
#!/bin/sh
java -jar /my-applications/Minecraft.jar &
.
#!/bin/sh
java -jar ~/my-applications/Minecraft.jar &
---
Semme wrote: That I wanted a quick confirmation, this works fine when clk'd as a desktop shortcut:

Code: Select all

#!/bin/sh
java -jar /tmp/JSudoku_1.0.jar &
I have only one eye that can read, but I think that is exactly what I have tried!

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

Where exactly is your Minecraft.jar?

What does "env | grep -i java" return?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#11 Post by leejosepho »

Semme wrote:Where exactly is your Minecraft.jar?
~/my-applications
Semme wrote:What does "env | grep -i java" return?
JAVA_HOME=/opt/jre

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#12 Post by Semme »

So long as "which java" returns a location such as "/opt/jre/bin/java",
let's see the contents of the script which runs "java -jar /my-applications/Minecraft.jar &"..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#13 Post by leejosepho »

Still as previously posted:

Code: Select all

#!/bin/sh
java -jar /my-applications/Minecraft.jar &
edit:
Semme wrote:So long as "which java" returns a location such as "/opt/jre/bin/java",
So I am missing the '/bin/java' part?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#14 Post by Semme »

What's the return on "which java"?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#15 Post by leejosepho »

Is that not what my "env | grep -i java" showed?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

No, that's a "PATH" variable. I'm getting the vibe "which java" returns nothing..

Which terminal are you running?

Is it Urxvt?

==

Go to "Setup" and open "SFS load on the fly."

Is Richards jre pkg in your right pane?

THREE questions here..

Pls answer ALL!

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#17 Post by leejosepho »

Semme wrote:I'm getting the vibe "which java" returns nothing..

Which terminal are you running?

Is it Urxvt?
1. I only know about the one on the Slacko Desktop, and yes,
2. It is Urxvt.
Semme wrote:Go to "Setup" and open "SFS load on the fly."

Is Richards jre pkg in your right pane?
3. No, "Nothing loaded" is all I see there. However, Java and Minecraft are working fine as long as I start Minecraft via 'java -jar Minecraft.jar'* from a terminal.
*note: I also have copy of Minecraft in that location to simplify typing in the terminal.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#18 Post by Semme »

Your answer suggests you never followed through with my response here, otherwise you'd have a loaded JRE pkg.

Can you copy and paste to and from with Urxvt?

Last time, what does "which java" report?
Attachments
tahr-build_jre.jpg
(15.74 KiB) Downloaded 141 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

User avatar
leejosepho
Posts: 50
Joined: Fri 24 Sep 2010, 06:27
Location: 200 miles south of Little Rock

#19 Post by leejosepho »

Semme wrote:Your answer suggests you never followed through with my response...
I suspect you might be missing or forgetting some of the facts:
leejosepho wrote:
Semme wrote:...follow directions here.

Install the third one first, then the second...

Richard's installer will take care of everything...
I goofed at first and turned "third one first, then the second" into "third one, then first", but that seems to have not caused any problem. After going back and installing the second and completing everything, 'java -jar Minecraft.jar' now works perfectly!
Semme wrote:Can you copy and paste to and from with Urxvt?
No, I cannot. The window just turns white when I try.
Semme wrote:...what does "which java" report?
How can I check "which Java"?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#20 Post by Semme »

Install LXTerminal from PPM. Then open it and type: which java

You should have absolutely zero troubles with terminal copy'n paste from here on out!

==

Now some "fact" checking..

Open SFS_Load from your menu and hit the drop-down on your left.

Do you see some sort of "jre" type pkg?
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

Post Reply