Hi,
I went through the discussion between Chris Allen and Same Cai,
regarding the deployment problem.
I have the same problem but I could not make it to work properly.
I am using Visual Cafe 30C and I developed a JFC applet.
I unchecked the Use JFC 1.0.3 check box.
Because I am using some third party code in my project so
the deployment feature did not work for me, so I used third party
deployment utility called JarMaster From KLGroup.
I prepared the jar file and I converted the HTML using
HtmlConverter Version 1.1.2 and I Put them on Server along with
swingall.jar but the problem still persist and IE5 start loading
the applet and Hang. I looked at the Java console I found this error
Message "com.ms.security.SecurityExceptionEx[JStarWare.<init>]:
cannot access file C:\WINNT\Java\lib\swing.properties"
I am suspecting that swingall.jar is not getting loaded.
My HTML look like this
<TITLE>Welcome</TITLE>
<BODY BACKGROUND="" BGPROPERTIES="FIXED">
<CENTER>
</APPLET>
<APPLET archive="jstarware.jar,swingall.jar"
CODE=JStarWare.class WIDTH=900 HEIGHT=553>
<PARAM NAME=UserID VALUE="demo">
</APPLET>
</CENTER>
<BR>
<BR>
<BR>
Last thing I should mention is that if I make the archive like this:
archive ="jstarware.jar","swingall.jar"
the HtmlConverter did not include swingall.jar in the final converted
HTML.
Could you help me and what I am doing wrong..
Mustapha
This article will explain the situation:
http://web2.javasoft.com/products/jdk/1.2/previous-changes.html
"com.ms.security.SecurityExceptionEx
You may see this exception in conjunction with the message "Swing: checked
access to system event queue." Newer versions of IE4/JView do not print this
exception unconditionally. You may also see this exception in conjunction
with a message like "cannot access file
C:\WINNT40\Java\lib\swing.properties" as Swing attemps to load its
properties file. This file may not exist, or be accessible, but the
exceptions are properly caught and handled. However, newer versions of the
IE4/JView may print out the message unconditionally. This should not affect
the functionality of your applet, and we're looking into ways to avoid this
message for future versions of Swing.
Lastly, you may see this exception in conjuction with a message like "Unable
to access system property: swing.plaf.metal.controlFont." If this exception
occurs it is caught and handled, but may still be printed to the console. It
should not affect the functionality of your applet. Newer versions of the
IE4/JView do not generate this exception. "
To see if your Java Plug-in is correctly installed, go to the Start
menu>Programs>Java Plug-in Control Panel. If you do not have this option,
then the Plug-in is not correctly installed. Java Plug-in installation
issues should be addressed to Javasoft(http://www.javasoft.com).
Kevin Quah
Symantec Corp.
Internet Tools Technical Support
Note: Please send replies to this newsgroup.
Mustapha <mre...@stardata.ca> wrote in message
news:100021016210...@servicenews.symantec.com...
Second I need your response about the second part of the question
regarding my HTML.
Thank you very much.
Mustapha
Hi Kevin.
I was abble to run the applet on my machine on both browser
Netscape and IE5. However, when I try to run it from different
machine I am getting this error:
"java.lang.ClassNotFoundException:
com.sun.java.util.collections.collection
at sun.applet.AppletClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at jstarware.init(jstarware.java)
...
...
"
What it may be the problem?
Do I need to include Java class to my Jar File?
Your help is appreciated in this matter.
Thank you
Mustapha
This is browser related issue. It appears that the browser you are using
does not support the core sun.java classes. We recommend that you install
the Java Plug-in from Sun. For more information please visit:
http://www.javasoft.com/products/plugin
On closer examination, I found that your html file does not seem to have
been modified by the html converter. I believe there should be some embed
tags in there. Please consult the documentation that came with html
converter from Javasoft.