hiero不支持 OS X 10.7.x Lion解决方案(lion系统测试通过)

From Terminal.app
svn checkout https://bob.newdawnsoftware.com/repos/slick/trunk/ slick-trunk

In Terminal.app
cd slick-trunk/Slick
ant build-slick
ant slick-util
Creates
slick.jar
slick-util.jar
in the slick-trunk/Slick/lib folder

Finder->Go to slick-trunk/Slick/lib
Expand natives-mac.jar (e.g. right click->Open with->The Unarchiver.app) and move resulting files to lib folder so that libjinput-osx.jnilib, liblwjgl.jnilib and openal.dylib are at the same level as natives-mac.jar
Delete the empty natives-mac folder
This avoids the dreaded "java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path" error on launch

Launch Eclipse->File->New->Other->Java Project from Existing Ant Build File
Browse to slick-trunk/Slick/build.xml
Select "javac" task found in target "build-hiero"
Click Finish
Right click slick project->Build Path->Configure Build Path
Click Add External JARs
Add
slick.jar
slick-util.jar
lwjgl.jar
From slick-trunk/Slick/lib/
Expand lwjgl.jar
Click on Native Library Location
Click Edit button
Click External Folder and browse to slick-trunk/Slick/lib (this will allow the app to find libjinput-osx.jnilib, liblwjgl.jnilib and openal.dylib at runtime)
Click Order and Export tab
Click checkbox for
slick.jar
slick-util.jar
lwjgl.jar
Click OK button

Right click slick project->Run As->Java Application
Select "Hiero - org.newdawn.slick.tools.hiero"
Click OK
Hiero should launch successfully

Right click slick project->Export->Runnable jar file
Select Launch Configuration "Hiero - slick"
Browse for Export destination
Click Finish

Go to destination folder
Copy libjinput-osx.jnilib, liblwjgl.jnilib and openal.dylib so that they are in the same folder as Hiero.jar
Launch Hiero.jar
Done.


下载地址:Hiero.jar for lion

你可能感兴趣的:(ant,测试,jar,OS,Build,library)