Exception in thread "main" java.util.MissingResourceException: Can't find r

hi

i got this type of error.

The folder contains jar/TreeMenu.jar ,TreeApplet.class and left.htm

this is left htm page

<html>

<head>

<title>Left</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" href="../css/symphonyCommon.css" type="text/css">

<script language="javascript" src="../js/library.js"></script>

<link rel="stylesheet" href="../css/symphonyTable.css" type="text/css">

</head>

<body class=uniformBackColor text="#000000" link="#000050" vlink="#000050" alink="#000050" topmargin="0" marginheight="0" leftmargin="0" marginwidth="0" onResize="window.location.href = window.location.href;">

<script>

var browser = new Browser();

var winWidth = (browser.isNs) ? window.innerWidth-16 : document.body.offsetWidth-20;

var winHeight = (browser.isNs) ? window.innerHeight : document.body.offsetHeight;

</script>

<table class=leftTable width="230" cellpadding="0" cellspacing="0">

<tr><td>

<script>

var appletStr = "";

appletStr+='<applet code="TreeApplet" width="'+(winWidth)+'" height="'+winHeight+'" archive="jar/TreeMenu.jar">';

appletStr+='<param name="nodeOffset" value="25">';

appletStr+='<param name="backgroundColor" value="255|255|204">';

appletStr+='<param name="borderWidth" value="0">';

appletStr+='<param name="borderColor" value="000|000|153">';

appletStr+='<param name="connectingLines" value="true">';

appletStr+='<param name="connectingLinesColor" value="000|000|000">';

appletStr+='<param name="connectingLinesStyle" value="1">';

appletStr+='<param name="highTextColor" value="255|255|204">';

appletStr+='<param name="highBgColor" value="0|0|153">';

appletStr+='<param name="nodegap" value="5">';

appletStr+='<param name="title" value="IN Prepaid Administration System">';

appletStr+='<param name="titleFont" value="Helvetica|BI|14">';

appletStr+='<param name="titleColor" value="255|175|0">';

appletStr+='<param name="underlineLinks" value="true">';

appletStr+='<param name="scrollBarBgColor" value="255|255|204">';

appletStr+='<param name="statusBar" value="true">';

appletStr+='<param name="statusBarFont" value="Helvetica|N|12">';

appletStr+='<param name="statusBarBgColor" value="255|175|0">';

appletStr+='<param name="statusBarTextColor" value="0|0|0">';

appletStr+='<param name="statusBarHeight" value="18">';

appletStr+='<param name="image1" value="closed|../image/closedfolder.gif">';

appletStr+='<param name="image2" value="open|../image/openfolder.gif">';

appletStr+='<param name="image3" value="document|../image/document.gif">';

appletStr+='<param name="image4" value="point|../image/point.gif">';

appletStr+='<param name="Nodedata" value="config/nodes.txt">';

appletStr+='</applet>';

document.write(appletStr);

</script>

</td></tr>

</table>

</body>

</html>

and i run this htm like

C:\Documents and Settings\kurupavi\Desktop\Presentation\ams>appletviewer left.ht

m

Exception in thread "main" java.util.MissingResourceException: Can't find resour

ce for bundle sun.applet.resources.MsgAppletViewer, key appletpanel.badattribute

.exception

at java.util.ResourceBundle.getObject(ResourceBundle.java:325)

at java.util.ResourceBundle.getString(ResourceBundle.java:285)

at sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:

39)

at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:866)

at sun.applet.AppletPanel.init(AppletPanel.java:197)

at sun.applet.AppletViewer.<init>(AppletViewer.java:177)

at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.jav

a:82)

at sun.applet.AppletViewer.parse(AppletViewer.java:1122)

at sun.applet.AppletViewer.parse(AppletViewer.java:1056)

Please help.Urgent

Thanks

Chowdary

[4452 byte] By [Appletsa] at [2007-11-27 4:41:56]
# 1
The appletviewer may not be able to handle javascript.Try it with the <applet> tag in plain HTML.
paulcwa at 2007-7-12 9:53:25 > top of Java-index,Desktop,Core GUI APIs...
# 2
HiThanks for replying,but my code should contain javascript.is there any way to run this without errors?
Appletsa at 2007-7-12 9:53:25 > top of Java-index,Desktop,Core GUI APIs...
# 3

I'd suggest:

Test the applet and the javascript separately.

First test just the applet in the appletviewer, using plain HTML.

Then use a browser to test the applet using plain HTML.

Then use a browser (or better yet, several, since javascript is different across browsers) to test the Javascript alone, with a dummy applet or an image or something. (This will get tricky; you might want to skip this step.)

Then use a browser (or several) to test the Javascript and the HTML together.

Alternatively, maybe you can find an appletviewer replacement that understands javascript, though honestly I doubt such a thing exists. Most people would probably just use a browser.

paulcwa at 2007-7-12 9:53:25 > top of Java-index,Desktop,Core GUI APIs...