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.

PBIN-Call PB From Java

2 posts in Help with NNTP newsgroups Last posting was on 2005-05-05 04:56:38.0Z
Medhat Posted on 2005-05-04 08:01:21.0Z
From: "Medhat" <mmedha@unitedofoq.com>
Newsgroups: news.help
Organization: 82.201.184.90
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: PBIN-Call PB From Java
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: web110.discountasp.net
X-Original-NNTP-Posting-Host: web110.discountasp.net
Message-ID: <42788151$1@forums-1-dub>
Date: 4 May 2005 01:01:21 -0700
X-Trace: forums-1-dub 1115193681 64.79.161.40 (4 May 2005 01:01:21 -0700)
X-Original-Trace: 4 May 2005 01:01:21 -0700, web110.discountasp.net
Lines: 32
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub news.help:383
Article PK: 19512

Dear All
I download Samples From Syabase For PBNI and I’m Interesting in calling
powerbulider NonVisual Object from Java environment .
I found the samples Of this Point but I have a error when I compile the Java
File
The Java File Code Is:-

import com.sybase.powerbuilder.runtime.*;
import java.lang.*;

public class TestJavaBean
{
public static void main(String[] args)
{
PBVM pbvm = PBVM.instance();
String appname = new String("trypbni");
String[] liblist = { new String("trypbni.pbl") };
PBSession session = pbvm.createSession(appname, liblist);
PBObject obj = session.createObject(new String("nvo"));
Object[] arg = { new String("from java!") };
short st = obj.invokeShort(new String("foo"), new String("IS"), arg);
System.out.println("return value: " + st);
}
}
I tried To Run This but I get Error about import
com.sybase.powerbuilder.runtime.* Where I can Get This Jar File To Add This In
ClassPath Variable
Thanks For Help

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Bruce Armstrong [TeamSybase] Posted on 2005-05-05 04:56:38.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: news.help
Subject: Re: PBIN-Call PB From Java
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <cr9j719pdq0cptbnvmge3oq5pro0l360f2@4ax.com>
References: <42788151$1@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
Date: 4 May 2005 21:56:38 -0700
X-Trace: forums-1-dub 1115268998 68.190.226.38 (4 May 2005 21:56:38 -0700)
X-Original-Trace: 4 May 2005 21:56:38 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 92
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub news.help:384
Article PK: 19513

Sorry, but I'm going to redirect you one more time. Post on PBNI
should be put in the sybase.public.powerbuilder.pbni section.

On 4 May 2005 01:01:21 -0700, "Medhat" <mmedha@unitedofoq.com> wrote:

>
>Dear All
> I download Samples From Syabase For PBNI and I’m Interesting in calling
>powerbulider NonVisual Object from Java environment .
>I found the samples Of this Point but I have a error when I compile the Java
>File
>The Java File Code Is:-
>
>import com.sybase.powerbuilder.runtime.*;
>import java.lang.*;
>
>public class TestJavaBean
>{
> public static void main(String[] args)
> {
> PBVM pbvm = PBVM.instance();
> String appname = new String("trypbni");
> String[] liblist = { new String("trypbni.pbl") };
> PBSession session = pbvm.createSession(appname, liblist);
> PBObject obj = session.createObject(new String("nvo"));
> Object[] arg = { new String("from java!") };
> short st = obj.invokeShort(new String("foo"), new String("IS"), arg);
> System.out.println("return value: " + st);
> }
>}
>I tried To Run This but I get Error about import
>com.sybase.powerbuilder.runtime.* Where I can Get This Jar File To Add This In
>ClassPath Variable
>Thanks For Help
>
>---== Posted via the PFCGuide Web Newsreader ==---
>http://www.pfcguide.com/_newsgroups/group_list.asp

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Using DataWindow .NET with MSDN
http://go.microsoft.com/fwlink/?LinkId=43031

Seventh Annual Sybase Tools Seminar
http://seminar.powerobjects.com/

Vote for DataWindow.Net!
http://sys-con.com/dotnet/readerschoice2004/

TeamSybase blogs:
http://www.teamsybase.net/blogs

PowerBuilder Developer's Journal:
http://sys-con.com/pbdj/

Two 3rd party books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

---------------------------------------------------------------------
NOTE:

If you are using Google to post messages to the newsgroups, you will
*not* receive a reply. Messages posted through Google never reach the
Sybase newsgroup server, so we don't see them in order to respond to
them. You should post your question using a standard newsgroup reader
or the web based newsreaders at my.sybase.com or www.pfcguide.com.
Google is great for searching the Sybase newsgroups, but you can't post
to them from there.

---------------------------------------------------------------------
DISCLAIMER:

This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.

Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has multiple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.