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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet class not load/found on client browser only on the machine run.

Status
Not open for further replies.

tarriin

Programmer
Aug 6, 2004
4
DE
Hi guys please save my soul .advise .
Whenever i run my index.jsp located in my tomcat root on the machine running tomcat it can load applet class very well located on the /applets .But cannot load applet calss when accessed from another machine ."J console says class not found error"

My applet params are
codebase="/applets" code="vTS.class"

please advise
Best
T
 
This thread tells you how to fix your problem, and was only 10 posts below this one !!! Try using the search function, it can prove useful ...

thread877-888196

--------------------------------------------------
Free Database Connection Pooling Software
 
Many thanx for the reply S , but I have already gone through that thread but no sucess , then I posted my new one.

Please suggest
Thanx
 
Well as the other thread suggested, you need to use the applet tag parameter "archive".

In your described params above, you do not use this ...

--------------------------------------------------
Free Database Connection Pooling Software
 
I am doing this bro--->
<applet archive="tw.jar" code="VTS.class" width="180" height="250">

and getting this on Java Console

Error loading class: VertTextScroller1
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: VertTextScroller1
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
 
I even tried this but no sucess

<applet archive="tw.jar" codebase="/applets/" code="VTS.class" width="180" height="250">

getting this on Java Console

Error loading class: VertTextScroller1
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: VertTextScroller1
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
 
I don;t think you have got the archive tag's path correct. Its all relative to where the applet's code base is (ie where your html page is).

If you html page is in "/usr/local/tomcat/webapps/pages"

then saying arhive="myjar.jar" will mean the jar will attempted to be loaded from "/usr/local/tomcat/webapps/pages/myjar.jar" - so if it is not, then you must supply a relative path.


--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top