• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting up the PATH variable in Fedora Core  RSS feed

 
Herbert Maosa
Ranch Hand
Posts: 289
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am failing to do the seemingly simple task of setting up the PATH variable in my fedora core. I thought I am trying to append the path to my Fedora Core directories for the execution of the asadmin commmand. I was doing something like this
setenv PATH /opt/SUNWappserver/bin:$PATH
Can somebody tell me what I am doing wrong? and also even if I execute the asadmin command from the full path, I get an error message.
Furthermore, I really don't know how to find where my java installation is, that is I don't seem to find the javac and java commands. I installed the j2ee application server and j2sdk.
Herbert
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using bash or csh? Type in >echo $SHELL. Most likely you using bash shell. The correct command should be export PATH=$PATH:<PATH TO JAVA>.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!