My applet runs fine with appletviewer but not in the browser, what can be the problem?
Location: http://www.jguru.com/faq/view.jsp?EID=507354 Created: Sep 30, 2001 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Jai Ganesh M (http://www.jguru.com/guru/viewbio.jsp?EID=490975 Applets loaded through appletviewer are more then likely loading their classes from the local CLASSPATH, not over the network. As such, they get different permissions and can do things that applets loaded over the network cannot. Try using Tomcat and serving the Applet through an HTTP connection, instead of loading the .HTML file from the file system. Also, Java runtimes in browsers are based on Java 1.1.x. If you need to use newer capabilities, you’ll need to use the Java Plug-in. Without it, you’re stuck with the older Java runtime capabilities.
Related Questions
- Why doesn an applet viewed through the browser respond to keyboard events, but the same works fine from within appletviewer?
- While downloading and executing an applet, there is no action but a gray rectangle box appears in the browser. Whats going on?
- My Electric Cart runs fine on level ground, but seems to lose power on inclines. What is the Problem?