Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

java ims connectivity

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
latha s

New User


Joined: 04 May 2012
Posts: 2
Location: India

PostPosted: Fri May 04, 2012 8:48 am    Post subject: java ims connectivity
Reply with quote

We were trying to execute JAVA pgm to connect to IMS DB from OMVS region.

We have set CLASSPATH, LIBPATH and PATH environment variables.

WHile executing the java pgm it gives me error libjavTDLI.so not found in native java.library.path.

kindly help us to solve the issue.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri May 04, 2012 9:02 am    Post subject:
Reply with quote

Hello and welcome to the forum,

Then you need to work with your local support people to get the .so library into the proper path or use some different location.

Suggest you determine why this is missing. . .

Only someone supporting your environments will have access to the needed info i suspect.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri May 04, 2012 7:30 pm    Post subject:
Reply with quote

Not sure if I'm getting exactly what you're doing, but...

Maybe the code is executing in a different "shell"/"enclave"/"run time environment" from where you are setting the environment variables.

You can add a few lines of code to display the active environment variables when you run the program.

I had an issue where something was running out of sequence based on system startup and it like to drove me crazy trying to figure it out.
Back to top
View user's profile Send private message
latha s

New User


Joined: 04 May 2012
Posts: 2
Location: India

PostPosted: Mon May 07, 2012 3:17 pm    Post subject:
Reply with quote

java.sql.SQLException: com.ibm.ims.base.IMSException: Error loading 32 bit versi
on of the native library. Either libJavTDLI.so or libJavTDLI_64.so not found in
LIBPATH. Exception: java.lang.UnsatisfiedLinkError: JavTDLI (Not found in java.l
ibrary.path)
at com.ibm.ims.db.DLIConnection.<init>(DLIConnection.java:231)
at com.ibm.ims.db.DLIConnection.createInstance(DLIConnection.java:275)
at com.ibm.ims.db.DLIQueryConnection.<init>(DLIQueryConnection.java:21)
at com.ibm.ims.db.DLIDriver.connect(DLIDriver.java:61)
at java.sql.DriverManager.getConnection(DriverManager.java:572)
at java.sql.DriverManager.getConnection(DriverManager.java:218)
at test.main(test.java:9)
$

this is the exact error i am getting when i try to execute JAVA pgm to connect to IMS DB from OMVS region.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 07, 2012 3:40 pm    Post subject:
Reply with quote

latha s wrote:
We have set CLASSPATH, LIBPATH and PATH environment variables.


sure you have. the computer is at fault...

Ed Goodman wrote:
You can add a few lines of code to display the active environment variables when you run the program.


until you know what values are in the environmental variables at run time

you have no way of knowing to which value you have set your LIBPATH variable.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Mon May 07, 2012 6:56 pm    Post subject:
Reply with quote

Dick, feeling a little grumpy?

By showing the three variable values that the TS already listed, they can see if they have updated them correctly at run time.

My guess is they either didn't really set them, or they DID set them, but in a way that doesn't make it to the run time environment when they execute the code.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 07, 2012 7:05 pm    Post subject:
Reply with quote

ED, as a matter of fact i have what is known as a 'good buzz-on'.

i used your quote to show the TS,
that unless he did as you suggested,
he was/probably still is
in the dark about what the values are at run time.

if i worded it improperly, sorry.

as far as your analysis and conclusion, i totally agree.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue May 08, 2012 3:35 am    Post subject:
Reply with quote

I'm still in the "how do you do that in Eclipse" phase, so I get how confusing it can be.

I think the biggest problem with all of the docs is that they are written by developers for other developers. We all know what that means: the writer assumes all KINDS of things about what the reader knows.

I'd bet in this case, the connecting program is running on the server (either a separate box, or a test server like TomCat), but the developers are testing from the local environment.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Missing Java main class akg Java & MQSeries 3 Wed May 25, 2016 4:05 pm
No new posts Batch Java on Mainframe Roy Ware Java & MQSeries 4 Sat Feb 13, 2016 2:09 am
This topic is locked: you cannot edit posts or make replies. Mainframe & JAVA Jobs Walkin Dri... mjadwani2785 Mainframe Jobs 0 Thu Feb 11, 2016 12:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us