Reply
 
Thread Tools Display Modes
  #11  
Old 02-14-2012, 09:39 PM
ty2u ty2u is offline
Junior Member
 
Join Date: Feb 2012
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default I have more info I think
So I have been trying to get this to work.

I tried using wine, and even wine64, neither of those appear to work though it sounds like that resolves some various issues on Linux. I know when I did use it on Linux it would sometimes have a problem with repeating a control button over and over until I pressed it again.

Since this would be using Linux compat I am guessing it would have the same issues. Thus, I attempted to use wine, without any luck.

I also got the errors mentioned above when trying to use Sun Java. I tried version 6 and 7.

However, just now I tried installing phpeclipse, which failed with something to do with openjdk, but now when I do java -version it says:

Code:
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

Now when I do java -jar minecraft.jar I get this:

Code:
> java -jar minecraft.jar
java.lang.NullPointerException
	at net.minecraft.GameUpdater.fatalErrorOccured(GameUpdater.java:894)
	at net.minecraft.GameUpdater.loadJarURLs(GameUpdater.java:230)
	at net.minecraft.GameUpdater.run(GameUpdater.java:249)
	at net.minecraft.Launcher$1.run(Launcher.java:84)
Fatal error occured (2): null
java.lang.NullPointerException
	at net.minecraft.GameUpdater.fatalErrorOccured(GameUpdater.java:894)
	at net.minecraft.GameUpdater.loadJarURLs(GameUpdater.java:230)
	at net.minecraft.GameUpdater.run(GameUpdater.java:249)
	at net.minecraft.Launcher$1.run(Launcher.java:84)
In Minecraft it says:
Failed to launch
Fatal error occurred (2): null

So does this help any? I don't know what to do about that. Any idea what the problem is?
Reply With Quote
  #12  
Old 02-15-2012, 03:12 AM
ty2u ty2u is offline
Junior Member
 
Join Date: Feb 2012
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
OK, since then I have discovered thats because that is a downgraded java version which doesn't even work.

I get the same error.

Code:
Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: Can't load library: /home/oapdsf9/.minecraft/bin/natives/liblwjgl.so
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828)
	at java.lang.Runtime.load0(Runtime.java:792)
	at java.lang.System.load(System.java:1059)
	at org.lwjgl.Sys$1.run(Sys.java:70)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
	at org.lwjgl.Sys.loadLibrary(Sys.java:95)
	at org.lwjgl.Sys.<clinit>(Sys.java:112)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
	at net.minecraft.client.Minecraft.a(SourceFile:180)
	at net.minecraft.client.Minecraft.run(SourceFile:648)
	at java.lang.Thread.run(Thread.java:722)
Aside from this forum thread I found this:
http://www.minecraftforum.net/topic/...-with-sun-jdk/

And this page:
http://cooltrainer.org/2010/09/20/pl...ft-on-freebsd/

I also found this:
http://www.minecraftwiki.net/wiki/Tu...s/Update_LWJGL

However updating it didn't work. Perhaps I can figure out how to build it from source. Has anyone tried that? Why wouldn't it work with linux compat?
Reply With Quote
  #13  
Old 02-16-2012, 05:28 AM
ty2u ty2u is offline
Junior Member
 
Join Date: Feb 2012
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I have since found some more links which I am attempting to get working but so far having issues getting things to compile.

These are related. The first one explains the 2nd one.
http://lists.pcbsd.org/pipermail/tes...er/005888.html
http://foo.poildetroll.net/minecraft...ON_FREEBSD.txt
Reply With Quote
  #14  
Old 02-16-2012, 12:38 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 2,501
Thanks: 18
Thanked 442 Times in 358 Posts
Default
Originally Posted by ty2u View Post
I have since found some more links which I am attempting to get working but so far having issues getting things to compile.

These are related. The first one explains the 2nd one.
http://lists.pcbsd.org/pipermail/tes...er/005888.html
http://foo.poildetroll.net/minecraft...ON_FREEBSD.txt
I have currently been following this guide to try and fix the minecraft PBI. So far I have gotten all the libraries *except* libLWJGL to rebuild successfully. Now I am not a java programmer, so if you want to take a look at the results and offer any suggestions, here are the links:

Code: http://trac.pcbsd.org/browser/pbi/mo...st-portmake.sh

Result (Do a search for "Step 3: LWJGL" to get to the relevant part): Find the "build.log" for minecraft-client on http://pbibuild.pcbsd.org (32-bit) or http://pbibuild664.pcbsd.org (64-bit)
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
  #15  
Old 02-16-2012, 08:53 PM
ty2u ty2u is offline
Junior Member
 
Join Date: Feb 2012
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Thanks!

That might have been the same place it was failing for me. However the one thing I am trying to do with a bit of difficulty is to build them on 8.2 which they said works on that first link.

I am attempting to do that right now but for some reason have all sorts of silly unrelated problems in the way. So maybe it just wasn't meant to be. But I won't accept that and I won't give up until it works, one way or the other.

I am not much of a java coder either and so tend to stay away from it as much as possible. So if anyone can help please do!

Maybe it could be the wrong environment variables being set somehow or being set wrongly. I did some searching and saw something that said to use setenv instead of export. But maybe that is just from the command line and not a script. Because it seems like it is having problems finding this:
package net.java.games.input does not exist

Or perhaps there was also a specific revision of the jinput lib used which isn't mentioned.
Reply With Quote
  #16  
Old 02-17-2012, 02:39 AM
ty2u ty2u is offline
Junior Member
 
Join Date: Feb 2012
Location: Canada
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I got the lwjgl thing to build by using revision 235 of jinput. However I don't know if thats what did it or if its because I copied the jinput.jar and jutils.jar into the lwjgl/libs folder and used this from the command prompt before doing the ant commands for it:
setenv CLASSPATH ~/lwjgl/libs/jinput.jar:~/lwjgl/libs/jutils.jar

I copied it all over the old files, even deleted the jinput libs like it says can be done but I still get the same error: Exception in thread "Minecraft main thread" java.lang.UnsatisfiedLinkError: Can't load library: /home/osioaf99/.minecraft/bin/natives/liblwjgl.so

So I don't know what else can be done.
Reply With Quote
  #17  
Old 03-04-2012, 10:06 PM
mindKMST mindKMST is offline
Junior Member
 
Join Date: Jan 2011
Location: Santa Cruz, CA
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to mindKMST
Default
I followed these instructions several months ago: http://foo.poildetroll.net/minecraft...ON_FREEBSD.txt

I was able to get the libraries built and have the minecraft client running natively with openjdk6. I think the problem may be that the minecraft-client port uses linux jdk
Reply With Quote
  #18  
Old 04-28-2012, 12:17 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 2,501
Thanks: 18
Thanked 442 Times in 358 Posts
Default
I just finished creating a custom-built PBI module for Minecraft that works perfectly. Rather than using the minecraft ports (with the linux java) I am using OpenJDK6 with the new LWJGL port and a few custom wrapper/install scripts to properly replace the LWJGL (and a couple others) with the FreeBSD compiled libs. I have been testing it extensively and it works perfectly as far as I can tell (needed a couple other ports to get the sound working as well)

Since the PBI build servers are currently down for maintenance, you can download the module from here [1] and build it using EasyPBI. Once the build servers are back up, I will try to get the PBI into the AppCafe as soon as possible.

[1] "svn co svn://svn.pcbsd.org/pbi/modules/nonport/minecraft minecraft-PBI-module"
or simply view it from: http://trac.pcbsd.org/browser/pbi/mo...port/minecraft
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
  #19  
Old 05-09-2012, 12:27 AM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 2,501
Thanks: 18
Thanked 442 Times in 358 Posts
Default
The new Minecraft PBI was just approved a few moments ago. It should be available in the AppCafe within 24 hours.
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
  #20  
Old 05-12-2012, 04:08 PM
seanbruno seanbruno is offline
Senior Member
 
Join Date: Dec 2010
Posts: 149
Thanks: 5
Thanked 1 Time in 1 Post
Default
Hrm ... Not sure what this is all about. I can't seem to get the game to load via the PBI

http://people.freebsd.org/~sbruno/minecraft_pbi.txt
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:25 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.