另外不知你用的是visibroker什么版本?你那有 visibroker for cpp 4.5 的patch 吗?
http://community.csdn.net/Expert/TopicView.asp?id=4376777
title:
Error at starting idl2java "Unable to initialize threads: cannot find class java/lang/Thread could not create JVM"
1. Your PATH variable should reflect the path where jre\bin and jer\lib dirs can
be located.
2. In your registry, HKEY_LOCAL_MACHINE\Software\Javasoft\Java Runtime
Environment\<version#>\JavaHome should reflect the location of jre dir.
3. In your registry, HKEY_LOCAL_MACHINE\Software\Javasoft\Java Runtime
Environment\<version#>\JavaRuntimeLib should reflect the location of jvm.dll
Goodluck.
-emmeye
Maqsood wrote:
> I am actually having the same exact problem. I was originally running JDK
> 1.2.2 (I replaced it with JDK 1.3)and visibroker. I uninstalled and
> reinstalled the two in different order but to no avail. Funny thing is I
> have the same packages running on my laptop and working fine.
>
> Before anyone asks, yes I did configure my path in windows.
>
> any help would be greatly appreciated.
>
> Thank you
>
> "Este Brits" <esteb@limon.co.za> wrote in message news:3a39ba5c_1@dnews...
> > Hi
> >
> > I reinstalled my java and visibroker, and set my environment variables
> > again, and it works.
> > {Now I know why they say 'if you fiddle with something long enough, it
> will
> > eventually break'}
> >
> > Thanks.
> > Esté
> >
> > Olivier ECHARD <oechard@inprise.com> wrote in message
> > news:3A34A332.6A2F5DA7@inprise.com...
> > > you can try to use something like that
> > > or reinstall your jdk and then the orb
> > >
> > > C:\appserver>idl2java -VBJjavavm c:\jdk1.3\bin\java -VBJversion
> > > VisiBroker Developer for Java [04.01.01.C1.04] (AUG 24 2000 19:43:40)
> > > Java: Version 1.3.0 from Sun Microsystems Inc.
> > > OS: Windows NT version 4.0; CPU: x86
> > >
> > > bye
> > >
> > > Este Brits wrote:
> > >
> > > > Hi
> > > >
> > > > I have the same problem, and by now my ClassPath and Path variable has
> > my
> > > > JDK path in, and it does precede the others. I still have the same
> > problem,
> > > > so I will appreciate it if someone can give me more information on
> this.
> > > > What file is supposed to contain this class. My platform is the same
> as
> > > > Iouri's. I would also like to know whether it solved Iouri's problem
> > > >
> > > > Regards
> > > > Esté
> > > >
> > > > James Zhang <ZhangMing@pasc.com.cn> wrote in message
> > > > news:3a05fe15_1@dnews...
> > > > > Check your path enviroment variable!
> > > > > Be sure of the JDK's path precede the others
> > > > > Good Luck!
> > > > > James Zhang
> > > > > "Iouri" <uvk@trustworks.com> wrote in message
> > news:3a02da06$1_2@dnews...
> > > > > > Greetings!
> > > > > >
> > > > > > Does anyone have information about such problem?:
> > > > > > At starting idl2java the message appears:
> > > > > > "Unable to initialize threads: cannot find class java/lang/Thread
> > could
> > > > > not
> > > > > > create JVM".
> > > > > > Visibroker for Java 4.1, Windows NT 4.0, SP6
> > > > > >
> > > > > > Thank you in advance,
> > > > > > Iouri.
> > > > > >
> > > > > >
> > > > >
> > > > >