🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8610

Re: Running an Applet

#8610
From: Harry Whitehouse
Date: Sun, 11 Mar 2001 21:53
102 lines
4144 bytes
Bob -- I posted this overly-long description (below) on the list a few weeks
ago after having the same problem and talking with lots of folks.  You
should immediately focus on the last item #7 -- the conversion of the HTML
calling protocol.  In fact, the very first thing I would try is to change
APPLET to OBJECT in your existing HTML code.   That may be the only problem
you are having.
OTOH, if you included any Java 1.2 or 1.3 controls (like Swing) in your test
applet, you may need to deal with the Java SDK and run time plugin which are
outlined in my other steps.

****************************************************************************
*********

This is what I ended up doing.  Some of these steps may be unnecessary, but
I'm going to recount everything I did.

1.  Download and install the J2 Runtime Enviroment (including Java Plugin)

          http://java.sun.com/j2se/1.3/jre/

2.    After you install the Runtime/Plugin, you can access the J2 Runtime
console by going to control panel.  Go there and select the advanced tab.
Use the drop down box to select JRE 1.3.

3.  Download and install the J2 SDK

           http://java.sun.com/j2se/1.3/

4.  Copy swingset2.jar from any one of the JBuilder directories to
c:\winnt\java\classes.  This is a 1.35 MB file.

5.  Edit the registry to include this new JAR file in the CLASSLIB
statement.  The simple instructions for this are at:


http://support.microsoft.com/support/kb/articles/Q243/0/22.ASP?LNG=ENG

6.  You must convert any HTML page which is going to launch your swing
applet.  To do this, download the Sun HTML converter kit at:

        http://java.sun.com/products/plugin/1.3/converter.html

Unzip this file.

7.  Now run the converter application (somewhat flakey BTW) using the
instructions found here:

        http://java.sun.com/products/plugin/1.3/docs/htmlconv.html

The converter will change the HTML file to look like this (the example I'm
using is the JBuilder2 1.3 example called swingapplet):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!-- @(#)SwingApplet.html 1.1 97/07/02 -->
<html>
<head><title>Swing Applet</title></head>
<body>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 500 HEIGHT = 300 NAME = "SwingApplet" VSPACE = 0 HSPACE = 0
codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Vers
ion=1,3,0,0">
<PARAM NAME = CODE VALUE = "SwingApplet.class" >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = ARCHIVE VALUE = "SwingApplet.jar" >
<PARAM NAME = NAME VALUE = "SwingApplet" >

<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">


</OBJECT>

<!--
<APPLET CODE = "SwingApplet.class" CODEBASE = "." ARCHIVE =
"SwingApplet.jar" WIDTH = 500 HEIGHT = 300 NAME = "SwingApplet" VSPACE = 0
HSPACE = 0>


</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->

</body>
</html>


Now your applet should work fine in IE5.






"Bob Palank" <srfpala@inlink.com> wrote in message
news:3aabb74e$1_2@dnews...
>
> Using JB40, I create and run a simple applet. However when I attempt to
launch the same .htm page from within Internet Explorer 50 it can't find the
.class file which is in the same folder!
> TIA
Technical Details
Message-ID: <3aabf3d8$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!38.168.115.135
References: <3aabb74e$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3a1eeeef4275655e
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-11 13:58:11 PST
From: "Harry Whitehouse" <harry@envmgr.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3aabb74e$1_2@dnews>
Subject: Re: Running an Applet
Date: Sun, 11 Mar 2001 13:53:54 -0800
Lines: 105
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 38.168.115.135
Message-ID: <3aabf3d8$1_2@dnews>
X-Trace: 11 Mar 2001 13:53:28 -0800, 38.168.115.135
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!38.168.115.135