Discussion:
What the difference between jt400.jar and jt400Native.jar???
(too old to reply)
Karine
2003-07-09 14:40:00 UTC
Permalink
Hello,

I begin to work with as400 toolbox for java. I would like to know
the difference between jt400.jar and jt400Native.jar.

Thanks for your help!!!
David Sullivan
2003-07-09 15:00:45 UTC
Permalink
Hey Karine, I'm not going to be a "lot" of help, but I'll share the tidbit that
we discovered....

We had to write an application that polled and modified the contents of the
mail-store files in the /QTCPTMM/MAIL directory system. The program worked
fine when running on a PC and accessing the AS/400 from the PC... but...

When we ran in on the AS/400 directly, we had things that didn't work which
ended up resulting from security issues.

The main difference was the default logon. A program that runs on the AS/400
"should" log on as the user of the batch or interactive job that is running it.
Well, it doesn't.

We were using utilities in the JSSE and J2SE. After much seeking we found the
cure...

It's called jt400Native.jar. By having this set of classes ahead (or instead
of) of the jt400.jar classes in the classpath, things went well. The other
way, they did not.

No technical help from me here, just a comment from experience. I hope it
helps.

Thanks.

David
Post by Karine
Hello,
I begin to work with as400 toolbox for java. I would like to know the
difference between jt400.jar and jt400Native.jar.
Post by Karine
Thanks for your help!!!
_________________________________________________________________________
Puddleglum's my name. But it doesn't matter if you forget it. I can always tell
you again.
Thomas Horschmann
2003-07-09 16:15:16 UTC
Permalink
Hello Karine,

take a look at
http://www-1.ibm.com/support/docview.wss?uid=nas1f898af911f6ae54086256b4400816d18&rs=110

hth
Thomas
Post by Karine
Hello,
I begin to work with as400 toolbox for java. I would like to know
the difference between jt400.jar and jt400Native.jar.
Thanks for your help!!!
c***@gmail.com
2016-09-26 19:29:53 UTC
Permalink
Hi! I would like to share my experience regarding this subject of very slow running java applications under As400.

It turns out that the CRTJVPGM instruction didn't appear to optimize my code, as the DSPJVPGM showed after the Optimization level always remained as *INTERPRET

I found out that it didn't have anything to do with my code wich wasn't very complex at all. But just to make sure i wrote a simple HelloWorld.class but It wouldn't get optimized even when the CRTJVPGM instruction said it was successfull.

So, finally I Read this David Sullivan Suggestion of changing the jt400 to jt400Native.jar, and It did the Job now my application runs as expected.

Thank you David wherever you are!
Jon Paris
2016-09-27 14:31:06 UTC
Permalink
Post by Karine
Hello,
I begin to work with as400 toolbox for java. I would like to know
the difference between jt400.jar and jt400Native.jar.
Thanks for your help!!!
The basic difference is that the "Native" version is just that - it uses a lot of links directly into low level code on the IBM i that makes things like data access work far more efficiently.

If you are running the Java on another platform then use the base jt400 - if running the code on the IBM i then use jt400Native.
Loading...