Tags: attempting, compile, error, flag, invalid, java, javac, jdk, msg, or1, programming, source
javac: invalid flag: -source
On Java Studio » Java Programming
7,932 words with 4 Comments; publish: Sun, 04 May 2008 19:45:00 GMT; (15062.50, « »)
1.5.x JDK. Error msg: "javac: invalid flag: -source". I've found
several references to this on mailing list, but no definitive solution
yet.
My current compiler config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
<fork>true</fork>
<verbose>true</verbose>
<includes>
</includes>
</configuration>
</plugin>
Any insight is much appreciated.
Marc Dugger
marc (AT) realtybaron (DOT) com
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
http://java-program.developerfaqs.com/q_java-programming_167702.html
All Comments
Leave a comment...
- 4 Comments

- Hi,
you write that you want to compile with a JDK 1.4.x or 1.5.x but in the
plugin configuration you give a path to a JDX 1.3.x.
A quick look at
does not
mention a '-source' option of the javac of JDK 1.3, hence the error.
-Tim
Marc Dugger schrieb:
I'm using m2 v2.0 and attempting to compile 1.3.1 source with a 1.4.x or
1.5.x JDK. Error msg: "javac: invalid flag: -source". I've found
several references to this on mailing list, but no definitive solution
yet.
My current compiler config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
<fork>true</fork>
<verbose>true</verbose>
<includes>
</includes>
</configuration>
</plugin>
Any insight is much appreciated.
Marc Dugger
marc (AT) realtybaron (DOT) com
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
#1; Sun, 04 May 2008 19:46:00 GMT

- I am executing M2 using 1.5.x, but attempting to fork a 1.3.1 process to
do the actual compile.
Quoting Tim Kettler <tim.kettler (AT) tk-ai (DOT) de>:
Hi,
you write that you want to compile with a JDK 1.4.x or 1.5.x but in
the
plugin configuration you give a path to a JDX 1.3.x.
A quick look at
does not
mention a '-source' option of the javac of JDK 1.3, hence the error.
-Tim
Marc Dugger schrieb:
I'm using m2 v2.0 and attempting to compile 1.3.1 source with a
1.4.x or
1.5.x JDK. Error msg: "javac: invalid flag: -source". I've found
several references to this on mailing list, but no definitive
solution
yet.
My current compiler config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
<fork>true</fork>
<verbose>true</verbose>
<includes>
</includes>
</configuration>
</plugin>
Any insight is much appreciated.
Marc Dugger
marc (AT) realtybaron (DOT) com
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
#2; Sun, 04 May 2008 19:47:00 GMT

- Does:
<compilerVersion>1.3</compilerVersion>
help?
- Brett
12/22/05, Marc Dugger <marc (AT) realtybaron (DOT) comwrote:
I am executing M2 using 1.5.x, but attempting to fork a 1.3.1 process to
do the actual compile.
--
Quoting Tim Kettler <tim.kettler (AT) tk-ai (DOT) de>:
Hi,
you write that you want to compile with a JDK 1.4.x or 1.5.x but in
the
plugin configuration you give a path to a JDX 1.3.x.
A quick look at
does not
mention a '-source' option of the javac of JDK 1.3, hence the error.
-Tim
Marc Dugger schrieb:
I'm using m2 v2.0 and attempting to compile 1.3.1 source with a
1.4.x or
1.5.x JDK. Error msg: "javac: invalid flag: -source". I've found
several references to this on mailing list, but no definitive
solution
yet.
My current compiler config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
<fork>true</fork>
<verbose>true</verbose>
<includes>
</includes>
</configuration>
</plugin>
Any insight is much appreciated.
Marc Dugger
marc (AT) realtybaron (DOT) com
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
--
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
#3; Sun, 04 May 2008 19:48:00 GMT

- Yes, it did :)
My resulting compiler config:
<configuration>
<verbose>true</verbose>
<fork>true</fork>
<executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
<compilerVersion>1.3</compilerVersion>
<includes>
</includes>
</configuration>
Thanks!
Marc Dugger
marc (AT) realtybaron (DOT) com
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
Quoting Brett Porter <brett.porter (AT) gmail (DOT) com>:
Does:
<compilerVersion>1.3</compilerVersion>
help?
- Brett
12/22/05, Marc Dugger <marc (AT) realtybaron (DOT) comwrote:
I am executing M2 using 1.5.x, but attempting to fork a 1.3.1
process to
do the actual compile.
--
Quoting Tim Kettler <tim.kettler (AT) tk-ai (DOT) de>:
Hi,
you write that you want to compile with a JDK 1.4.x or 1.5.x but
in
the
plugin configuration you give a path to a JDX 1.3.x.
A quick look at
does
not
mention a '-source' option of the javac of JDK 1.3, hence the
error.
-Tim
Marc Dugger schrieb:
I'm using m2 v2.0 and attempting to compile 1.3.1 source with
a
1.4.x or
1.5.x JDK. Error msg: "javac: invalid flag: -source". I've
found
several references to this on mailing list, but no definitive
solution
yet.
My current compiler config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<executable>C:\Java\jdk1.3.1_15\bin\javac</executable>
<fork>true</fork>
<verbose>true</verbose>
<includes>
</includes>
</configuration>
</plugin>
Any insight is much appreciated.
Marc Dugger
marc (AT) realtybaron (DOT) com
6% real estate sales commission? Not likely.
Learn why at http://tinyurl.com/dvkbu
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
#4; Sun, 04 May 2008 19:49:00 GMT