简体   繁体   中英

Java applet - Does not initialize and has NullPointerException errors

I gathered class files from a website for a java applet. I decompiled the files to get java files. I placed them in Eclipse. When I " run as applet " it doesn't initialize and I get this error :

java.lang.NullPointerException at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source) at sun.misc.FloatingDecimal.parseDouble(Unknown Source) at java.lang.Double.parseDouble(Unknown Source) at java.lang.Double.valueOf(Unknown Source) at SampleDistApplet.start(SampleDistApplet.java:44) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

Can anyone help me with this issue?

Copy and paste of applet class files do'nt work properly after decompiling in my view. Instead you create own applet files then run it. Then you also get some practice about applet applications.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM