I used the Symantec Timer in an applet. It works fine using
the Applet Viewer, but parts of it do not deploy. I get the
following message:
java.lang.ClassNotFoundException:
symantec.itools.beans.VetoableChangeSupport
The "Create standlaone archive" box is checked. The
VetoableChangeSupport class is used by the the Timer. Shouldn't it
be archived with the rest of the code?
Not sure what I can do.
ANSWER == TRUE
To make sure that jar file contains all necessary class files:
1. Be sure to use the Deploy utility instead of the Autojar
utility(obsolete).
ANSWER YES, I DID THAT
2. Reference the file jar file using the ARCHIVE tag in the html
file(the
autogenerated html file is not suitable for deployment purposes).
ANSWER YES THE LINE IS:<APPLET ARCHIVE="../GameJars/SerialTestB.jar"
CODE="StartJustOneGame.class"
3. Use IE 4.01 or Netscape 4.5 and above.
ANSWER : YES
Use the Jar Viewer to examine the Jar file that you created. Does it
contain the symantec.itools.beans.VetoableChangeSupport?
ANSWER : NO: Same for Timer, see below
The programs has no difficulty loading the jar file and starting the
program.
The error code I sent above was when I had tried to get around the
error by dong my own version of the TIMER.
I redid the code to use the Syamtic Timer and got the below error:
The part that may give us a hint is:
java.io.IOException: bad path:
C:\WINDOWS\Desktop\htdocs\edugames\NewOneGameCode\symantec\itools\uti
l\Timer.class
The error I now get is:
**********************
Microsoft (R) VM for Java, 5.0 Release 5.0.0.3188
==============================================
? help
c clear
f run finalizers
g garbage collect
m memory usage
q quit
t thread list
==============================================
sa . StartingApplet Top
sjog . init Game Top
sjog . ac=
com.ms.applet.BrowserAppletFrame[frame0,0,0,640x480,invalid,layout=ja
va.awt.BorderLayout,resizable,title=]
pp . PlayerParameterS()
sjog . aCount= 1
com.ms.security.SecurityExceptionEx[HeaderPanel.<init>]:
java.io.IOException: bad path:
C:\WINDOWS\Desktop\htdocs\edugames\NewOneGameCode\symantec\itools\uti
l\Timer.class
at com/ms/security/permissions/FileIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkRead
at java/io/File.isDirectory
at sun/net/www/protocol/file/FileURLConnection.connect
at sun/net/www/protocol/file/FileURLConnection.getInputStream
at com/ms/vm/loader/ResourceLoader.getURLData
at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData
at com/ms/vm/loader/ResourceLoader.getClassData
at com/ms/vm/loader/URLClassLoader.findClass
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at HeaderPanel.<init>
at StartJustOneGame.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
**********
The first 4 lines are my own debug code.
I have looked at the jar file with the jar viewer and the
Timer class is NOT there.
Thanks
Pete
> I used the Symantec Timer in an applet. It works fine using
> the Applet Viewer, but parts of it do not deploy. I get the
> following message:
>
> java.lang.ClassNotFoundException:
> symantec.itools.beans.VetoableChangeSupport
I understand that the applet works within Visual Cafe's Applet Viewer.
So I will assume you are probably getting this error when you run the applet
within a browser.
To make sure that jar file contains all necessary class files:
1. Be sure to use the Deploy utility instead of the Autojar
utility(obsolete).
2. Reference the file jar file using the ARCHIVE tag in the html file(the
autogenerated html file is not suitable for deployment purposes).
3. Use IE 4.01 or Netscape 4.5 and above.
Use the Jar Viewer to examine the Jar file that you created. Does it
contain the symantec.itools.beans.VetoableChangeSupport?
Kevin Quah
Symantec Corp.
Internet Tools Technical Support
Note: Please send replies to this newsgroup.
We need to check if the installation is intact or if it is a project
related issue:
1. Update to VC 3.0c if you have not already done so.
2. Try creating a brand new AWT Applet with just the Timer component added
to it, set it to standalone archive and deploy. I just did it and I found
that the jar does indeed contain the vetoablechangesupport class.
Let us know if this works.
I can still execute the code using the Applet Viewer, but when I
check the "run in default browser" it can't even find the starting
class file.
I also can't seem to get the message window to print the systems
print line commands. They now all end up in a new DOS window, which
I find undersirable because I can't scroll backwords through it.
I can't believe how much time I have wasted on this simple thing?
Pete
However, I have a new problem.
All kinds of other classes that happen to be in the same folder as my
project files are now included in the archive. I have searched all
my project classes to see if there is a link to any of the other
classes and there arn't any. I checked the Hierarchey Editor and
can't find any connections. Any suggestions?
Pete
Do you see all of your classes listed under the Manage Archive Entries
tab?
Regards,
Tim Dutton
Internet Tools Technical Support
Symantec Corporation