Re: [U2] UniObjects Java Packages

2013-04-16 Thread William Brutzman
Victory... Bob Little's thing worked

Thanks to Dan and Doug.  Some tweaked PickWiki code follows from Wm Terry
and Wendy Smoak.

--Bill

package whome;

import asjava.uniobjects.*;
import asjava.uniclientlibs.*;

public class YesYou3 {
   public static void main(String args[]) {

  UniFile thisFile;
  UniString uString;

  try {
 UniSession uSession = new UniSession();

 uSession.setHostName("192.168.0.104");
 uSession.setUserName("brutzy");
 uSession.setPassword("NoNoNo");
 uSession.setAccountPath("/u2/SANDBOX");
 uSession.connect();

 thisFile = uSession.open("CM");

 String key = "6502";
  uString = thisFile.read(key);
 UniDynArray  uDynArray = new UniDynArray(uString);
 System.out.println("Customer Name = " + uDynArray.extract(1) +
"\n");

 String   fieldName =
"CITY.FIELD";
 UniString   fieldContents = thisFile.readNamedField(key,
fieldName);
 System.out.println(fieldName + ": " + fieldContents);

 thisFile.close();

 if (uSession.isActive())
 {
uSession.disconnect();
 }

  } catch (UniSessionException e) {
 System.out.println("Error: " + e);
  }
  catch (UniFileException e) {
 System.out.println("File Error: " + e);
  }
   }

}



On Tue, Apr 16, 2013 at 5:58 PM, Daniel McGrath  wrote:

> There should be no need to rename the asjava.zip file. Just follow this
> previous post.
>
> On windows the default install location (You need to have installed UniDK
> from U2 Clients) is c:\u2\unidk\uojsdk\lib
>
> On Thu, Dec 10, 2009 at 3:48 PM, Bob Little 
> wrote:
> > You should just be able to add the jar (zip) to your build path within
> > Eclipse and clear up the error.
> >
> > Project->Properties->Java Build Path->Add External Jars...
> >
> > Bob Little
> > UniVerse Developer
> > Market America
> > Greensboro NC
>
> Dan McGrath
> Managing Director, U2 Servers Lab
> Rocket Software
> 4600 South Ulster Street  ·  Suite 1100  ·   Denver, CO 80237 ·  USA
> T: +1 720 475 8098 · E: dmcgr...@rocketsoftware.com · W:
> u2.rocketsoftware.com
>
>
>
> -Original Message-
> From: u2-users-boun...@listserver.u2ug.org [mailto:
> u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
> Sent: Tuesday, April 16, 2013 3:07 PM
> To: 'U2 Users List'
> Subject: [U2] UniObjects Java Packages
>
> I am trying to get an example program to work with Eclipse IDE.
>
> When trying to...
>
> import asjava.uniobjects.*;
> import asjava.uniclientlibs.*;
>
> I get errors.
>
> I tried several things without any luck.
>
> Help with how to configure the asjava folder in packages would be
> appreciated.
>
> --Bill
>
>
>
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniObjects Java Packages

2013-04-16 Thread Daniel McGrath
There should be no need to rename the asjava.zip file. Just follow this 
previous post.

On windows the default install location (You need to have installed UniDK from 
U2 Clients) is c:\u2\unidk\uojsdk\lib

On Thu, Dec 10, 2009 at 3:48 PM, Bob Little  wrote:
> You should just be able to add the jar (zip) to your build path within
> Eclipse and clear up the error.
>
> Project->Properties->Java Build Path->Add External Jars...
>
> Bob Little
> UniVerse Developer
> Market America
> Greensboro NC

Dan McGrath
Managing Director, U2 Servers Lab
Rocket Software
4600 South Ulster Street  ·  Suite 1100  ·   Denver, CO 80237 ·  USA
T: +1 720 475 8098 · E: dmcgr...@rocketsoftware.com · W: u2.rocketsoftware.com



-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman
Sent: Tuesday, April 16, 2013 3:07 PM
To: 'U2 Users List'
Subject: [U2] UniObjects Java Packages

I am trying to get an example program to work with Eclipse IDE.

When trying to...

import asjava.uniobjects.*;
import asjava.uniclientlibs.*;

I get errors.

I tried several things without any luck.

Help with how to configure the asjava folder in packages would be appreciated.

--Bill



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniObjects + Java Packages

2013-04-16 Thread Doug Averch
You have to convert the asjava.zip to a jar file.  Then you need to add
asjava.jar to your lib file.  Good luck with your project.

Regards,
Doug
www.u2logic.com
"Real tools for Eclipse for U2 Programmers"
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniObjects + Java Packages

2013-04-16 Thread Doug Averch
You have to convert the asjava.zip to a jar file.  Then you need to add
asjava.jar to your lib file.  Good luck with your project.

Regards,
Doug
www.u2logic.com
"Real tools for Eclipse for U2 Programmers"
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users