• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applets in Forte

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
ent-types.properties
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:
<html>
<applet code = "SApplet.html" width = "300" height = "45">
</applet>
</html>
Any ideas will be most appreciated.
Thanks.
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's really more of a question for IDEs and Other Tools. I'll move it over there.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic