impossible typos

Hello

I have a simple jsp in NB5RC2 and it appears to put a

space in the generated code. Same code, same app

server(TC5.5.12) no space.

testThis.jsp

codebase="."

archive = "applets.jar"

code= "applets.client.myApplet.class"

testThis.html

codebase="."

archive =" applets.jar"

code=" applets.client.myApplet.class"

Upon close scrutiny there is a space in the

ClassNotFoundException reporting in the Java Console.

load: class applets.client.myApplet.class not found.

java.lang.ClassNotFoundException:

applets.client.myApplet.class

at sun.applet.AppletClassLoader.findClass(Unknown

Source)

I cant believe it. I am sure no else is reporting the

same, but it is there in two places, the generated

source and the Console reporting. How do I close up

that space? I am using NetBeans 5RC2 & Tomcat 5.5.12.

In this case, I hate being unique, grin. All

comments greatly appreciated.

[1034 byte] By [codemonk99a] at [2007-10-2 11:03:40]
# 1

Hello

I am using a signed applet and am getting a class not found exception

this works fine when i run it in the IDE but get the exception when i try to load the applet from the web browser in the application.

java.lang.ClassNotFoundException: MyApplet

at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:162)

at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:566)

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

at sun.plugin.AppletViewer.createApplet(Unknown Source)

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

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

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

Caused by: java.io.IOException: open HTTP connection failed.

at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:265)

at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43)

at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152)

at java.security.AccessController.doPrivileged(Native Method)

at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149)

... 9 more

I have my applet code in the applet folder

here is my jsp call

<applet code="MyApplet"codebase="../applet" archive="SMyApplet.jar"width=400 height=400>

</applet>

here is my applet code

package applet;

import java.applet.*;

import java.awt.*;

public class MyApplet extends Applet

{

public void paint(Graphics g)

{

g.drawString("Generate Me",50, 50);

}

}

Surendra_Varmaa at 2007-7-13 3:36:30 > top of Java-index,Developer Tools,Java Compiler...