8 Replies Latest reply on Dec 10, 2008 1:49 PM by gorathek

    Error during running JEMS Installer

    gorathek

      Hi!

      When i try to use a jems installer version 1.2.0.GA on RH 4 update 4 ES with JDK 1.4.2._19 installed i got a error as show below:

      [root@localhost tmp]# java -jar jems-installer-1.2.0.GA.jar
      Warning: -jar not understood. Ignoring.
      Exception in thread "main" java.lang.NoClassDefFoundError: jems-installer-1.2.0.GA.jar
      at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
      at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
      at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
      at __gcj_personality_v0 (/tmp/java.version=1.4.2)
      at __libc_start_main (/lib/tls/libc-2.3.4.so)
      at _Jv_RegisterClasses (/tmp/java.version=1.4.2)

      Can someone tell me what does it means and how to solve it?

      Regards

      Marcin

        • 1. Re: Error during running JEMS Installer
          jaikiran

          Please post the output of

          java -version


          Also, i would not recommend using the JEMS installer since there have been many issues reported in it. The easiest way to install JBossAS is to download the zip file and unzip it to a locaiton of your choice.

          • 2. Re: Error during running JEMS Installer
            gorathek

            Hi !

            Below is a output from java -version from my host:

            [root@localhost ~]# java -version
            java version "1.4.2"
            gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
            Copyright (C) 2006 Free Software Foundation, Inc.
            This is free software; see the source for copying conditions. There is NO
            warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


            And i was using sucesfully JEMS Installer on Windows env so i am confused why it thoesn`t work on Linux.

            Regards

            Marcin

            • 3. Re: Error during running JEMS Installer
              jaikiran

               

              java version "1.4.2"
              gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
              Copyright (C) 2006 Free Software Foundation, Inc.
              This is free software; see the source for copying conditions. There is NO
              warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


              You are using the gcj Java vendor. Please download Sun Java and set JAVA_HOME to point to the Sun Java JDK. That should fix the issue.

              • 4. Re: Error during running JEMS Installer
                gorathek

                The strange thing is that i dowloaded it form SUN page :)
                And you maybe know some way how to remove that installed thing?
                And a correct link to JDK?

                • 5. Re: Error during running JEMS Installer
                  jaikiran

                  In that case, i guess your JAVA_HOME points to the incorrect JDK installation or even the PATH might be pointing to the incorrect JDK. Post the output of

                  echo $JAVA_HOME


                  and

                  echo $PATH


                  To set it correctly, here's what you can do (assuming your Sun JDK is installed at /opt/Java/jdk1.5.0_17/):

                  export JAVA_HOME=/opt/Java/jdk1.5.0_17/
                  export PATH=$JAVA_HOME/bin:$PATH




                  • 6. Re: Error during running JEMS Installer
                    gorathek

                    [root@localhost j2sdk1.4.2_19]# echo $JAVA_HOME
                    /usr/java/j2sdk1.4.2_19/
                    [root@localhost j2sdk1.4.2_19]# echo $PATH
                    /usr/java/j2sdk1.4.2_19//bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.4.2_19/bin
                    [root@localhost j2sdk1.4.2_19]#

                    • 7. Re: Error during running JEMS Installer
                      jaikiran

                       

                      [root@localhost j2sdk1.4.2_19]# echo $PATH
                      /usr/java/j2sdk1.4.2_19//bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.4.2_19/bin

                      You have problem in the path. Note the double // in /usr/java/j2sdk1.4.2_19//bin? It should just be /usr/java/j2sdk1.4.2_19/bin.

                      And reading my earlier post again, i realize that i was the one who posted the incorrect commands :-)

                      So here's the corrected version:


                      export JAVA_HOME=/opt/Java/jdk1.5.0_17
                      export PATH=$JAVA_HOME/bin:$PATH
                      


                      • 8. Re: Error during running JEMS Installer
                        gorathek

                        Thanks it helps :)

                        Regards

                        Marcin