Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] groovy-interpreter ignores jar-file ?

PrivatT2

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply
Hallo,
 
my code running under windows:
 
import org.apache.log4j.*
public class MyApp {
 static Logger logger = Logger.getLogger('MyApp.class')
 public static void main(String[] args) {
     BasicConfigurator.configure()
     logger.info("Entering application.")
     println "Printing XXXXXXXXXXXXXXX"
     logger.info("Exiting application.")
  }
}
Running groovy:
groovy -cp .;lib\log4j-1.2.8.jar MyApp
 
my issue:
groovy is ignoring (?) the jar-file (I don't get any logging output), only the println-method works fine.
 
After compiling the script and running with java it works fine.
Many thanks for any help.
 
Best regards Wicki
©2008 gg3721.com - Jax Systems, LLC, U.S.A.