Help start up

Hi all,



I am a newbie here. Do you know are there any “HelloWorld” project for jme3 android? Thanks!

jME3 Android is still in early development. For more information at this time your best bet is to simply browse through the posts in this Android forum. To help test Android, there’s an app available on the market, which should be pretty much what you’re looking for:



http://hub.jmonkeyengine.org/groups/android/forum/topic/jmonkeyengine-tests-are-available-in-the-android-market/

You can find the source for the app on the market in:



jme3/src/android/jme3test/android



Start by looking at TestsActivity.java



The more testers the better :slight_smile:

Hi thanks guys. I have tried making a simple application like this:



public class SimpleApp extends SimpleApplication {



private static final java.util.logging.Logger logger = java.util.logging.Logger.getLogger(SimpleApp.class.getName());





@Override

public void simpleInitApp() {



Box b=new Box(Vector3f.ZERO,1,1,1);

Geometry geom=new Geometry(“Box”,b);

Material mat=new Material(assetManager, “Common/MatDefs/Misc/SolidColor.j3md”);

mat.setColor(“Color”, ColorRGBA.Blue);

geom.setMaterial(mat);

rootNode.attachChild(geom);

}



and called this from the mainActivity, but it prompt error when calling app.start(). Do you guys have any idea of what is going on??

What error do you get?



Look into the log:

Go to the platform-tools of the android SDK and run in the console:



adb logcat

There are quite many errors there, some fatal one would be:


  1. Could not find class ‘[Ljava.awt.image.BufferedImage:’, . referenced from method com.jme3.system.AppSettings.getIcons


  2. java.lang.NoClassDeFoundError: javax.swing.SwingUtilities



    A bit tough for me to understand, so I’d be really happy if you can help :smiley:



    Thanks!

dont try to compile the desktop packages on android.

How can I only compile the android packages?

Are you using Eclipse or Netbeans?



In eclipse go to jme3 project properties / Java Build Path / Source



jme3/src/android - Included (All) Excluded (None)



jme3/src/desktop - Included (All) Excluded */JmeSystem */Natives/

Yeah, same for NetBeans

I am using eclipse~



That is most helpful! Thanks guys

You can find the source for the app on the market in:

jme3/src/android/jme3test/android


Any idea of the path under Mac ? I can't find it...

I am also using Mac, the path is the same