Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

CreateJavaVM error and jvm.dll

4 posts in EJB Client Last posting was on 2004-06-22 02:16:43.0Z
Vlad Zlotskiy Posted on 2004-06-18 16:18:21.0Z
From: "Vlad Zlotskiy" <vladz@imsi.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: CreateJavaVM error and jvm.dll
Lines: 17
Organization: IMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Original-NNTP-Posting-Host: exit.imsi.com
Message-ID: <40d312cc$3@forums-2-dub>
X-Original-Trace: 18 Jun 2004 09:05:32 -0700, exit.imsi.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Jun 2004 09:00:04 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Jun 2004 09:18:21 -0700
X-Trace: forums-1-dub 1087575501 10.22.108.75 (18 Jun 2004 09:18:21 -0700)
X-Original-Trace: 18 Jun 2004 09:18:21 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:310
Article PK: 424490

It looks like pbjvm90.dll is hardcoded to look for jvm.dll under jdk14
subdirectory that must be located directly under PB9 dll directory
We tried to call CreateJavaVM on the machine where JavaRuntime was properly
installed and path specified to point to the JavaRuntime\bin and PB Shared
dll directory, JRE variable was pointed to JavaRuntime location (we tried
also various variation of CLASSPATH).
CreateJavaVM kept returning error: -1 Failure. The Java VM was not loaded,
possibly because jvm.dll was not found in the classpath.
As soon as we copied jdk14 directoty structure under PB Shared dll
directory, it began working. My question is : Does it mean that during
deployment we can not rely on our own java runtime installation and have to
drag the jdk14 subdirectory together with PB Shared dll ?

Thanks
Vlad


Jim O'Neil [Sybase] Posted on 2004-06-19 02:27:29.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: CreateJavaVM error and jvm.dll
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <40d3a259.36000806@forums.sybase.com>
References: <40d312cc$3@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: vpn-concord-042.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-042.sybase.com
Date: 18 Jun 2004 19:27:29 -0700
X-Trace: forums-1-dub 1087612049 158.159.8.42 (18 Jun 2004 19:27:29 -0700)
X-Original-Trace: 18 Jun 2004 19:27:29 -0700, vpn-concord-042.sybase.com
Lines: 39
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:311
Article PK: 424491

You can use your own JVM... The search order is as follows:

1. A 1.4 JRE directory based in the same directory as PBJVM90.DLL.

2. A 1.4 JDK directory based in the same directory as PBJVM90.DLL

3. A 1.2/1.3 JRE directory based in the same directory as PBJVM90.DLL

4. A JavaVM on the system path.

So your option should have been #4 and that should work fine.

If you download FileMonitor for www.sysinternals.com, you can see
where the search for jvm.dll takes you.

On 18 Jun 2004 09:18:21 -0700, "Vlad Zlotskiy" <vladz@imsi.com> wrote:

>It looks like pbjvm90.dll is hardcoded to look for jvm.dll under jdk14
>subdirectory that must be located directly under PB9 dll directory
>We tried to call CreateJavaVM on the machine where JavaRuntime was properly
>installed and path specified to point to the JavaRuntime\bin and PB Shared
>dll directory, JRE variable was pointed to JavaRuntime location (we tried
>also various variation of CLASSPATH).
>CreateJavaVM kept returning error: -1 Failure. The Java VM was not loaded,
>possibly because jvm.dll was not found in the classpath.
>As soon as we copied jdk14 directoty structure under PB Shared dll
>directory, it began working. My question is : Does it mean that during
>deployment we can not rely on our own java runtime installation and have to
>drag the jdk14 subdirectory together with PB Shared dll ?
>
>Thanks
>Vlad
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


Vlad Zlotskiy Posted on 2004-06-21 22:51:48.0Z
From: "Vlad Zlotskiy" <vladz@imsi.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <40d312cc$3@forums-2-dub> <40d3a259.36000806@forums.sybase.com>
Subject: Re: CreateJavaVM error and jvm.dll
Lines: 59
Organization: IMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: exit.imsi.com
X-Original-NNTP-Posting-Host: exit.imsi.com
Message-ID: <40d76684@forums-1-dub>
Date: 21 Jun 2004 15:51:48 -0700
X-Trace: forums-1-dub 1087858308 199.253.174.9 (21 Jun 2004 15:51:48 -0700)
X-Original-Trace: 21 Jun 2004 15:51:48 -0700, exit.imsi.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:314
Article PK: 424494

Jim,
Does the jvm.dll directory (%JRE%\bin\client) has to be part of the system
PATH or %JRE%\bin is enough ?
We had %JRE%\bin in the PATH as part of a regular JavaRuntime setup: it did
not work. Also the error description for the CreateJavaVM call is
missleading since it refers to not being able to find jvm.dll in the
CLASSPATH.

Regards
Vlad

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:40d3a259.36000806@forums.sybase.com...
> You can use your own JVM... The search order is as follows:
>
> 1. A 1.4 JRE directory based in the same directory as PBJVM90.DLL.
>
> 2. A 1.4 JDK directory based in the same directory as PBJVM90.DLL
>
> 3. A 1.2/1.3 JRE directory based in the same directory as PBJVM90.DLL
>
> 4. A JavaVM on the system path.
>
> So your option should have been #4 and that should work fine.
>
> If you download FileMonitor for www.sysinternals.com, you can see
> where the search for jvm.dll takes you.
>
> On 18 Jun 2004 09:18:21 -0700, "Vlad Zlotskiy" <vladz@imsi.com> wrote:
>
> >It looks like pbjvm90.dll is hardcoded to look for jvm.dll under jdk14
> >subdirectory that must be located directly under PB9 dll directory
> >We tried to call CreateJavaVM on the machine where JavaRuntime was
properly
> >installed and path specified to point to the JavaRuntime\bin and PB
Shared
> >dll directory, JRE variable was pointed to JavaRuntime location (we tried
> >also various variation of CLASSPATH).
> >CreateJavaVM kept returning error: -1 Failure. The Java VM was not
loaded,
> >possibly because jvm.dll was not found in the classpath.
> >As soon as we copied jdk14 directoty structure under PB Shared dll
> >directory, it began working. My question is : Does it mean that during
> >deployment we can not rely on our own java runtime installation and have
to
> >drag the jdk14 subdirectory together with PB Shared dll ?
> >
> >Thanks
> >Vlad
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2004-06-22 02:16:43.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: CreateJavaVM error and jvm.dll
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <40d79578.1680917@forums.sybase.com>
References: <40d312cc$3@forums-2-dub> <40d3a259.36000806@forums.sybase.com> <40d76684@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: vpn-dub-118.sybase.com
X-Original-Trace: 21 Jun 2004 19:18:56 -0700, vpn-dub-118.sybase.com
Lines: 70
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Jun 2004 19:12:55 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Jun 2004 19:16:43 -0700
X-Trace: forums-1-dub 1087870603 10.22.108.75 (21 Jun 2004 19:16:43 -0700)
X-Original-Trace: 21 Jun 2004 19:16:43 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:315
Article PK: 424495

the directory that contains jvm.dll must be in the path, if it's in
%JRE%/bin/client, and you have only %JRE%/bin on the path, then no it
is not sufficient.

On 21 Jun 2004 15:51:48 -0700, "Vlad Zlotskiy" <vladz@imsi.com> wrote:

>Jim,
>Does the jvm.dll directory (%JRE%\bin\client) has to be part of the system
>PATH or %JRE%\bin is enough ?
>We had %JRE%\bin in the PATH as part of a regular JavaRuntime setup: it did
>not work. Also the error description for the CreateJavaVM call is
>missleading since it refers to not being able to find jvm.dll in the
>CLASSPATH.
>
>Regards
>Vlad
>
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>news:40d3a259.36000806@forums.sybase.com...
>> You can use your own JVM... The search order is as follows:
>>
>> 1. A 1.4 JRE directory based in the same directory as PBJVM90.DLL.
>>
>> 2. A 1.4 JDK directory based in the same directory as PBJVM90.DLL
>>
>> 3. A 1.2/1.3 JRE directory based in the same directory as PBJVM90.DLL
>>
>> 4. A JavaVM on the system path.
>>
>> So your option should have been #4 and that should work fine.
>>
>> If you download FileMonitor for www.sysinternals.com, you can see
>> where the search for jvm.dll takes you.
>>
>> On 18 Jun 2004 09:18:21 -0700, "Vlad Zlotskiy" <vladz@imsi.com> wrote:
>>
>> >It looks like pbjvm90.dll is hardcoded to look for jvm.dll under jdk14
>> >subdirectory that must be located directly under PB9 dll directory
>> >We tried to call CreateJavaVM on the machine where JavaRuntime was
>properly
>> >installed and path specified to point to the JavaRuntime\bin and PB
>Shared
>> >dll directory, JRE variable was pointed to JavaRuntime location (we tried
>> >also various variation of CLASSPATH).
>> >CreateJavaVM kept returning error: -1 Failure. The Java VM was not
>loaded,
>> >possibly because jvm.dll was not found in the classpath.
>> >As soon as we copied jdk14 directoty structure under PB Shared dll
>> >directory, it began working. My question is : Does it mean that during
>> >deployment we can not rely on our own java runtime installation and have
>to
>> >drag the jdk14 subdirectory together with PB Shared dll ?
>> >
>> >Thanks
>> >Vlad
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA