Find the answer to your Linux question:
Results 1 to 4 of 4
Hi there, on a Suse 10.1 I'm trying to run JBoss 4 which at the startup gives me the following message run.sh: Missing file: /lib/tools.jar run.sh: Unexpected results may occur. ...
  1. #1
    Just Joined! sandrocchio_0.1's Avatar
    Join Date
    Nov 2006
    Location
    EU
    Posts
    9

    Question set JAVA_HOME

    Hi there,
    on a Suse 10.1 I'm trying to run JBoss 4 which at the startup gives me the following message

    run.sh: Missing file: /lib/tools.jar
    run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.


    ok, then I checked where actually the jdk was
    /opt/jdk1.5.0_07

    from the console
    echo $JAVA_HOME
    /usr/lib/jvm/java


    so, I tried to set the JAVA_HOME
    export JAVA_HOME=/opt/jdk1.5.0_07
    export PATH=$JAVA_HOME/bin:$PATH


    just a quick check
    which java
    /opt/jdk1.5.0_07/bin/java
    which javac
    /opt/jdk1.5.0_07/bin/javac


    fine.....I though
    but as soon as log out and log in all the java enviroments back as were before.
    What's going on? How can I solve my problem?
    (how can I set that var for every user?)

  2. #2
    Just Joined!
    Join Date
    Jan 2007
    Location
    Turkey
    Posts
    14
    The changes you have made to your environment variables are temporary and just for that session of the terminal.

    If you would like to make the changes perminant, try to edit the file in
    Code:
    /etc/profile
    and add your path.

  3. #3
    Just Joined! sandrocchio_0.1's Avatar
    Join Date
    Nov 2006
    Location
    EU
    Posts
    9
    ok, I did more or less the same thing editing a file called /etc/profile.local and it works pretty fine.

    So, now the JAVA_HOME env seems to be correct and when I try to run JBoss as myself I don't get anymore that error

    Boss Bootstrap Environment

    JBOSS_HOME: /etc/jboss-4.0.5.GA

    JAVA: /opt/jdk1.5.0_07/bin/java

    JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

    CLASSPATH: /etc/jboss-4.0.5.GA/bin/run.jar:/opt/jdk1.5.0_07/lib/tools.jar


    but when I try to run it as jboss (system user) using the command
    sudo -u jboss ./run.sh
    I still have the same problem.
    run.sh: Missing file: /lib/tools.jar
    run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
    ================================================== =======================

    JBoss Bootstrap Environment

    JBOSS_HOME: /etc/jboss-4.0.5.GA

    JAVA: java

    JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

    CLASSPATH: /etc/jboss-4.0.5.GA/bin/run.jar:/lib/tools.jar


    It seems that user can't get the enviroment which should be visible to everybody. I'm not sure if everybody includes system user as well.

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Location
    Turkey
    Posts
    14
    Quite interesting, don't know about the profile.local file but profile file should be for any user on the system.
    Good luck,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...