Skip to Content
author's profile photo Former Member
Former Member

PB 12.5.2 JDK 1.5.0_06

My current PB and JAVA settings are:

PB 12.5.2 Build 5006

JAVA 1.6.0_24 (installed by PowerBuilder

Now ... interesting part is When CreateJavaVM method is executed, and debug option is TRUE, sometimes fails, some other not.

VM.OUT file reports class files loaded from: c:\program files\Sybase\shared\powerbuilder\jdk.1.5.0_06\jre\lib\rt.jar, also several files are loaded from same PATH, that doesn't exist.

If my actual JDK (also installed by PB) is .1.6, why classes are loaded from 1.5 and from a non existing path.

Please see Attached VM.OUT

Regards ...

AJPM

vm.out.zip (3.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2015 at 04:02 PM

    Hi Arnoldo;

    Did you specify the JDK version when you coded the CreateJVM ( ) command?

    For example, here is what I do to force my application to use JDK v1.7 ....

    String ls_JVM

    ls_jvm = "C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\sapjvm7\JRE\LIB\rt.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\sapjvm7\LIB\tools.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\build\fop.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\batik.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\xalan-2.4.1.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\xercesImpl-2.2.1.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\xml-apis.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\avalon-framework-cvs-20020806.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\logkit-1.0.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\fop-0.20.5\lib\jimi-1.0.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\pbejbclient126.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\pbjdbc12126.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\eas-japi.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\pbuddi126.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\pbwst126.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\classes;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\easj2ee.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\commons-discovery.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\sapjvm7\lib\tools.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\commons-logging.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\dom.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\jaxp-api.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\jaxrpc.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\log4j-1.2.8.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\saaj.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\servlet.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\commons-httpclient.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\sybasewst.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\uddi4j.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\wsdl4j.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\xercesImpl-2.1.0.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\xml-apis.jar;C:\Program Files (x86)\Sybase126\Shared\PowerBuilder\WEB-INF\lib\axis.jar;."

    ll_return = lo_jvm.CreateJavaVM (ls_JVM, FALSE)

    Regards ... Chris

    PS: The JVM ClassPath (ls_jvm) could also be loaded from a control file. 😉

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.