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 Java / JMS » Linux with Java and MQ

Post new topic  Reply to topic
 Linux with Java and MQ « View previous topic :: View next topic » 
Author Message
wmq_guy
PostPosted: Mon Dec 27, 2004 8:00 am    Post subject: Linux with Java and MQ Reply with quote

Acolyte

Joined: 21 Oct 2004
Posts: 50

I am struggling to get my java set up to write, compile and run some java programs, and honestly being a linux newbie the docs for such are somewhat confusing..

I am trying to break this down as simple as possible.

-I am logged into Linux as root.
-then download the j2sdk1.4.2_06 in the /USR/ dir
-I did chmod +x j2sdk1.4.2_06...
-then./j2sdk1.4.2_06...
it installed successfully.
but setting up the path classpath is different.
I would like two things:
for my mozilla browser to now be java enabled, AND
I would like to create a directory called javasrc to hold all my java source code
but I do not want to develop in root, I want any user to be able to use the javasrc directory and be able to compile and run the programs..
and most importantly I will need to write MQ programs so I need this in the classpath/path

what exactly do I edit. someone said I need to edit a file in /ETC/PROFILE

I want to try this..but I dont think it is correct

export JAVA_HOME=/usr/j2sdk1.4.2_06

PATH=$HOME:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/X11:/sbin:/home/mqm/bin:$JAVA_HOME/bin
:

export PATH



thanks
Back to top
View user's profile Send private message
techno
PostPosted: Mon Dec 27, 2004 9:26 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I guess you should check the profile files in home-dir. Check for .profile or .bash_profile..... depending on linux flavor in use.
Back to top
View user's profile Send private message
wmq_guy
PostPosted: Mon Dec 27, 2004 10:03 am    Post subject: Reply with quote

Acolyte

Joined: 21 Oct 2004
Posts: 50

thanks for your reply.

I am using Mandrake 10

does this look correct? I also need to poin to where all my .java files are too right? and make it so every user can use these.

Code:

export JAVA_HOME=/usr/j2sdk1.4.1_06

PATH=$PATH:/usr/bin:$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:/usr/javasrc:/usr/bin:$JAVA_HOME/lib

export PATH
export CLASSPATH


do I add these in /ETC/PROFILE

thanks again
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 27, 2004 12:31 pm    Post subject: Reply with quote

Grand High Poobah

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

Make life easy for yourself
use a symbolic link /usr/java
like
Code:
ln -s /usr/j2sdk1.4.2_06 /usr/java

This way when you upgrade or change version all you need is switch the symbolic link and all your apps will upgrade at the same time.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Linux with Java and MQ
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.