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 » General IBM MQ Support » (JRE) or Java Development Kit must be available in order to

Post new topic  Reply to topic Goto page Previous  1, 2
 (JRE) or Java Development Kit must be available in order to « View previous topic :: View next topic » 
Author Message
mlotfi
PostPosted: Wed Feb 17, 2016 11:14 am    Post subject: Reply with quote

Acolyte

Joined: 07 Jul 2015
Posts: 60

I uninstalled MQ, created a new ubuntu virtual machine, please advise me how should I install a new MQ 8 in ubuntu to avoid all problems.
This is what I have as rpm package :
Code:

copyright
crtmqpkg
lap
licenses
mqlicense.sh
MQSeriesAMQP-8.0.0-4.x86_64.rpm
MQSeriesAMS-8.0.0-4.x86_64.rpm
MQSeriesClient-8.0.0-4.x86_64.rpm
MQSeriesExplorer-8.0.0-4.x86_64.rpm
MQSeriesFTAgent-8.0.0-4.x86_64.rpm
MQSeriesFTBase-8.0.0-4.x86_64.rpm
MQSeriesFTLogger-8.0.0-4.x86_64.rpm
MQSeriesFTService-8.0.0-4.x86_64.rpm
MQSeriesFTTools-8.0.0-4.x86_64.rpm
MQSeriesGSKit-8.0.0-4.x86_64.rpm
MQSeriesJava-8.0.0-4.x86_64.rpm
MQSeriesJRE-8.0.0-4.x86_64.rpm
MQSeriesMan-8.0.0-4.x86_64.rpm
MQSeriesMsg_cs-8.0.0-4.x86_64.rpm
MQSeriesMsg_de-8.0.0-4.x86_64.rpm
MQSeriesMsg_es-8.0.0-4.x86_64.rpm
MQSeriesMsg_fr-8.0.0-4.x86_64.rpm
MQSeriesMsg_hu-8.0.0-4.x86_64.rpm
MQSeriesMsg_it-8.0.0-4.x86_64.rpm
MQSeriesMsg_ja-8.0.0-4.x86_64.rpm
MQSeriesMsg_ko-8.0.0-4.x86_64.rpm
MQSeriesMsg_pl-8.0.0-4.x86_64.rpm
MQSeriesMsg_pt-8.0.0-4.x86_64.rpm
MQSeriesMsg_ru-8.0.0-4.x86_64.rpm
MQSeriesMsg_Zh_CN-8.0.0-4.x86_64.rpm
MQSeriesMsg_Zh_TW-8.0.0-4.x86_64.rpm
MQSeriesRuntime-8.0.0-4.x86_64.rpm
MQSeriesSamples-8.0.0-4.x86_64.rpm
MQSeriesSDK-8.0.0-4.x86_64.rpm
MQSeriesServer-8.0.0-4.x86_64.rpm
MQSeriesXRService-8.0.0-4.x86_64.rpm
PreReqs
READMES
repackage

Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Feb 17, 2016 1:56 pm    Post subject: Reply with quote

Grand High Poobah

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

Ok so you can filter the MQSeriesMsg to only install your language.
The MQSeriesAMQP and MQSeriesAMS support the corresponding specific features...(MQ Light and Advanced Message Security).
The MQSeriesFT* packages support the file transfer.

Everything else you should install, and I would install AMQP packages as well.. as I am not aware that they undergo a different licensing...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mlotfi
PostPosted: Thu Feb 18, 2016 6:56 am    Post subject: Reply with quote

Acolyte

Joined: 07 Jul 2015
Posts: 60

This is the third time I installed MQ8 in ubuntu, but always have the same error when trying to run MQ Explorer, please is there any other documentation other than the one in ibm on how to INSTALL mq8 IN UBUNTU ?

thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 18, 2016 7:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

do the setmqinst. then source the setmqenv

Then run strmqcfg from that same command prompt.

If that still doesn't work, then open a PMR.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
mlotfi
PostPosted: Thu Feb 18, 2016 7:15 am    Post subject: Reply with quote

Acolyte

Joined: 07 Jul 2015
Posts: 60

mqjeff wrote:
do the setmqinst. then source the setmqenv

Then run strmqcfg from that same command prompt.

If that still doesn't work, then open a PMR.


Hi,

Please bear with me, I am new to Linux and MQ, how to do :
Code:
do the setmqinst. then source the setmqenv ?


Thanks.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 18, 2016 7:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

To source some file into the current linux shell, you use the period. So ".<space> file.sh".

Or ".<space>setmqenv <setmqenv options>"
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Philip Morten
PostPosted: Thu Feb 18, 2016 7:27 am    Post subject: Reply with quote

Master

Joined: 07 Mar 2002
Posts: 230
Location: Hursley Park

fjb_saper wrote:
looks like it might be looking for a 32 bit java JRE...

Yes is does, and it should not be! The location of the JRE for explorer is set in the -vm entry of the file /opt/mqm/bin/MQExplorer.ini ( assuming an installation in the default path).

It should look like this:
Code:
-vm
/opt/mqm/java/jre64/jre/bin
-vmargs
-Xmx512M

Note the jre64 in the path. That file is part of the MQSeriesExplorer package and should only be modified if the product is installed to a non-default location.
_________________
Philip Morten

The postings on this site are my own and do not necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
mlotfi
PostPosted: Thu Feb 18, 2016 8:34 am    Post subject: Reply with quote

Acolyte

Joined: 07 Jul 2015
Posts: 60

mqjeff wrote:
To source some file into the current linux shell, you use the period. So ".<space> file.sh".

Or ".<space>setmqenv <setmqenv options>"




did you mean :

Code:

. /opt/mqm/bin/setmqinst -i -p /opt/mqm
. /opt/mqm/bin/setmqenv

what are the <setmqenv options> ?


Last edited by mlotfi on Thu Feb 18, 2016 8:44 am; edited 1 time in total
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Feb 18, 2016 8:38 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

mqjeff wrote:
To source some file into the current linux shell, you use the period. So ".<space> file.sh".

Or ".<space>setmqenv <setmqenv options>"


When you run a command in a shell like below, that tells the shell interpreter to run the command as a child process (fork/exec) to your current shell process. Therefore any environment variable updates that the command does would not be reflected in your current shell, after the command ends.

setmqenv

When you source the command in a shell like below, that tells the shell interpreter to run the command in your current shell process (only an exec is performed, with no preceding fork). Therefore any environment variable updates that the command does would be reflected in your current shell, after the command ends.

. setmqenv
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
mlotfi
PostPosted: Thu Feb 18, 2016 8:39 am    Post subject: Reply with quote

Acolyte

Joined: 07 Jul 2015
Posts: 60

Philip Morten wrote:
fjb_saper wrote:
looks like it might be looking for a 32 bit java JRE...

Yes is does, and it should not be! The location of the JRE for explorer is set in the -vm entry of the file /opt/mqm/bin/MQExplorer.ini ( assuming an installation in the default path).

It should look like this:
Code:
-vm
/opt/mqm/java/jre64/jre/bin
-vmargs
-Xmx512M

Note the jre64 in the path. That file is part of the MQSeriesExplorer package and should only be modified if the product is installed to a non-default location.


My /opt/mqm/bin/MQExplorer.ini has exactly the same.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 18, 2016 9:15 am    Post subject: Reply with quote

Grand High Poobah

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

And did you check the path for the vm that is displayed in MQExplorer.ini ?
Do you have a java or javaw executable in this path? If yes what are the permissions on the files / directories...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Thu Feb 18, 2016 2:56 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

1. Did you install "MQSeriesJava-8.0.0-4.x86_64.rpm"?
2. Did you install "MQSeriesJRE-8.0.0-4.x86_64.rpm"?
3. Did you set the JAVA_HOME environment variable in your profile with /opt/mqm/java/jre64/jre (no trailing "/bin")
4. Did you update the PATH environment in your profile with /opt/mqm/java/jre64/jre/bin

By "profile", I mean the user profile file i.e. ".profile" in the user's home directory. i.e. do "ls -la" command to see hidden files in your home directory. Note: I don't have a Ubuntu image, so I don't know if the profile file is called ".profile" in Ubuntu.

After you have done the above 4 steps, logout and then login again (Extremely important!!). Next, run the following commands from the terminal window:
Code:
set | grep PATH
set | grep JAVA_HOME
java -version


What is returned from those commands?

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mlotfi
PostPosted: Thu Feb 18, 2016 8:37 pm    Post subject: Reply with quote

Acolyte

Joined: 07 Jul 2015
Posts: 60

Thanks RogerLacroix, set my env data in the file .profile, and everything work fine now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » (JRE) or Java Development Kit must be available in order to
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.