5 Replies Latest reply on Jan 10, 2012 12:35 PM by peterj

    Fail to start JBOSS AS 7 on win 7 with eclipse

    dudigl

      Hi,

       

      I Fail to start JBOSS AS 7 on win 7 with eclipse.

      I get the following Error: Could not find or load main class

        • 1. Re: Fail to start JBOSS AS 7 on win 7 with eclipse
          peterj

          Exactly how did you go about configuring JBoss AS within Eclipse?

           

          Exactly what kind of application project did you declare in Eclipse and now are you attempting to start it?

           

          Have you tried starting Jboss AS from the command line? You should ensure that that works before attempting to start it in Eclipse.

          • 2. Re: Fail to start JBOSS AS 7 on win 7 with eclipse
            dudigl

            In eclipse ->window->preferences->server->runtime environment  

            • I added JBOSS 7.02 by selecting it
            • then browsing the home folder
            • then defining the JDK 1.7 JRE folder as the java runtime
            • then selectingthe standalone.xml as configuration

             

            In the server view ->new server

            • I defined new server -> JBOSS 7.0
            • Server hostname -> localhost
            • selecting the predefined 7.0 server runtime

             

            After creating the server entry I tried to start it and received the above mesage.

             

            My computer is running on win 7 64bit

            I tried to extract the JBOSS folder both on the program file folder and the x86 folder.

             

            I tried the same with JBOSS 6 and the result was the same.

             

            If there is any piece of information I forgot please let me know

             

            Thanks

            • 3. Re: Fail to start JBOSS AS 7 on win 7 with eclipse
              peterj

              >>I tried to extract the JBOSS folder both on the program file folder and the x86 folder.

              Spaces in the path can cause all kinds of problems. Try moving JBoss AS to someplace else, I have mine at C:/opt/jboss/work/jboss-as-web-7.0.2.Final.

              • 4. Re: Fail to start JBOSS AS 7 on win 7 with eclipse
                dudigl

                Workes!!  I wouldn't belive it if I hadn't see it myself.

                I moved the folder to C:\  thats it.

                 

                Thanks very much Peter.

                • 5. Re: Fail to start JBOSS AS 7 on win 7 with eclipse
                  peterj

                  Glad its working. Please mark the question as answered.