| Author |
Applets in Forte
|
Mary Taylor
Ranch Hand
Joined: Sep 11, 2000
Posts: 319
|
|
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.
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14456
|
|
|
That's really more of a question for IDEs and Other Tools. I'll move it over there.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
 |
|
|
subject: Applets in Forte
|
|
|