Applet help

Hello,

i dont have much time and i need to get Applet work. I actually have here Windows 8.

Usually i dont use applet, but now i need.

Maybe i just made something stupid, or just use bad java libs.

Can i ask what can be wrong?

just a simple app

[java]
import com.jme3.app.SimpleApplication;
import com.jme3.renderer.RenderManager;

/**
*

  • @author OxPlay
    */
    public class SimpleJMETest extends SimpleApplication {

    public static void main(String args) {
    SimpleJMETest app = new SimpleJMETest();
    app.start();
    }

    @Override
    public void simpleInitApp() {
    }

    @Override
    public void simpleUpdate(float tpf) {
    }

    @Override
    public void simpleRender(RenderManager rm) {
    //TODO: add render code
    }
    }
    [/java]

console log:

Java Plug-in 10.40.2.43 Using JRE version 1.7.0_40-b43 Java HotSpot(TM) Client VM User home directory = C:\Users\OxPlay ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- java.net.MalformedURLException: no protocol: at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at com.sun.deploy.uitoolkit.impl.awt.AWTDefaultPreloader$GrayBoxPainterStarter.run(Unknown Source) This occurred while 'Determining packages to load' no protocol: code.jar java.net.MalformedURLException: no protocol: code.jar at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at org.lwjgl.util.applet.AppletLoader.loadJarURLs(AppletLoader.java:805) at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:840) at java.lang.Thread.run(Unknown Source)

thanks very much for help!

when i run it using server access, not locally then i have:

Java Plug-in 10.40.2.43 Using JRE version 1.7.0_40-b43 Java HotSpot(TM) Client VM User home directory = C:\Users\OxPlay ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ---------------------------------------------------- Missing Permissions manifest attribute for: ----------------- Missing Codebase manifest attribute for: ----------------- Missing Permissions manifest attribute for:----------------- Missing Codebase manifest attribute for: ----------------- ...

null
null
wrz 26, 2013 12:51:13 AM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.0 RC2
applet:init
applet:start
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl context running on thread LWJGL Renderer Thread
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: aticfx64
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: ATI Technologies Inc.
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 4.2.12002 Compatibility Profile Context 9.12.0.0
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: AMD Radeon HD 6670
wrz 26, 2013 12:51:15 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 4.20
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Device: OpenAL Soft
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Vendor: OpenAL Community
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Renderer: OpenAL Soft
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Version: 1.1 ALSOFT 1.15.1
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
wrz 26, 2013 12:51:15 AM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
Exception in thread “LWJGL Renderer Thread” java.lang.IllegalStateException: No loader registered for type “fnt”
at com.jme3.asset.ImplHandler.aquireLoader(ImplHandler.java:198)
at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:271)
at com.jme3.asset.DesktopAssetManager.loadFont(DesktopAssetManager.java:370)
at com.jme3.app.SimpleApplication.loadGuiFont(SimpleApplication.java:179)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:187)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:207)
at java.lang.Thread.run(Unknown Source)

the same when i try to run JME Applet Demo:

http://jmonkeyengine.org/demo/applet/

what kind of jdk should i use? -> if this is a problem

I think the problem is LWJGL. You could try to update it to the latest version (2.9.0. or 2.9.1 nightly).

1 Like

The first stack trace says It’s expecting to open “code.jar” as a URL. It should start with “http:” or something like that. You’d have to check where that URL came from and correct that.

The LWJGL problems might be just a consequence of that, or an independent problem.

1 Like

i really dont know why, but i have “checking for updates failed”.

some time ago i had no problems. i have direct connection here, no routers.
i have “no proxy” setting in SDK.

anyway ty for help, i will try to get SDK updated work.