6 Replies Latest reply on Aug 24, 2002 6:21 AM by juha

    JBOSS PROBLEM...!

    dix18

      I use jboss3, on UNIX server with j2sdk1.4.0, apache and tomcat.
      when i try to launch "run.sh" occur this error message:

      "Can't find class org.jboss.Main"

      what can it be?!?

      PLEASE HELP ME!!!

      thanks.

        • 1. Re: JBOSS PROBLEM...!

          Can you post the full output?

          In particular the classpath.

          Regards,
          Adrian

          • 2. Re: JBOSS PROBLEM...!
            dix18

            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: /usr/home/defcom96/usr/local/JBOSS_DIST

            JAVA: java

            JAVA_OPTS: -Dprogram.name=run.sh

            CLASSPATH: /usr/home/defcom96/usr/local/JBOSS_DIST/bin/run.jar:/lib/tools.jar

            comando:
            java -Dprogram.name=run.sh -classpath /usr/home/defcom96/usr/local/JBOSS_DIST/bin/run.jar:/lib/tools.jar org.jboss.Main

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

            Can't find class org.jboss.Main

            • 3. Re: JBOSS PROBLEM...!

              Looks like your environment variable JAVA_HOME
              isn't set correctly.

              Does
              jar -tf /usr/home/defcom96/usr/local/JBOSS_DIST/bin/run.jar
              | grep Main

              show the missing class?

              Regards,
              Adrian

              • 4. Re: JBOSS PROBLEM...!
                dix18

                I've checked JAVA_HOME path... it's right!

                How can i do?!?

                • 5. Re: JBOSS PROBLEM...!
                  dix18

                  YESSSS!!!

                  done.

                  work correctly!

                  a last question: i lost my environment variables when i disconnect the telnet session on my server.... how can i make this variables permanently?

                  thanks for all.
                  DIX.

                  • 6. Re: JBOSS PROBLEM...!

                    depends on the shell you're using, there should be a file that is executed when you login, such as .login or .cshrc etc where you can export system variables, append PATH etc.