Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What the difference between jt400.jar and jt400Native.jar???

679 views
Skip to first unread message

Karine

unread,
Jul 9, 2003, 10:40:00 AM7/9/03
to
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

unread,
Jul 9, 2003, 11:00:45 AM7/9/03
to
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

_________________________________________________________________________
Puddleglum's my name. But it doesn't matter if you forget it. I can always tell
you again.

Thomas Horschmann

unread,
Jul 9, 2003, 12:15:16 PM7/9/03
to
Hello Karine,

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

hth
Thomas

"Karine" <karin...@hotmail.com> schrieb im Newsbeitrag
news:c02a5cb.03070...@posting.google.com...

carlo...@gmail.com

unread,
Sep 26, 2016, 3:29:59 PM9/26/16
to


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

unread,
Sep 27, 2016, 10:31:23 AM9/27/16
to
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.
0 new messages