• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applets in Forte  RSS feed

Mary Taylor
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying to help a student taking a class tonight and realized how much I've forgotten about applets. He managed to get the applet to execute in his IDE, but I could not get it to execute on my PC any of the 3 ways I tried. Now I'm determined to figure it out!
I know Forte has been replaced, but I'm still running it and wondering what else I must do besides set the execution type and debug type to Applet Debugging and Applet Execution to execute an applet from within the IDE.
I also thought I'd just call the applet from a browser with the URL of the html file, but I can't seem to find an example of the syntax of the file command in the URL. Don't do this often so it's always an issue just finding the information.
Using the appletviewer command gives me the following output:
G:\javaFiles\JackieSmalley>appletviewer SApplet.html
[no appletviewer.properties file found!]
security properties not found. using defaults.
MimeTable.load: file = g:\j2sdk1.4.0\lib\content-types.properties, java.io.FileNotFoundException: g:\j2sdk1.4.0\lib\cont
java.io.FileNotFoundException: g:\j2sdk1.4.0\lib\content-types.properties
at java.io.FileInputStream.<init>(FileInputStream.java:56)
at java.io.FileInputStream.<init>(FileInputStream.java:75)
at sun.net.www.MimeTable.load(MimeTable.java:212)
at sun.net.www.MimeTable.<init>(MimeTable.java:43)
at sun.net.www.MimeTable.getDefaultTable(MimeTable.java:52)
at sun.net.www.protocol.file.FileURLConnection.connect(Compiled Code)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:162)
at sun.applet.AppletViewer.parse(Compiled Code)
at sun.applet.AppletViewer.parse(AppletViewer.java:911)
at sun.applet.AppletViewer.main(Compiled Code)
Warning: No Applets were started. Make sure the input contains an <applet> tag.
usage: appletviewer [-debug] [-J<javaflag>] [-encoding <character encoding type> ] url|file ...
Here is the html file I created:
<applet code = "SApplet.html" width = "300" height = "45">
Any ideas will be most appreciated.
Tim Holloway
Posts: 18531
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's really more of a question for IDEs and Other Tools. I'll move it over there.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!