ParaToxic Posted February 26, 2013 Share Posted February 26, 2013 Hey ya, I wan't to use java for a schoolproject with leadwerks and looked at the tutorial for that kind of stuff. Well I have some problems to get the Graphics command work in my sample. I just use the same code as in the tutorial but use System.loadLibrary("engine"); to load the engine because with Native.register I get the following error: Unable to load library 'engine': Das angegebene Modul wurde nicht gefunden. Then I have a main function like that; [size=4]public static void main(String[] args)[/size] { int a = LE.Initialize(); System.out.println("result:" + a); LE.Graphics(600, 800, 32, 0, 4); } But with the Graphics function I get the Error: Exception in thread "main" java.lang.UnsatisfiedLinkError: Leadwerks.LE.Graphics(IIIII)I at Leadwerks.LE.Graphics(Native Method) at lo.main.main(main.java:17) Java Result: 1 Hmmm, can somebody help me with that, it's very important for me get it working Thanks Quote Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted February 26, 2013 Share Posted February 26, 2013 Let me have a look at it and get back to you in a couple of hours.. have to go to a parents evening for my 6 year old. =). Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted February 26, 2013 Author Share Posted February 26, 2013 Thanks but I got it now Had to use Native.register but put the Dlls in the JDK bin folder Quote Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted February 26, 2013 Share Posted February 26, 2013 ok no probs glad you got it working. Just tried it myself, seems there is something up with setting the working directory in net beans. I had to build the jar and drop it in the LW directory to run it. Quote Link to comment Share on other sites More sharing options...
ZeroByte Posted February 27, 2013 Share Posted February 27, 2013 where can i download this Java Lib? Quote Win 7 64, LE 2.31, Liquid Cooled I7-960 @ 4.00GHz, 6GB DDR3 Ram @ 1600mhz, BFG GTX295, Sound Blaster X-FI. Link to comment Share on other sites More sharing options...
Matthew Nicholls Posted February 27, 2013 Share Posted February 27, 2013 There isn't a lib to download, but there is PDF tutorial to download. This will explain how you can write your own lib. http://www.leadwerks.com/werkspace/page/tutorials/_/programming/how-to-make-a-java-library-for-leadwerks-r54 Quote Link to comment Share on other sites More sharing options...
ZeroByte Posted March 1, 2013 Share Posted March 1, 2013 Thank's for the info Matthew.. Quote Win 7 64, LE 2.31, Liquid Cooled I7-960 @ 4.00GHz, 6GB DDR3 Ram @ 1600mhz, BFG GTX295, Sound Blaster X-FI. Link to comment Share on other sites More sharing options...
Recommended Posts
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.