Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet Newbee

Status
Not open for further replies.

jsulman

Programmer
Jun 14, 2001
85
US
I am currently trying to get an applet to load and am having some
difficulty. It appears the browser cannot find the applet.

The root for the Browser is c:\ and the applet is in package
swing.chapter5. The class file is stored in
c:\ The HTLM tag is:

<applet code= &quot;swing.chapter5.TabbedPaneDemo.class&quot; width=570
height = 400>
</applet>

The applet uses Swing Objects and the problem occurs on IE5 as well as NS4.7

Any ideas?
Thanks in advance

Jeff Sulman
 
Your not using the right browsers. IE never supported the JRE, forget about it. With Netscape you have to have 6.0 or higher to run a Java Applet using the JRE. I suggest you try Opera for Applets, because if you change IE or Netscape to use the JRE then there will be sites that you can't open. :-(

If you wish to know why the browsers you are trying to use don't support the JRE, then read the FAQs about it. Read the second FAQ first because the first makes comments on the second. :cool: &quot;and everything under the sun is in tune
but the sun is eclipsed by the moon.&quot; --Pink Floyd: Eclipse


&quot;I'm going to spend eternity
reinstalling Windows.&quot; --Reinstalling Windows: by some British guy
 
I got the applet runningin NS and IE by using the OBJECT and EMBED tags.
However, only works when the class file is in the HTML root directory. What I would like to do is have a classes subdirectory and keep my applet classes in there but I cannot get it to work. The directory would be c:\ In the Java file I have it defined the class as &quot;package classes;&quot;. Here is the HTML code I have:
<OBJECT
classid=&quot;clsid:8AD9C840-044E-11D1-B3E9-00805F499D93&quot;
width=&quot;100&quot; height=&quot;50&quot; align=&quot;baseline&quot; codebase=&quot; <PARAM NAME=&quot;code&quot; VALUE=&quot;Applet1.class&quot;>
<PARAM NAME=&quot;codebase&quot; VALUE=&quot;.&quot;>
<PARAM NAME=&quot;type&quot; VALUE=&quot;application/x-java-applet;version=1.2.2&quot;>
<COMMENT>
<EMBED type=
&quot;application/x-java-applet;version=1.2.2&quot;
width=&quot;200&quot; height=&quot;200&quot; align=&quot;baseline&quot;
code=&quot;Applet1.class&quot; codebase=&quot;.&quot;
pluginspage=&quot; <NOEMBED>
</COMMENT>
No Java 2 support for APPLET!!
</NOEMBED>
</EMBED>
</OBJECT>

I have tried setting the codebase = classes and a few other options but nothing
seems to work.

Any Ideas

Thanks in advance


Jeff Sulman
 
GT500FOMOCO

On my first applet, I could only get it to show under IE because Mozilla didn't have the JRE plug-in. Mike Wills
AS400 Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top