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.

problem with call java class "Failed to create Java class"

2 posts in EJB Client Last posting was on 2010-07-01 14:41:55.0Z
William Posted on 2009-11-09 01:45:15.0Z
From: William <whuera@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: problem with call java class "Failed to create Java class"
Date: Sun, 8 Nov 2009 17:45:15 -0800 (PST)
Organization: http://groups.google.com
Lines: 19
Message-ID: <47b04e49-719a-4b82-bd2a-eb4810fbdb21@r5g2000yqb.googlegroups.com>
NNTP-Posting-Host: 190.131.123.235
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257731115 25671 127.0.0.1 (9 Nov 2009 01:45:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 9 Nov 2009 01:45:15 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r5g2000yqb.googlegroups.com; posting-host=190.131.123.235; posting-account=4d5qyAkAAACCQRAi7Lvx-HGUxL1NE7QJ
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 Glubble/2.0.4.9 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!r5g2000yqb.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:813
Article PK: 424906

I have a problem when calling the java class have the following
message "Failed to create Java class."
as I solve this problem???? thanks for you help
the code example is

li_return = l_EJBConnection.createJavaInstance( l_javapbtest,
"pbjavajavapbtest" )
CHOOSE CASE li_return
CASE -1
MessageBox( "Can’t Create Java Class", "Failed to create
Java class.")
CASE -2
MessageBox( "Can’t Create Java Class", " Invalid proxy
name.")
CASE -3
MessageBox( "Can’t Create Java Class", "Failed to create
proxy object.")
CASE 0


Murat Yelkovan Posted on 2010-07-01 14:41:55.0Z
From: "Murat Yelkovan" <muratyelkovan@yahoo.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <47b04e49-719a-4b82-bd2a-eb4810fbdb21@r5g2000yqb.googlegroups.com>
Subject: Re: problem with call java class "Failed to create Java class"
Lines: 97
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4c2ca933@forums-1-dub>
Date: 1 Jul 2010 07:41:55 -0700
X-Trace: forums-1-dub 1277995315 10.22.241.152 (1 Jul 2010 07:41:55 -0700)
X-Original-Trace: 1 Jul 2010 07:41:55 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:816
Article PK: 424907

Hi William

Copy these files to the application directory.
pbejbclient115.jar
pbejbclient115.pbd
pbejbclient115.pbx
pbjdbc12115.jar
PBjvm115.DLL

Add jdk directory to the system path. Example : c:\jdk1.4\jre\bin\client;

//Following code works fine.
String ls_ret
encrypt prx_encrypt
EJBConnection lEJBConn
javavm jvm


TRY
// jvm yi create et
jvm = create javavm
choose case jvm.CreateJavaVM("",false)
case -1
messagebox("Hata","The Java VM was not loaded, possibly because jvm.dll
was not found in the classpath.~n~r" + &
"c:\jdk1.4 kalsörünü bilgisayarinizda var mi?~n~r" + &
"Bilgisayarinizin pathinde c:\jdk1.4\jre\bin\client; adresi var
mi? Kontrol ediniz.~n~r" )
return ""
case -2
messagebox("Hata","The pbejbclient115.jar file was not found.")
return ""
end choose


// classi create et
lEJBConn = CREATE EJBConnection
choose case lEJBConn.CreateJavaInstance(prx_encrypt, "encrypt" )
case -1
messagebox("Hata","Failed to create Java class encrypt")
return ""
case -2
messagebox("Hata","Invalid proxy name")
return ""
case -3
messagebox("Hata","Failed to create proxy object")
return ""
end choose



// encrypt password
ls_ret = prx_encrypt.encrypt(as_password,as_loginname+",")
if trim(ls_ret) = "" or isnull(ls_ret) then
messagebox("Hata","Web sifresi olusturulamadi")
end if


CATCH (Throwable g)
MessageBox("Exception in createJavaInstance", g.getMessage()+"~n~r" + &
"c:\jdk1.4 kalsörünü bilgisayarinizda var mi?~n~r" + &
"Bilgisayarinizin pathinde c:\jdk1.4\jre\bin\client;
adresi var mi? Kontrol ediniz.~n~r" )
END TRY

return ls_ret








"William" <whuera@gmail.com> wrote in message
news:47b04e49-719a-4b82-bd2a-eb4810fbdb21@r5g2000yqb.googlegroups.com...

I have a problem when calling the java class have the following
message "Failed to create Java class."
as I solve this problem???? thanks for you help
the code example is

li_return = l_EJBConnection.createJavaInstance( l_javapbtest,
"pbjavajavapbtest" )
CHOOSE CASE li_return
CASE -1
MessageBox( "Can’t Create Java Class", "Failed to create
Java class.")
CASE -2
MessageBox( "Can’t Create Java Class", " Invalid proxy
name.")
CASE -3
MessageBox( "Can’t Create Java Class", "Failed to create
proxy object.")
CASE 0