Java applet crashes in Chrome -


i have issue java applet in chrome. error message: java(tm) platform se8 u40 has crashed appears.

after searching internet, enabled java in browser. changed java security settings, still not work.

testing applet using applet viewer command in terminal produces error message too:

java.lang.noclassdeffounderror : firstapplet 

in folder have class (firstapplet.class) , html page(page.html) , firstapplet.java

page.html

<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>insert title here</title> </head> <body bgcolor="#0000ff">  <applet code="firstapplet" width="500" height="500"></applet> </body> </html> 

firstapplet.java

import java.applet.applet; import java.awt.button; import java.awt.label; import java.awt.textfield;  public class firstapplet extends applet{      public void init(){         add(new label("nom:"));         add(new textfield(12));         add(new button("ok"));     } } 

please me solve problem


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -