Posted February 26, 201312 yr I have tried and tried, but I can't seem to get an external library linked. Has anyone done this? Can they help!!
February 26, 201312 yr What do you mean with external lib? i know what external is and what lib is but the combination of it is for me new.
February 26, 201312 yr Author I have a library developed by a third party (external) that I want to use. This one to be exact - http://xstream.codehaus.org/download.html I download it, drop it in the libs folder and add it to my class path. I also found some information stating i should add it to the mods dir to have it get added to the class path. When I actually try to use it I get a Java null pointer exception, as outlined below. 2013-02-25 21:06:08 [iNFO] [ForgeModLoader] FML has found a non-mod file xstream-1.4.4.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. 2013-02-25 21:06:09 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0 2013-02-25 21:06:09 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue 2013-02-25 21:06:09 [sEVERE] [ForgeModLoader] mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized bobber [bobber Mod] (bin) Unloaded->Constructed->Errored 2013-02-25 21:06:09 [sEVERE] [ForgeModLoader] The following problems were captured during this phase 2013-02-25 21:06:09 [sEVERE] [ForgeModLoader] Caught exception from bobber java.lang.Error: Unresolved compilation problems: The import com.thoughtworks cannot be resolved XStream cannot be resolved to a type XStream cannot be resolved to a type at bob.bobsmod.manifest.Manifest.<init>(Manifest.java: at bob.bobsmod.CommonProxy.ConfigInit(CommonProxy.java:13) at bob.bobsmod.preInit(bobsmod.java:49) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:487) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:153) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:86) at cpw.mods.fml.common.Loader.loadMods(Loader.java:505) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) at net.minecraft.client.Minecraft.startGame(Minecraft.java:410) at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] cpw.mods.fml.common.LoaderException: java.lang.Error: Unresolved compilation problems: The import com.thoughtworks cannot be resolved XStream cannot be resolved to a type XStream cannot be resolved to a type 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:130) 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:506) 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) 2013-02-25 21:06:19 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:410) 2013-02-25 21:06:19 [iNFO] [sTDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44) 2013-02-25 21:06:19 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744) 2013-02-25 21:06:19 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] Caused by: java.lang.Error: Unresolved compilation problems: The import com.thoughtworks cannot be resolved XStream cannot be resolved to a type XStream cannot be resolved to a type 2013-02-25 21:06:19 [iNFO] [sTDERR] at bob.bobsmod.manifest.Manifest.<init>(Manifest.java: 2013-02-25 21:06:19 [iNFO] [sTDERR] at bob.bobsmod.CommonProxy.ConfigInit(CommonProxy.java:13) 2013-02-25 21:06:19 [iNFO] [sTDERR] at bob.bobsmod.bobber.preInit(bobber.java:49) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:487) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:153) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at java.lang.reflect.Method.invoke(Unknown Source) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) 2013-02-25 21:06:19 [iNFO] [sTDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268) 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:86) 2013-02-25 21:06:19 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.loadMods(Loader.java:505)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.