Hi,
I'm using Microsoft Netmeeting com objects from a java applet. My development
environment is MS Visual J++ 6.0.
When I run the solution from within the deveolpment environment it works.
However, when I open the solution from outside the the development environment
the applet will not run and Internet explorer displays the following message
in the status bar
"java.lang.ClassFormatError"
I thought initially that some of the classes were not being seen by the JVM
so I placed all the classes in the same directory on my harddrive as the
html file that hosts the applet. This had no affect.
I have also tried deploying the solution onto my personal web server area
on my PC. This also has no affect
Does anyone have any idea why it would run from within the development environment
but not from outside?
John
04-07-2000, 06:02 AM
John Pendlebury john.pendlebury
Re: Com from Java
"John Pendlebury" <john.pendlebury@mentec.ie> wrote:
>
>Hi,
>I'm using Microsoft Netmeeting com objects from a java applet. My development
>environment is MS Visual J++ 6.0.
>
>When I run the solution from within the deveolpment environment it works.
>
>However, when I open the solution from outside the the development environment
>the applet will not run and Internet explorer displays the following message
>in the status bar
>
>"java.lang.ClassFormatError"
>
>
>I thought initially that some of the classes were not being seen by the
JVM
>so I placed all the classes in the same directory on my harddrive as the
>html file that hosts the applet. This had no affect.
>
>I have also tried deploying the solution onto my personal web server area
>on my PC. This also has no affect
>
>Does anyone have any idea why it would run from within the development environment
>but not from outside?
>
>John
>
>
>
>I know that it seems a bit stupid to be responding to your own message.
But I readabout the solution to my problm last night and I thought that there
might be some other novices to Java and Com out there that might find it
useful.
Apparently my problem was caused by a security issue within Internet explorer.
Applets operate from within a 'sand box'. These are untrusted applets whose
classes are not allowed to access system resources. However, to allow applets
to access com objects (and other system resources)you must package its' classes
in cab files as opposed to simple class files.
If anyone has any feed back on this issue I'd be delighed to hear it.