Author Topic: Eclipse setup/configuration  (Read 9520 times)

Jan_K.

  • Jr. Member
  • **
  • Posts: 14
Eclipse setup/configuration
« on: June 03, 2013, 12:06:59 PM »
Hello. I have problems to get the "ModelLoadingStandalone" tutorial running on eclipse. It was working fine but i updated to the newest dev release and now the setup seems to be different. I followed all instructions of the tutorial:
First i ran the installer jars. Then i created a new project in eclipse and added the bonzaiengine,jar and the lwjgl.jar to the Java Build Path. For the native library location of the bonzaiengine.jar i took /bin/native and for the lwjgl.jar i took third-party/lwjgl. I copied the models and the fonts folder to the project. The window opens but the model is not rendered...
Here is a screenshot of my eclipse setup:

http://imageshack.us/a/img17/2647/eclipsefehler.png

Does anyone have a clue what's wrong?!

Thanks for your help!

jerome_j

  • Administrator
  • *****
  • Posts: 116
    • Bonzai Engine
Re: Eclipse setup/configuration
« Reply #1 on: June 03, 2013, 12:29:48 PM »
It's working here. To fix your project, move the fonts and models folder inside 'src' or create a separate source folder containing both (this will fix the file not found error of the console).

Bonzai engine native libraries are only used with bullet physic.
Make sure your using lwjgl libraries.
« Last Edit: June 03, 2013, 12:31:27 PM by jerome_j »

Jan_K.

  • Jr. Member
  • **
  • Posts: 14
Re: Eclipse setup/configuration
« Reply #2 on: June 03, 2013, 12:50:41 PM »
I found the error! To get it running i just had do erase a "/" at line:

settings.stream = new Stream("models/fbx/kleinerSendesaal9_1.fbx");

and in line:

font = new BmfFont(assets, new Stream("fonts/CourrierNew16.fnt"));

Now it is running. Thanks

jerome_j

  • Administrator
  • *****
  • Posts: 116
    • Bonzai Engine
Re: Eclipse setup/configuration
« Reply #3 on: June 03, 2013, 12:55:51 PM »
Removing '/' changes how the files are located. With '/' in the classpath/jar vs without in the filesystem.
Make sure you're using the right one for your needs.