Re: exec:java problem

2009-07-31 Thread ykyuen


ykyuen wrote:
 
 oh sorry, i have made a mistake, the sample works fine. the failure was
 caused by the firewall of my network. 
 
 sorry for the misleading:-((
 

The solution is to add the proxy in the YahooRetriever.java

System.getProperties().put(proxySet, true);
System.getProperties().put(proxyPort, port);
System.getProperties().put(proxyHost, proxy_host);

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24752138.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-19 Thread ykyuen


Tim O'Brien wrote:
 
 Alright, time to update this example to use a gov't feed from the US NWS.
 
 Thanks for letting me know.
 
oh sorry, i have made a mistake, the sample works fine. the failure was
caused by the firewall of my network. 

sorry for the misleading:-((
-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24555373.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-15 Thread ykyuen

it works in windows now.
the problem is previously, i created the maven project directly in eclipse
by the m2eclipse plugin and the project is located in the workspace.

then i try to create the project in the maven repository by the mvn
archetype:create and them import the project to the eclipse. it works fine
now.

but i can only retrieve the weather info once.
http://xml.weather.yahoo.com/ns/rss/1.0 doesn't work now...

anyway, the program works.

thanks very much for your help. =)

Regards,
kit



dchicks wrote:
 
 Did you check to make sure that the class was in the target/classes
 directory?
 
 The UTF-8 encoding is normal on Linux.  That's the default encoding when
 one is not specified.
 
 
 
 ykyuen wrote:
 Hi all,

 i just did the same thing in Linux environemt. the program can be
 executed
 without any problem.
 same warning appear at mvn install but this time the encoding is UTF-8.

 what makes the execution failure in windows env?

 Thanks.

 Regards,
 Kit
   
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24492726.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-15 Thread Tim O'Brien
On Wed, Jul 15, 2009 at 1:42 AM, ykyuenyingkity...@gmail.com wrote:

 it works in windows now.
 the problem is previously, i created the maven project directly in eclipse
 by the m2eclipse plugin and the project is located in the workspace.

 then i try to create the project in the maven repository by the mvn
 archetype:create and them import the project to the eclipse. it works fine
 now.

 but i can only retrieve the weather info once.
 http://xml.weather.yahoo.com/ns/rss/1.0 doesn't work now...

Alright, time to update this example to use a gov't feed from the US NWS.

Thanks for letting me know.



 anyway, the program works.

 thanks very much for your help. =)

 Regards,
 kit



 dchicks wrote:

 Did you check to make sure that the class was in the target/classes
 directory?

 The UTF-8 encoding is normal on Linux.  That's the default encoding when
 one is not specified.



 ykyuen wrote:
 Hi all,

 i just did the same thing in Linux environemt. the program can be
 executed
 without any problem.
 same warning appear at mvn install but this time the encoding is UTF-8.

 what makes the execution failure in windows env?

 Thanks.

 Regards,
 Kit


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --
 View this message in context: 
 http://www.nabble.com/exec%3Ajava-problem-tp24491018p24492726.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-15 Thread ykyuen


Tim O'Brien wrote:
 
 Alright, time to update this example to use a gov't feed from the US NWS.
 
 Thanks for letting me know.
 

u are welcome~~
that's my pleasure =P

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24499961.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



exec:java problem

2009-07-14 Thread ykyuen

Hi all,

i am new to maven2. i got some problem when i tried to follow the sample
program of the book Maven: The Definitive Guide
http://www.sonatype.com/books/maven-book/reference/customizing-sect-custom-exec.html

i can sucessfully build the the program by the mvn install command
http://www.codetter.com/snippets/l

but when i run the mvn exec:java
-Dexec.mainClass=org.sonatype.mavenbook.weather.Main, there is an exception
http://www.codetter.com/snippets/n

i have no idea about that exception. and does it related to the warning in
mvn:install about the MS950 encoding?

Thanks very much for your help.

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24491018.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-14 Thread ykyuen

Hi all,

i just did the same thing in Linux environemt. the program can be executed
without any problem.
same warning appear at mvn install but this time the encoding is UTF-8.

what makes the execution failure in windows env?

Thanks.

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24491604.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-14 Thread David C. Hicks
The warning you get is fairly standard.  It happens when you don't
declare the character set encoding that you want to use for the copying
of resources.  This probably has nothing to do with your error.

The error is indicating that the class
org.sonatype.mavenbook.weather.Main does not exist.  Check the
target/classes directory under the project and see if that class
exists there.  If not, then something either went wrong with the build
or you managed to delete your binary classes before running the code.



ykyuen wrote:
 Hi all,

 i am new to maven2. i got some problem when i tried to follow the sample
 program of the book Maven: The Definitive Guide
 http://www.sonatype.com/books/maven-book/reference/customizing-sect-custom-exec.html

 i can sucessfully build the the program by the mvn install command
 http://www.codetter.com/snippets/l

 but when i run the mvn exec:java
 -Dexec.mainClass=org.sonatype.mavenbook.weather.Main, there is an exception
 http://www.codetter.com/snippets/n

 i have no idea about that exception. and does it related to the warning in
 mvn:install about the MS950 encoding?

 Thanks very much for your help.

 Regards,
 Kit
   

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: exec:java problem

2009-07-14 Thread David C. Hicks
Did you check to make sure that the class was in the target/classes
directory?

The UTF-8 encoding is normal on Linux.  That's the default encoding when
one is not specified.



ykyuen wrote:
 Hi all,

 i just did the same thing in Linux environemt. the program can be executed
 without any problem.
 same warning appear at mvn install but this time the encoding is UTF-8.

 what makes the execution failure in windows env?

 Thanks.

 Regards,
 Kit
   

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org