Updating Source Folders adds JRE System Library properly but packages
are not created - I receive an error message as follows:
09.03.07 10:13:12 CET: compiler:compile
09.03.07 10:13:12 CET: ERROR mojo-execute : compiler:compile :
Compilation failure
Unable to locate the Javac Compiler in:
E:\java\jre\..\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.
09.03.07 10:13:12 CET: ERROR project-execute :
repository.server:Server:jar:1-0-0-SNAPSHOT ( task-segment:
[process-test-resources] ) : Compilation failure
Unable to locate the Javac Compiler in:
E:\java\jre\..\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.
09.03.07 10:13:12 CET: ERROR reactor-execute :
E:\eclipse\eclipse_workspaces\workspace1\Server : Compilation failure
Unable to locate the Javac Compiler in:
E:\java\jre\..\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.
09.03.07 10:13:13 CET: ERROR reactor-execute :
E:\eclipse\eclipse_workspaces\workspace1\Server
09.03.07 10:13:13 CET: Build error for /Server/pom.xml;
org.apache.maven.reactor.MavenExecutionException: Some builds failed
09.03.07 10:13:13 CET: Updated source folders for project Server 6sec
my JAVA_HOME leads to e:/java/jdk directory, where JDK is installed -
I'm using JDK 1.5.0_10, in path mentioned in error logs I have installed
JRE but none of system paths leads into this directory, I am also using
JRE from JDK in Eclipse placed in e:/java/jdk
Eugene Kuleshov wrote:
Have you tried to run Update Source Folders? Or just manually fix
your source folders in JDT buildpath settings.
Marcin Nowak wrote:
Hi,
Is there a possibility to use own-defined project structure as shown
below?
<build>
<sourceDirectory>src</sourceDirectory>
<scriptSourceDirectory>scripts</scriptSourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<directory>bin</directory>
<outputDirectory>bin/classes</outputDirectory>
<testOutputDirectory>bin/test-classes</testOutputDirectory>
<finalName>${artifactId}</finalName>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<outputDirectory>releases/${version}</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
at this moment enabling m2eclipse plug-in in project containing those
lines causes in a flat project structure with all project directories
interpreted as packages and without JRE Standard Library added to
build path, importing project using maven2 import causes in error
logged as shown:
08.03.07 09:08:36 CET: Unable to create project
repository.client:Client:jar:1-0-0-SNAPSHOT;
org.eclipse.core.internal.resources.ResourceException: Invalid
project description.
BR,
Marcin Nowak
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email