[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [www-vrml] Java jsai help



Obviously the Sun Java VM grabs the applet or class you use and not the MS
JVM so those classes aren't available. Anyway, since those classes use
MSJVM's JavaCOM features, they won't work in Sun JVM by just putting them on
the classpath (in fact they'll appear to the Sun JVM as classes with
abstract methods if I remember well [MSJVM used Java class attributes to add
metainfo to classes, instead of using their own class proprietary format])

IUnknown is an interface so the Sun JVM will see that class OK, but other
classes in those same packages that also contain implementation will be seen
as abstract classes and won't do the job you want

the trick is to switch to MSJavaVM (after most recent Sun-MS agreement
update MSJava will be supported by MS till 2007 only for security updates
and MS suggest to users to install Sun's Java Plugin / Java Runtime
Environment [JRE])

to switch between the two JVMs in IE or Netscape and Mozilla, go to Windows
Control Panel (Start/Settings/Control Panel) and run the "Java Plug-in
Control Panel" applet. It has a page where you select in which browser(s) it
gets integrated

if the problem you were having wasn't related to Java applets talking to
VRML browsers in a webpage, but to Java-based scripting embedded in VRML not
working, then the problem may be that MSJVM is not installed at all at your
machine (which may be the case if you had installed WinXP SP1 [at that time
Sun-MS agreement was to stop supporting MSJava at 2003 or something and MS
was removing/disabling it at users' systems]). If that's the case, try
downloading MSJava VM and installing (hope its now available somewhere on
MSDN, else locate its installer in your Windows CD). There's also a useful
option at WinXP called "Set Program Access and Defaults", available at the
Start menu. That option lets you select default
browser/mailer/mediaplayer/javavm at your system, providing options like
Microsoft/Non-Microsoft/Custom. I think the "Microsoft" option sets MS
JavaVM as default JVM in the system else try playing with the "Custom"
option there

btw, Sun's insisting on removal of MSJVM backfired on them, since it broke
too many third-party systems relying on JavaCOM integration offered by
MSJava VM. Obviously too few companies that had followed that path would get
into the trouble of messing with JNI to rewrite their applications to play
better with Sun Java (cause JNI is an old-style ugly C API that requires you
to write lots of ugly glue code - that's btw one of the initial reasons of
debate between MS and Sun [and at sometime between Sun and Apple too I
think], with MS insisting to not implement JNI in MSJava but promoting RNI
and J/Direct instead, and finally implementing it as optional package much
later on)

George

> And that , after the msjvm was installed, you could switch between and use
> either the sun or the M$ jvm
>
>
> I think this has to do with some zip files in c:\windows\java\Packages but
I
> can confirm or deny nothing
>
> I was gettign this error
> java.lang.NoClassDefFoundError: com/ms/com/Iunknown
>
> And upon googling it I found this snippet of information:
>
> ....add the MSMQ classes in the classpath. These classes can be found in
the
> C:\WINNT\java\Packages directory.
>
>
> I didnt add them to the classpath but as soon as I installed the msjvm,
> again ,  everything started workin again
>
>
>
> <light rant>
> What can we as a community do to solve this deployment problems??
>
> Oh right lets all move to .net?? LMAO
>
> IMH^HO This is what is killing the end users perception of vrml being
> anything but untested beta code
>
> You cant expect end users to go through these sort of deployment issues
>
> </light rant?>
>
>
> Im ready to help everyone work this one out, as usual
>
>
>
> Clay
>
>
>
>
>
> > -----Original Message-----
> > From: Pyth7 [mailto:Pyth7@comcast.net]
> > Sent: October 4, 2004 12:51 AM
> > To: Clayton Cottingham; www-vrml@web3d.org
> > Subject: Re: [www-vrml] Java jsai help
> >
> > However, we also seemed to find -but not conclusively- that
> > sp2 put the final nails into Java EAI coffin.
> > Anyone with sp2 installed care to confirm this at any of
> > these fine examples:
> > http://empyrean.cofa.unsw.edu.au/Beta.html
> >
> > http://www.vrspace.org
> >
> > http://www.sevenemeraldtablets.net/Seven_Emerald_Tablets/Beta.html
> >
> > http://www.lucidspace.com/
> >
> > http://yamanakanash.net/vnet-client/stresstest_no2b.html
> >
> > thanx
> > Russ Kinter
> >
> >
> > ----- Original Message -----
> > From: "Clayton Cottingham" <drfrog@telus.net>
> > To: "'Clayton Cottingham'" <drfrog@telus.net>; "'VRML list'"
> > <www-vrml@web3d.org>
> > Sent: Monday, October 04, 2004 2:58 AM
> > Subject: RE: [www-vrml] Java jsai help
> >
> >
> > > Pyth helped me out on this.. Seems like I had to install
> > the ms jvm to
> > > get anyting to run in cortonoa sai with a javaclass
> > >
> > > But this seems contrary to the other times ive tried
> > >
> > > Anyways
> > >
> > > It still seems like a pretty oblique deployment path for an end user
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: owner-www-vrml@web3d.org
> > > > [mailto:owner-www-vrml@web3d.org] On Behalf Of Clayton Cottingham
> > > > Sent: October 3, 2004 10:08 PM
> > > > To: 'VRML list'
> > > > Subject: [www-vrml] Java jsai help
> > > >
> > > > Every since I installed sp2 I cant seem to get jsai java
> > examples to
> > > > work, my own or online examples
> > > >
> > > >
> > > > I assume this is because sp2 wont allow for arbitrary bytecode to
> > > > execute in a plugin/active x control
> > > >
> > > >
> > > > Anyone know any more info on this?
> > > >
> > > >
> > > >
> > > > --------------------------------------------------------------
> > > > -----------
> > > > for list subscription/unsubscription, go to
> > > >
> > http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.ht
> > > > ml
> > > >
> > > >
> > >
> > >
> > >
> > ----------------------------------------------------------------------
> > > ---
> > > for list subscription/unsubscription,
> > > go to
> > http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html
> > >
> > >
> >
> >
>
>
> -------------------------------------------------------------------------
> for list subscription/unsubscription,
> go to
http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html
>
>

-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html