Quantcast

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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Alapiessa Petri
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

[hidden email]<mailto:[hidden email]>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Łukasz Lenart
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 <[hidden email]>:

> 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
>
> [hidden email]<mailto:[hidden email]>
>
> www.profitsoftware.com<http://www.profitsoftware.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Alapiessa Petri
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:[hidden email]]
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 <[hidden email]>:

> 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
>
> [hidden email]<mailto:petri.alapiessa@profitsoftwa
> re.com>
>
> www.profitsoftware.com<http://www.profitsoftware.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

Łukasz Lenart
2012/5/22 Alapiessa Petri <[hidden email]>:
> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...