2 Replies Latest reply on Nov 26, 2011 8:29 PM by nk83

    Configuring run.sh with approp. java home

    nk83

      Hi

       

      My web application must run on Jboss3.2.3 and jdk1.4.2_19. I have another java application (X) that requires jdk1.5 on the same machine (AMI Linux). So I need to set my JAVA_HOME to 2 java versions

       

      I'm trying to address the issue as follows:


      I set my JAVA_HOME and default java (/usr/bin/java) to jdk1.5 to run my java app . X

      I need to change Jboss' run.sh file to make JAVA_HOME variable to point to jdk1.4

       

      Have anyone had tried to change  Jboss' run.sh to point to another Java version (jdk1.4 in my case)? Any pointer/suggestions please?

       

      I look forward to your thoughts

       

      Thanks in advance

      NK

        • 1. Re: Configuring run.sh with approp. java home
          wdfink

          Do not change the run.sh.

          For Linux/Unix the right place will be bin/run.conf which contains such configurations.

          You will find a (commented) line #JAVA_HOME=...... there.

          Just remove '#' and set the path to your appropriate JAVA.

          • 2. Re: Configuring run.sh with approp. java home
            nk83

            Thanks Wolf-Dieter..That's was helpful..

             

            Did you mean jboss/bin/run.conf? I did change the jboss/bin/run.conf and uncommented the #JAVA_HOME and se my java there and  it works properly for the application running on the jboss..

             

            The other app. works also with the default export JAVA_HOME..

             

            Thank you very much!