Problem load font

Hi everyone, i have a problem with my android project when i use Android Studio.

The first time, everything it’s fine, but from the second time i have this error message: Exception thrown in Thread[GLThread 11668,5main]com.jme3.asset.AssetNotFoundExcepetion: Interface/Fonts/default.fnt

Why i have this message at the second time and not at first?

This is the .jar files i use in Android Studio:

  • jME3-core.jar
  • jME3-android.jar
  • jME3-effects.jar
  • jME3-jbullet.jar
  • jME3-jogg.jar
  • jME3-networking.jar
  • jME3-terrain.jar
  • j-ogg-oggd.jar
  • j-ogg-vorbisd.jar
  • jbullet.jar
  • jinput.jar
  • stack-alloc.jar
  • vecmath.jar

Thanks

Howdy Friend!

Always nice to see Android developers start using JME.

This is an issue that has to do with the application not closing correctly OR attempting to restart the mainactivity after one is already running (why this is the case I don’t know).

Usually the key is opening in portrait mode when you want landscape and JME by default doesn’t handle this.

The key is you must kill your application process properly on closing the main activity.

This post should help you through it as it is a common problem on JME and is explained there.

Good luck!

<3’s
BigBawb

3 Likes

Hi BibBob,

Great thank you, i try your solution to close a game properly (bible of android developper) and it’s work!

1 Like