You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alapiessa Petri <Pe...@profitsoftware.com> on 2012/05/21 12:56:23 UTC

Tutorials samples build failure: javac: invalid flag: -s

Hello, 
I have downloaded sample nro 2 but build fails.

http://code.google.com/p/struts2-examples/downloads/detail?name=Hello_World_Struts_2_Maven_2_3_1_2.zip&can=2&q=

[INFO] Compiling 2 source files to /home/petri/Documents/learning/struts/samples/Hello_World_Struts2_Mvn/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error:
javac: invalid flag: -s
Usage: javac <options> <source files>

Can you polease help? Thank you very much.

Ystävällisin terveisin,
With best wishes,

Petri Alapiessa
Software Developer
Profit Software Ltd

petri.alapiessa@profitsoftware.com<ma...@profitsoftware.com>

www.profitsoftware.com<http://www.profitsoftware.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tutorials samples build failure: javac: invalid flag: -s

Posted by Łukasz Lenart <lu...@googlemail.com>.
2012/5/22 Alapiessa Petri <Pe...@profitsoftware.com>:
> Thnaks for your reply!
> I tried with jvm 1.5.22 and 1.6 and OS OS linux.
> The first sample built ok, it had no java classes, just jsp and struts. This Hello world has two java classes that seem to be problematic to build.
> I'll try to check maven settings

One more thing, Maven version ? You must use Maven 3 at least.


Pozdrawiam
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Tutorials samples build failure: javac: invalid flag: -s

Posted by Alapiessa Petri <Pe...@profitsoftware.com>.
Thnaks for your reply!
I tried with jvm 1.5.22 and 1.6 and OS OS linux.
The first sample built ok, it had no java classes, just jsp and struts. This Hello world has two java classes that seem to be problematic to build.
I'll try to check maven settings

Petri

-----Original Message-----
From: Łukasz Lenart [mailto:lukasz.lenart@googlemail.com] 
Sent: 21. toukokuuta 2012 14:02
To: Struts Users Mailing List
Subject: Re: Tutorials samples build failure: javac: invalid flag: -s

Just tried the same and it works smoothly ...

Java version ? OS ? Try with sample non-web neither non-struts2 maven app, looks like your local Maven settings are broken....


Regards
--
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/

2012/5/21 Alapiessa Petri <Pe...@profitsoftware.com>:
> Hello,
> I have downloaded sample nro 2 but build fails.
>
> http://code.google.com/p/struts2-examples/downloads/detail?name=Hello_
> World_Struts_2_Maven_2_3_1_2.zip&can=2&q=
>
> [INFO] Compiling 2 source files to 
> /home/petri/Documents/learning/struts/samples/Hello_World_Struts2_Mvn/
> target/classes [INFO] 
> -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] Failure executing javac, but could not parse the error:
> javac: invalid flag: -s
> Usage: javac <options> <source files>
>
> Can you polease help? Thank you very much.
>
> Ystävällisin terveisin,
> With best wishes,
>
> Petri Alapiessa
> Software Developer
> Profit Software Ltd
>
> petri.alapiessa@profitsoftware.com<mailto:petri.alapiessa@profitsoftwa
> re.com>
>
> www.profitsoftware.com<http://www.profitsoftware.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tutorials samples build failure: javac: invalid flag: -s

Posted by Łukasz Lenart <lu...@googlemail.com>.
Just tried the same and it works smoothly ...

Java version ? OS ? Try with sample non-web neither non-struts2 maven
app, looks like your local Maven settings are broken....


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

2012/5/21 Alapiessa Petri <Pe...@profitsoftware.com>:
> Hello,
> I have downloaded sample nro 2 but build fails.
>
> http://code.google.com/p/struts2-examples/downloads/detail?name=Hello_World_Struts_2_Maven_2_3_1_2.zip&can=2&q=
>
> [INFO] Compiling 2 source files to /home/petri/Documents/learning/struts/samples/Hello_World_Struts2_Mvn/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] Failure executing javac, but could not parse the error:
> javac: invalid flag: -s
> Usage: javac <options> <source files>
>
> Can you polease help? Thank you very much.
>
> Ystävällisin terveisin,
> With best wishes,
>
> Petri Alapiessa
> Software Developer
> Profit Software Ltd
>
> petri.alapiessa@profitsoftware.com<ma...@profitsoftware.com>
>
> www.profitsoftware.com<http://www.profitsoftware.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org