[kepler-users] classpath issues

Brian Schlining brian at mbari.org
Wed Nov 7 08:42:54 PST 2012


Hi Christopher,

Thanks for taking the time to respond, it's much appreciated.
 
> I don't have a good answer.  To fix this might require changing the code in build-area/src/org/kepler/build.
> 
> I'm not sure, but using ant's -lib argument might do the trick.  However, it seems unusual to need to specify the jre directory and I'm not sure if -lib would help.
> See https://ant.apache.org/manual/running.html
That was a good thought and I gave it a whirl, but Kepler is still unable to see the JavaFX classes when I use the -lib arg. 
> 
>      It seems like it is a bit of a bug in the jvm if jre/lib/jfxrt.jar is not being found.  Maybe try some of the JavaFX and ant resources on the net?  Does a simple ant file outside of Kepler find the contents of jfxrt.jar?
No, it's not a JVM bug. Oracle is being very conservative about how they deploy JavaFX. For now,  the JavaFX SDK is included with Java 7 but until Java 8 next summer, you have to manually include the jfxrt.jar when building and running your apps. (They do have a very detailed deployment instructions for stand alone apps at http://docs.oracle.com/javafx/2/deployment/jfxpub-deployment.htm )
> 
> Perhaps $JDK_HOME is not the JDK that is being used by ant?  
 I checked that. I modified Kepler's org.kepler.build.Run task to dump out info on which Java is actually being run and it's using the correct version.

So for now, it sounds like I need to hack up org.kepler.build.project.RunClasspath to make this work. If you have any tips or better suggestions please let me know.

Thanks again.

-- B
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Brian Schlining
MBARI
Software Engineer, Research and Development
brian at mbari.org (mailto:brian at mbari.org)
(831) 775-1855

http://www.mbari.org/staff/brian


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20121107/042cad52/attachment.html>


More information about the Kepler-users mailing list