Details
Description
The code:
#! /usr/bin/env groovy @Grab('org.codehaus.groovyfx:groovyfx:0.4.0-SNAPSHOT') import static groovyx.javafx.GroovyFX.start import javafx.scene.paint.Color start { stage title: 'Hello World', visible: true, { scene width: 250, height: 80, fill: Color.web('#d0c4b0'), { text x: 10, y: 30, text: 'Hello World.', font: '24pt "Ocean Sans MT"' } } }
when executed, cause the groovyfx-0.4.0-SNAPSHOT.jar artefact to be grabbed from my local Maven cache and put into the Grapes cache. However it failed with:
Caused by: java.lang.ClassNotFoundException: groovyx.javafx.GroovyFX
at javafx.application.Application.launch(Application.java:237)
If I run the code with:
groovy -cp .:$HOME/.groovy/grapes/org.codehaus.groovyfx/groovyfx/jars/groovyfx-0.4.0-SNAPSHOT.jar helloWorld_groovyfx_text.groovy
Then it works as expected. This implies the artefact is fine but the Grapes manipulation of classpath is not.
Attachments
Issue Links
- is related to
-
GROOVY-6768 Unable to resolve resources from grapes through ClassLoader
- Closed