Help is available by sending an email to csf-support@mit.edu
Have any suggestion on how improve this wiki?  Please give us your feedback at csf-support@mit.edu

Quick Links to:

Whenever building with Maven in Eclipse on the MAC, I get an "Exception while executing SCM command".

  • ERROR Exception while executing SCM command. Error while executing command. Error setting up environmental variables: Cannot run program "env": error=2, No such file or directory

ANSWER:  When Eclipse is launched from a shortcut or icon, it may not pick up the correct environment variables including the PATH so it does not look for env in the correct location (/usr/bin)

Work around: Launch Eclipse from the command line.

  1. Open terminal.
  2. Type: Path/To/Eclipse/eclipse –data /Path/To/Workspace/ (filling in the appropriate paths)

Whenever I try to build my application, I get a permGen error.

ANSWER:  More memory has to be allocated to Eclipse for the build.  Do the following:

  • From within Eclipse, open either the Package Explorer or Navigator view.
    1. Right click on the project that you are trying to build.
    2. From the newly displayed list, select either Run As or Debug As.
    3. From the newly displayed list, select Run Configurations... or Debug Configurations....
    4. In the popup Run Configuations panel, from the left hand pane, under Maven Build, select the configuration that you are using to build your application.
    5. In the right hand pane, select the JRE tab.
    6. In the right hand pane, under VM arguments, enter the following:
      -Xmx512m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=512m
      
    7. Your display should look similar to the following.



      When you are satisfied that everything is correct, click on the Apply button, then click on either the Run or Close button.

My build fails whenever MyEclipse tries to deploy my application to my OC4J application server.

ANSWER:

  • No labels