🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #265

JApplet ExceptionInInitializerError with Netscape/Activator

#265
From: Quentin Mair
Date: Sun, 16 Aug 1998 00:00
50 lines
2396 bytes
I do not why I get this exception at all... Any help appreciated.

I have an application which uses JDK1.2 beta 3 and Swing + JBuilder's
jbcl2.0.jar. I have Netscape 4.05 (no 1.1 patch) and Activator 1.1.1.
Activator is set to the correct JRE with no JIT.  Apart from that one
jar I'm just using the application classes but that isn't where the
problem lies. The program works fine with appletviewer and (very oddly)
when I directly load the applet html into Netscape with Ctrl+o, the
applet works fine.

When I try to load an indirect html file first and then use its link to
the applet's html I get the error below. I also get this when I try to
load the applet's html file directly with a http server (which I need
for this applet's intended use):

java.lang.ExceptionInInitializerError

 at java.awt.swing.JApplet.setLayout(JApplet.java:247)

 at java.awt.swing.JApplet.<init>(JApplet.java:97)

 at prtest2.PrTest.<init>(PrTest.java:64)

 at java.lang.Class.newInstance(Native Method)

 at sun.applet.AppletPanel.createApplet(AppletPanel.java:459)

 at sun.applet.AppletPanel.runLoader(AppletPanel.java:395)

 at sun.applet.AppletPanel.run(AppletPanel.java:234)

 at java.lang.Thread.run(Thread.java:490)

I don't understand this at all. Thanks in advance,

Q


--
Quentin Mair
Senior Research Fellow
Department of Computer Studies
City Campus
Glasgow Caledonian University
Glasgow
G4 0BA
Scotland

Tel: +44 141 331 3283
Fax: +44 141 331 3277
Technical Details
Message-ID: <35D748F1.386720D2@gcal.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10fd6d,93dc546a062f18d6,start
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 10a146,93dc546a062f18d6,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: ff01d,93dc546a062f18d6,start
X-Google-Attributes: gidff01d,public
From: Quentin Mair <qma@gcal.ac.uk>
Subject: JApplet ExceptionInInitializerError with Netscape/Activator
Date: 1998/08/16
Message-ID: <35D748F1.386720D2@gcal.ac.uk>
X-Deja-AN: 381754008
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@u-net.net
X-Trace: newsr2.u-net.net 903301678 195.102.195.52 (Sun, 16 Aug 1998 22:07:58 BST)
Organization: (Posted via) U-NET Internet Ltd.
MIME-Version: 1.0
NNTP-Posting-Date: Sun, 16 Aug 1998 22:07:58 BST
Newsgroups: comp.lang.java.programmer,comp.lang.java.gui,borland.public.jbuilder.applet-issues