Assets in netbeans 7

How do you import models with netbeans, where do you put them, so that when it compiles i can load them?



should i perhaps make him locate at another folder, but then how to know where your applications jar is located so i can make it relative to that?

Just use jMP? Its using the same components as NetBeans 7 and adds the stuff you’re asking for.

Just put the assets in the classpath

i for some reason can’t, when i open it, it scans and lags alot, after about 10 minutes my processor heats up and computer shuts down, idk maybe bug or something, but i have 3ghz processor so it shouldn’t be a problem, any suggestions?

Open the sceneviewer once per app start or update to latest nightly. If your computer shuts down when it gets too hot thats badly configured / faulty hardware.

thanks, ill try that later

ok, now if i try to import a exported model from blender 2.8a(obj format) it gives error

Jul 11, 2011 9:20:19 PM com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

com.jme3.asset.AssetNotFoundException: Models/p03.png (Flipped) (Mipmaped)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:236)

at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:290)

at com.jme3.scene.plugins.MTLLoader.readLine(MTLLoader.java:137)

at com.jme3.scene.plugins.MTLLoader.load(MTLLoader.java:203)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:240)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:281)

at com.jme3.scene.plugins.OBJLoader.loadMtlLib(OBJLoader.java:289)

at com.jme3.scene.plugins.OBJLoader.readLine(OBJLoader.java:341)

at com.jme3.scene.plugins.OBJLoader.load(OBJLoader.java:519)

at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:240)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:373)

at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:383)

at modelloadingtest.ModelLoadingTest.simpleInitApp(ModelLoadingTest.java:30)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:223)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:123)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:199)

at java.lang.Thread.run(Thread.java:662)







if i try to export standard cube it works, am i doing something wrong when exporting?

According to the error message you are missing a texture in the models folder. Btw with latest nightly you can directly import blender files.

1 Like

my bad! thanks it works, thanks for impressively quick responses!