Sunday, September 28, 2014

Groovy - how to disable warning for niogroovymethods

using groovy-2.3.7, with jdk6u37

got an error
C:\Users\xxx>groovy -v

Sep 29, 2014 12:03:47 AM org.codehaus.groovy.runtime.m12n.MetaInfExtensionModule

newModule

WARNING: Module [groovy-nio] - Unable to load extension class [org.codehaus.groo

vy.runtime.NioGroovyMethods]

Groovy Version: 2.3.7 JVM: 1.6.0_37 Vendor: Sun Microsystems Inc. OS: Windows 7


so how to disable warning for niogroovymethods:


solution 1. Edit $JAVA_HOME/jre/lib/logging.properties


Set INFO to SEVERE or OFF
java.util.logging.ConsoleHandler.level = SEVERE


After
C:\Users\xxx>groovy -version

Groovy Version: 2.3.7 JVM: 1.6.0_37 Vendor: Sun Microsystems Inc. OS: Windows 7


solution 2. Second better solution

Remove groovy-nio-2.3.7.jar from lib folder



Groovy - how to disable warning for niogroovymethods

1 comment:

  1. Really nice information it will be help my next project thx for posting it please keep it up & waiting for your next article. Thanks a lot.
    cheap vps hosting

    ReplyDelete