Hi!

In addition to my previous email, after the error when I selected
Maven2->Update Source Folders, the src folders in my package explorer
are dissapeared.

Package explorer before update source folders:

  my-app
    +-src/main/java
    +-src/text/java
    +-JRE System Library [jdk1.5.0_11]
    +-Maven2 Dependencies
    +-src
    +-target
    +-pom.xml

Package explorer after update source folders:

  my-app
    +-JRE System Library [jdk1.5.0_11]
    +-Maven2 Dependencies
    +-src
    +-target
    +-pom.xml


Hope this is useful!


On 6/18/07, hezjing <[EMAIL PROTECTED]> wrote:
Hi!

OK, you may ignore my previous my previoius emails and I have
re-installed Eclipse and the plugins to simulate the same problem.

The following are the steps I performed:

1) JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11

2) Download Eclipse Java EE project bundle
(J2EE-SDK-Callisto-322-win32.zip) from
  http://www.ibm.com/developerworks/eclipse/downloads/

3) Search and install all updates of the currently installed features

4) In Eclipse, goto Window->Preferences...->Java-Installed JREs
  Add a new JRE (JRE home directory: C:\Program Files\Java\jdk1.5.0_11)
  Remove the existing JRE (C:\Program Files\Java\jre1.5.0_11)

5) In Eclipse, install the latest Maven Integration for Eclipse (0.0.10) from
  http://m2eclipse.codehaus.org/update/

6) Restart Eclipse

7) In Windows, create a project
  > mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
  > mvn package

8) In Eclipse, create my-app project from existing source.
  There will be errors because JUnit dependencies are missing!

9) Right-click my-app, and select Maven2->Enable.

  6/18/07 2:24:29 PM SGT: Reading /my-app/pom.xml
  6/18/07 2:24:29 PM SGT: Updated model /my-app/pom.xml :
com.mycompany.app:my-app:1.0-SNAPSHOT
  6/18/07 2:24:29 PM SGT: Reading /my-app/pom.xml


10) Right-click my-app, and select Maven2->Update Source Folders

   6/18/07 2:26:20 PM SGT: Reading /my-app/pom.xml
   6/18/07 2:26:20 PM SGT: Generating sources /my-app/pom.xml
   6/18/07 2:26:20 PM SGT: [INFO] Scanning for projects...
   6/18/07 2:26:20 PM SGT: [INFO] --------------------------------------------
   6/18/07 2:26:20 PM SGT: [INFO] Building my-app
   6/18/07 2:26:20 PM SGT: [INFO]    task-segment: [process-test-resources]
   6/18/07 2:26:20 PM SGT: [INFO] --------------------------------------------
   6/18/07 2:26:21 PM SGT: resources:resources
   6/18/07 2:26:21 PM SGT: [INFO] Using default encoding to copy
filtered resources.
   6/18/07 2:26:21 PM SGT: compiler:compile
   6/18/07 2:26:21 PM SGT: [INFO] Compiling 1 source file to
C:\Documents and Settings\tjhoo\Desktop\my-app\target\classes
   6/18/07 2:26:21 PM SGT: ERROR mojo-execute : compiler:compile :
Compilation failure
   Unable to locate the Javac Compiler in:
     C:\Program Files\Java\jre1.5.0_11\..\lib\tools.jar
   Please ensure you are using JDK 1.4 or above and
   not a JRE (the com.sun.tools.javac.Main class is required).
   In most cases you can change the location of your Java
   installation by setting the JAVA_HOME environment variable.


Is there anything I have overlook?


On 6/16/07, hezjing <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I got this error when right click my Maven2 enabled project and select
>  Maven2->Update Source Folders:
>
> 6/16/07 10:53:27 PM SGT: ERROR mojo-execute : compiler:compile :
> Compilation failure
> Unable to locate the Javac Compiler in:
>  C:\Program Files\Java\jre1.5.0_12\..\lib\tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
>
> In Eclipse->Windows->Preferences...->Java->Installed JREs, I have only
> one entry with JRE home directory pointing to C:\Program
> Files\Java\jdk1.5.0_12
>
> my JAVA_HOME is C:\Program Files\Java\jdk1.5.0_12
>
> and the eclipse.ini contains
> -vm "C:\Program Files\Java\jdk1.5.0_12\bin\java.exe" -vmargs -Xms40m -Xmx256m
>
>
> May I know what could be the problem?
>
>
> --
>
> Hez
>


--

Hez



--

Hez

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to