Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8100556

Maven support (loading DDLs)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • fx2.0
    • deploy
    • all

      There is a issue (RT-11182) about having the runtime jar in a Maven repository and it contains motivation why this is important (it is). The JFXtras project we've already setup using Maven and we install the jar manually (mvn install:install-file -Dfile=/Users/sjc/dev/javafx-sdk2.0-beta/rt/lib/jfxrt.jar -DgroupId=com.oracle -DartifactId=javafx-runtime -Dversion=2.0-beta -Dpackaging=jar), so that somewhat resolves RT11182.

      However, one thing we cannot quick-fix is the loading of the associated DDL's. It seems JFX always loads from a path relative to the runtime jar (../lib) and that path does not exists in Maven. The patch here is to manually copy the lib directory to the Maven local repository, but that is not even a patch, or a hot fix, but a kludge. The standard approach to having DLL dependencies is to either 1) include every dependency or 2) put all DLL's in a single jar and include that as a dependency (http://docs.codehaus.org/display/MAVENUSER/Projects+With+JNI). If more than one DLL and more than one platform the second approach usually takes preference, but in any case is it required to load the DLL's from the classpath and not via a relative path.

      Maven support is mandatory nowadays, and the DLL / SO loading should support that.

            kcr Kevin Rushforth
            tbee Tom Eugelink
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: