Wednesday, 15 February 2012

java - how to disable warning for niogroovymethods -



java - how to disable warning for niogroovymethods -

i using groovy-2.3.3, jdk6u35. groovy binaries have been extracted groovy-sdk-2.3.3.zip.

after compiling groovyc, got error while running java:

unsupported major.minor version 51.0.

i googled , figured problem groovy-all-2.3.3-indy.jar (which used jdk7+), removed classpath. programme works, gives warning:

warning: module [groovy-all] - unable load extension class [org.codehaus.groovy.runtime.niogroovymethods]

how disable warning message, since know not applicable setup?

if cannot disable warning without recompilation source (which not valid alternative me), there other groovy executable should download, instead of sdk zip file, can work java-jdk6 without warnings?

before got

➜~ groovy -version aug 6, 2014 12:29:38 pm org.codehaus.groovy.runtime.m12n.metainfextensionmodule newmodule warning: module [groovy-nio] - unable load extension class [org.codehaus.groovy.runtime.niogroovymethods] groovy version: 2.3.4 jvm: 1.6.0_45 vendor: sun microsystems inc. os: linux

editvim $java_home/jre/lib/logging.properties

set info severe or off java.util.logging.consolehandler.level = severe

after

➜~ groovy -version groovy version: 2.3.4 jvm: 1.6.0_45 vendor: sun microsystems inc. os: linux

update (second improve solution):

remove groovy-nio-2.3.6.jar lib folder

➜ ~ groovy --version aug 15, 2014 11:45:56 pm org.codehaus.groovy.runtime.m12n.metainfextensionmodule newmodule warning: module [groovy-nio] - unable load extension class [org.codehaus.groovy.runtime.niogroovymethods] groovy version: 2.3.6 jvm: 1.6.0_34 vendor: sun microsystems inc. os: linux ➜ ~ ➜ ~ mv $groovy_home/lib/groovy-nio-2.3.6.jar $groovy_home/lib/groovy-nio-2.3.6.bak ➜ ~ ➜ ~ groovy --version groovy version: 2.3.6 jvm: 1.6.0_34 vendor: sun microsystems inc. os: linux

java groovy

No comments:

Post a Comment