9 Replies Latest reply on May 25, 2003 1:36 PM by gwichman

    HOWTO install on linux?

    gwichman

      OK getting frustrated.. the binary packages don't say for what platform they're for. Unzipping them doesn't make it entirely clear either but i'm assuming NT. So whats it take to install jboss on linux? compile from source or can i get a pre packaged with tomcat package? Appreciate any guidance/references on how to install and start jboss on linux. The getting started guide is useless.

        • 1. Re: HOWTO install on linux?
          pgmjsd

          I agree that the "getting started guide" could use some work.

          Since JBoss is 100% Java, you can simply unpack the distribution files onto your Linux box. The distribution contains '.bat' files for Windows and '.sh' files for UN*X / Linux. I've copied my files from Windows directly onto Solaris and it worked fine.

          Hope this helps!

          Josh

          • 2. Re: HOWTO install on linux?

            unzip and run, its java

            • 3. Re: HOWTO install on linux?
              prabhakar

              The same bundle works on both linux and doze. Just download the latest release zip file. If on linux, to start JB do this:
              jboss_dir/bin/run.sh -c all

              -prabhakar

              • 4. Re: HOWTO install on linux?
                gwichman

                I take it i need to download a JRE?

                [root@localhost bin]# ./run.sh
                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: /root/jboss-3.2.1

                JAVA: java

                JAVA_OPTS: -Dprogram.name=run.sh

                CLASSPATH: /root/jboss-3.2.1/bin/run.jar:/lib/tools.jar

                ================================================================================

                ./run.sh: line 185: java: command not found
                [root@localhost bin]# java
                -bash: java: command not found
                [root@localhost bin]# find / -name java
                /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/gnu/java
                /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/java
                /usr/share/doc/db4-devel-4.0.14/ref/java
                /usr/share/java

                • 5. Re: HOWTO install on linux?
                  gwichman

                  [root@localhost bin]# ./run.sh
                  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: /root/jboss-3.2.1

                  JAVA: java

                  JAVA_OPTS: -Dprogram.name=run.sh

                  CLASSPATH: /root/jboss-3.2.1/bin/run.jar:/lib/tools.jar

                  ================================================================================

                  ./run.sh: line 185: java: command not found
                  [root@localhost bin]# java
                  -bash: java: command not found
                  [root@localhost bin]# find / -name java
                  /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/gnu/java
                  /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/java
                  /usr/share/doc/db4-devel-4.0.14/ref/java
                  /usr/share/java

                  • 6. Re: HOWTO install on linux?
                    jonlee

                    You'll need to install a Java JDK - if you are running JBossweb (either an embedded Tomcat or Jetty web application server), it will need a JDK to compile JSPs.

                    The tools.jar is normally in the Java JDK's lib directory. So if you installed your Sun JDK in /usr/local/j2sdk1.4.1_02. The tools.jar path would be /usr/local/j2sdk1.4.1_02/lib/tools.jar.

                    You should define in your environment the JAVA_HOME environment variable, which points to the root directory of your Java distribution. In this example, it would be:
                    JAVA_HOME=/usr/local/j2sdk1.4.1_02

                    This will fix the JAVA reference and the CLASSPATH reference. At the moment, JAVA_HOME is not set which results in JAVA=java and CLASSPATH being root/jboss-3.2.1/bin/run.jar:/lib/tools.jar

                    You should actually have reported by the JBoss run script:
                    JAVA=/usr/local/j2sdk1.4.1_02/bin/java
                    CLASSPATH=/root/jboss-3.2.1/bin/run.jar:/usr/local/j2sdk1.4.1_02/lib/tools.jar

                    Adjust all this to match where you have installed your JDK.

                    Hope that helps.

                    • 7. Re: HOWTO install on linux?

                      > I take it i need to download a JRE?

                      you need to install the full JDK to get the tools.jar (compiler classes), they're needed to compile JSP pages.

                      • 8. Re: HOWTO install on linux?
                        gwichman

                        still doesnt seem to work..
                        [root@localhost bin]# echo $JAVA_HOME
                        /usr/java/j2sdk1.4.1_02/
                        [root@localhost bin]# ./run.sh
                        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: /root/jboss-3.2.1

                        JAVA: java

                        JAVA_OPTS: -Dprogram.name=run.sh

                        CLASSPATH: /root/jboss-3.2.1/bin/run.jar:/lib/tools.jar

                        ================================================================================

                        ./run.sh: line 185: java: command not found
                        [root@localhost bin]# ls /usr/java/j2sdk1.4.1_02/
                        bin COPYRIGHT demo include jre lib LICENSE man README README.html src.zip
                        [root@localhost bin]# ls /usr/java/j2sdk1.4.1_02/bin/
                        appletviewer idlj javac java-rmi.cgi klist policytool serialver
                        ControlPanel jar javadoc jdb ktab rmic servertool
                        extcheck jarsigner javah keytool native2ascii rmid tnameserv
                        HtmlConverter java javap kinit orbd rmiregistry

                        • 9. Re: HOWTO install on linux?
                          gwichman

                          nevermind got it to run by playing with run.sh for a bit.. turns out my JAVA_HOME was set to nothing when the script was run because i didnt export the variable and thus it wasn't set when run.sh forked presumably under a new shell