4 Replies Latest reply on Aug 8, 2006 4:53 AM by Diego Pansica

    Total Newbie Needs Help

    cagri yilmaz Newbie

      I am a total newbie to JBOSS and trying to run it on my computer. I always get this message (below). I have just downloaded JDK (1.5.0_07) and run.conf is pointing to it as well. What do you think I am doing wrong. Please help.

      C:\PROGRA~1\JBOSS-~1.GA\bin>run
      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: C:\PROGRA~1\JBOSS-~1.GA\bin\\..
      .
      JAVA: java
      .
      JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcIn
      terval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      .
      CLASSPATH: C:\oracle\ora92\jdk\lib\tools.jar;C:\PROGRA~1\JBOSS-~1.GA\bin\\run.
      jar
      .
      ===============================================================================
      .
      Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jboss/Mai
      n (Unsupported major.minor version 48.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
      Press any key to continue . . .

        • 1. Re: Total Newbie Needs Help
          Diego Pansica Newbie

          It seems that it is trying to use tha jvm of your oracle distribution, take a look at the environment variable JAVA_HOME and modify to point to the jdk you downloaded.

          • 2. Re: Total Newbie Needs Help
            cagri yilmaz Newbie

            C:\Program Files\jboss-4.0.4.GA\bin>RUN
            ===============================================================================
            .
            JBoss Bootstrap Environment
            .
            JBOSS_HOME: C:\Program Files\jboss-4.0.4.GA\bin\\..
            .
            JAVA: java
            .
            JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcIn
            terval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
            .
            CLASSPATH: C:\Program Files\Java\jdk1.5.0_07\lib\tools.jar;C:\Program Files\jb
            oss-4.0.4.GA\bin\\run.jar
            .
            ===============================================================================
            .
            Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jboss/Mai
            n (Unsupported major.minor version 48.0)
            at java.lang.ClassLoader.defineClass0(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            Press any key to continue . . .



            Still the same problem:(

            • 3. Re: Total Newbie Needs Help
              VisolveGroup Novice

              Hello,

              Have a look at the JAVA variable in the your output log.

              It seems that, JBoss unable to find the java binary. Specify the correct path of java binary in the PATH variable or modify the JAVA variable in run.conf to point to the java binary.

              • 4. Re: Total Newbie Needs Help
                Diego Pansica Newbie

                I see the same problem,

                JBOSS_HOME: C:\Program Files\jboss-4.0.4.GA\bin\\..
                .
                JAVA: java
                .
                JAVA_OPTS: -Dprogr

                you have to set the JAVA_HOME variable to the correct path

                for example

                set JAVA_HOME=path to your jdk and then run