Help With Legacy Client Compile

Forum for alternative clients, mods & discussions on the same.

Help With Legacy Client Compile

Postby NineWorlds » Sun Feb 21, 2016 6:38 am

I'm trying to compile the Legacy Ender Client.
(Hopefully to share with all if Ender says it's okay)
Now I managed to get a successful build. ( i think)

Though when I try to run it i get.

Code: Select all
java -Xms256m -Xmx512m -jar haven.jar legacy.havenandhearth.com
Exception in thread "Haven main thread" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:189)
        at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:49)
        at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:80)
        at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:103)
        at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:49)
        at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109)
        at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:60)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
        at javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:520)
        at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131)
        at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:90)
        at haven.HavenPanel.<init>(HavenPanel.java:77)
        at haven.MainFrame.<init>(MainFrame.java:159)
        at haven.MainFrame.main2(MainFrame.java:272)
        at haven.MainFrame.access$100(MainFrame.java:52)
        at haven.MainFrame$6.run(MainFrame.java:327)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "Haven resource loader" haven.Resource$LoadException: Load error in resource gfx/ccscr(v1), from local res source
        at haven.Resource$Loader.handle(Resource.java:487)
        at haven.Resource$Loader.run(Resource.java:450)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Shutdown in progress
        at java.lang.ApplicationShutdownHooks.add(Unknown Source)
        at java.lang.Runtime.addShutdownHook(Unknown Source)
        at com.sun.imageio.stream.StreamCloser$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.imageio.stream.StreamCloser.addToQueue(Unknown Source)
        at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown Source)
        at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
        at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
        at javax.imageio.ImageIO.read(Unknown Source)
        at haven.Resource$Image.<init>(Resource.java:549)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at haven.Resource.load(Resource.java:1089)
        at haven.Resource.access$300(Resource.java:74)
        at haven.Resource$Loader.handle(Resource.java:471)
        ... 2 more
User avatar
NineWorlds
 
Posts: 84
Joined: Fri Aug 28, 2015 11:01 pm

Re: Help With Legacy Client Compile

Postby shubla » Mon Feb 22, 2016 10:35 am

You have all needed libraries in correct places?
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Help With Legacy Client Compile

Postby NineWorlds » Mon Feb 22, 2016 12:17 pm

shubla wrote:You have all needed libraries in correct places?


Not sure i'm pretty new to anything dealing with code.
User avatar
NineWorlds
 
Posts: 84
Joined: Fri Aug 28, 2015 11:01 pm

Re: Help With Legacy Client Compile

Postby borka » Fri Feb 26, 2016 12:13 am

for the missing jogl you might drop the gluegen-rt-natives and jogl-natives into lib folder,
which you can strip from https://jogamp.org/deployment/jogamp-cu ... atforms.7z
- while at it you might aswell exchange the existing jar files in /lib with newer ones -
and edit them into build.xml aswell

url to missing res
http://legacy.havenandhearth.com/res/gfx/ccscr.res
should go into haven-res.jar gfx folder

but: it's a hazzle to compile it for distributing ... if you'd just do it for yourself keep your compiled one and just shove the needed jogl files into Ender folder,
then move the missing res into haven-res.jar (which works best with 7zip freeware)

if you get more errors about missing res files you could take the given url as blueprint for downloading - just check for the pathes given and fix the url with that - also ignore any version stuff like (v1) with res name ;) - then 7zip it to the right path into haven-res.jar

and no i'm not going to compile any clients anymore for legacy as i stripped my machine from all obsolete old Java versions i'd need to do so ... :P
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap


Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 73 guests