14 Replies Latest reply on Mar 28, 2009 2:45 PM by taysay

    HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE

    taysay

      Hello All,
        Good day,Pls can any one tell how to run seam gen from may mac os x command line,I mean allowing permission in seam file and all that.
      I appreciate your concerns.


      Have a wonderful day
      Taysay

        • 1. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE

          chmod 775 seam

          • 2. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
            taysay

            Hi Siarhei Dudzin, and the whole house


            Thank you so very much for your sppedy reply.
            just that I had used


            chmod 755 seam
            which gave me
            -rwxr-xr-x@



            then chmod 775 seam
            gave me
            -rwxrwxr-x@ 


            and some other flags which gave me various outputs


            but on the overall i couldnt go beyound


            taysay-shaguys-macbook:jboss-seam-2.1.1.GA taysayshaguy$ seam
            -bash: seam: command not found



            pls can you help me out.


            Pls i also want to know if you run seam mac os x


            Thank you have a wonderful day



            • 3. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
              malex

              Give ./seam a try...


              • 4. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                taysay

                @Marcus Spiegel


                Howdy, Thanks that ./seam setup moved me closer to the solution, just that it complains of my


                    The JAVAHOME environment variable is not set
                    echo Please point it to a JDK installation


                Please can u help me out I am new on mac os x , i will pls need a brief on setting environment variables and class path . I will appreciate your invaluable assistance as usual.


                Thank you so very much,
                Pls do you develop on your mac os x?


                Have a wonderful day.




                • 5. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                  malex
                  In my case, I edited ~/.bash_profile (thus, in my home directory. You can create it simply, if it not exists), where you can define the JAVA_HOME like this:

                  export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"

                  (or where you have your JDK installed. In my case I also have Soylatte installed
                  under /usr/local/ and export JAVA_HOME as "/usr/local/soylatte")

                  Alternatively you can edit ~/.bashrc (.bashrc is read on every opening of a shell and .bash_profile only once at login). If you want to export JAVA_HOME for all users you must edit /etc/profile.

                  Remark: OSX is a little special in the handling of environment variables (comparing to linux for example). As far as I know, environment variables for GUI applications must be set in ~.MacOSX/environment.plist.

                  • 6. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                    taysay

                    @Marcus Spiegel



                    Howdy, Just to especially appreciate you, It worked for me.
                    My Current JDK is 1.5.0.16 (sorry i used .16 instead of under score) I will like to upgrade to 1.6 which  is available in my /System/Library/Frameworks/JavaVM.framework/Versions directory . I really want to enjoy some new java 6 features which I run on my windows machine remember java 7 is knocking hard on our doors. So whats your advice. thank you so very much have a wonderful day.



                    Taysay

                    • 7. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                      malex

                      I have both running, soylatte and the official 64bit release. Although I am mostly working currently with soylatte, I would think that the Apple JDK would be a good starting point (but both live fine side by side)


                      • 8. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                        taysay

                        Howdy,
                        Thank you so very much for the support
                        So which do you think i should take, The issue is that
                        I really dont know how to check to know if my macbook is a 34 bit or 64 bit
                        this is my system info




                          Model Name:     MacBook
                          Model Identifier:     MacBook4,1
                          Processor Name:     Intel Core 2 Duo
                          Processor Speed:     2.4 GHz
                          Number Of Processors:     1
                          Total Number Of Cores:     2
                          L2 Cache:     3 MB
                          Memory:     2 GB
                          Bus Speed:     800 MHz
                          Boot ROM Version:     MB41.00C1.B00
                          SMC Version:     1.31f0
                          Serial Number:     W88335560P2
                          Sudden Motion Sensor:
                          State:     Enabled


                        thank you so very sorry for the trouble


                        • 9. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                          david.salter

                          If you've got a Core 2 Duo, you've got a 64-bit machine.


                          I'd recommend using the JDK that comes bundled with MacOS X if you are learning Seam.

                          • 10. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                            taysay

                            @David Salter,


                            Howdy Thank you so very much,I have another machine where I run my windows stuff on its a centrino duo and all dat but a 32 bit, Pls How is this grading done?


                            • 11. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                              jonathanbailey
                              Here is a very simple, six step process for setting up Seam on any *NIX machine.  This will also enable seam-gen command completion in your bash shell:

                              $tar zxfv  jboss-seam-2.1.1.CR1.tar.gz

                              $mv  jboss-seam-2.1.1.CR1 /usr/local/

                              $ln -s /usr/local/jboss-seam-2.1.1.CR1 /usr/local/seam

                              $export PATH=$PATH:/usr/local/seam

                              $chmod a+x /usr/local/seam/seam

                              Note: If you want autocompletion for your seam command line tools run the following:

                              $ cat /usr/local/seam/seam-gen/contrib/seam-completion >> ~/.bash_profile && source ~/.bash_profile

                              Now if you type "seam [hit tab twice]" you will see that auto-completion is enable for the secondary part of your seam-gen command.
                              • 12. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                                taysay

                                @Jonathan Bailey



                                this is really cool tanx plenty

                                • 13. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                                  taysay

                                  @Jonathan Bailey  and All in the House,


                                  Good day all pls when trying to start my jboss from the command line
                                  it starts then aborts with this error pls can anyone offer me help


                                  see error details below


                                  bin/run.sh: line 256: /System/Library/Frameworks/JavaVM.framework/Home#/bin/java: No such file or directory


                                  I know this is as a result of my classpath but then I am kind of new to mac os x so I just trying to be really careful trying out stuff in the shell.


                                  Thanx so very much for your invaluable assistance.

                                  • 14. Re: HOW TO RUN SEAM GEN FROM MAC OS X COMMAND LINE
                                    taysay

                                    Hi All,
                                    Pls does anyone have a clue towards the solution to this problem.


                                    Could not create the view: org/eclipse/wst/server/ui/internal/view/servers/ServerAction


                                    encountered while launching Eclipse on mac os x leopard.