ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Security » gsk7cmd gets Java error

Post new topic  Reply to topic
 gsk7cmd gets Java error « View previous topic :: View next topic » 
Author Message
ivanachukapawn
PostPosted: Fri Apr 08, 2011 8:44 am    Post subject: gsk7cmd gets Java error Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

when running gsk7cmd (AIX MQ7) I get

Quote:
Error:
java not found.
JDK 1.3.1 or later required.
Please set JAVA_HOME or add directory containing java to path.


PATH:

Quote:
>echo $PATH
/usr/java5/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hb412/bin:/usr/bin/X11:/sb
in:.


JAVA_HOME

Quote:
>echo $JAVA_HOME
/usr/java5/bin/java
Back to top
View user's profile Send private message
ivanachukapawn
PostPosted: Fri Apr 08, 2011 9:15 am    Post subject: Reply with quote

Knight

Joined: 27 Oct 2003
Posts: 561

Sorry about that. I found:
Quote:
AIX® export JAVA_HOME=/usr/mqm/ssl/jre
and now it works.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Apr 08, 2011 7:41 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

ivanachukapawn wrote:
Sorry about that. I found:
Quote:
AIX® export JAVA_HOME=/usr/mqm/ssl/jre
and now it works.


Learn as well that for the JAVA_HOME variable you never set it to the executable level... setting it to /usr/java5 like
Code:
export JAVA_HOME=/usr/java5
would have worked as well.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Sat Apr 09, 2011 2:25 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

fjb_saper wrote:
Learn as well that for the JAVA_HOME variable you never set it to the executable level... setting it to /usr/java5 like
Code:
export JAVA_HOME=/usr/java5

would have worked as well.


fj, can you qualify why please?

The Info Centre states:
Quote:
You must set the JAVA_HOME environment variable to /opt/mqm/ssl/jre.

I have a very low level of java expertise and with the emphasis of 'must' above, I'm curious to know why. Thank you.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sat Apr 09, 2011 3:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You need to use the Java runtime that comes with MQ in order to get all of the security algorithms and etc. Things like AES do not come with an out-of-the-box Java install.

So that's why the infocenter says MUST.

And that's why it specifies the path to the jvm that is shipped with MQ, and points at the directory that holds the whole JVM and not at the specific java program.

FJ is making a clarification between pointing JAVA_HOME at /opt/mqm/ssl/jre/bin/java (which is the executable) and /opt/mqm/ssl/jre (which is the directory that holds the Java install).
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Apr 09, 2011 8:00 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

mqjeff wrote:
You need to use the Java runtime that comes with MQ in order to get all of the security algorithms and etc. Things like AES do not come with an out-of-the-box Java install.

So that's why the infocenter says MUST.

And that's why it specifies the path to the jvm that is shipped with MQ, and points at the directory that holds the whole JVM and not at the specific java program.

FJ is making a clarification between pointing JAVA_HOME at /opt/mqm/ssl/jre/bin/java (which is the executable) and /opt/mqm/ssl/jre (which is the directory that holds the Java install).


You mean to say that the JSSE/JCE package shipped with standard java, and the one shipped with MQ are different, right?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Sun Apr 10, 2011 7:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

fjb_saper wrote:
You mean to say that the JSSE/JCE package shipped with standard java, and the one shipped with MQ are different, right?

Yes, that is likely what I mean.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Security » gsk7cmd gets Java error
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.