Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Panel

Quick Links to:

Table of Contents
minLevel3
Panel

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)
Panel

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 MyEclipseEclipse, 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 or Debug Configurations window panel, from the left hand panelpane, under Maven Build, select the configuration that you are using to build your application.
    5. In the right hand panelpane, select the JRE tab.
    6. In the right hand panelpane, under VM arguments, enter the following:
      Code Block
      -Xmx512m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=512m
      
    7. Your display should look similar to the following.

      Image Modified

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

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

ANSWER: