Com from Java


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Com from Java

Hybrid View

  1. #1
    John Pendlebury Guest

    Com from Java


    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






  2. #2
    John Pendlebury john.pendlebury Guest

    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.

    John.
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center