java - How can I get a project in netbeans using the gradle plugin to find native libraries? -


i trying figure out gradle , netbeans plugin. have been able put simple projects, when trying convert project uses jogl gradle have run problems. can compile, when try run, not. assume not finding native libraries.

here build.gradle:

apply plugin: 'java' apply plugin: 'application'  sourcecompatibility = '1.6'  [compilejava, compiletestjava]*.options*.encoding = 'utf-8'  // netbeans automatically add "run" , "debug" tasks relying on                       // "mainclass" property. may define property prior executing                    // tasks passing "-pmainclass=<qualified_class_name>" argument.                            //                                                                                              // note however, may define own "run" , "debug" task if                     // prefer. in case netbeans not add these tasks may rely on                   // own implementation.                                                                     if (!hasproperty('mainclass')) {     ext.mainclass = 'com.protocase.viewer.jdesigner' }  repositories {     mavencentral()     maven {         url "https://repository.apache.org/content/repositories/snapshots/"     } }  dependencies {     testcompile group: 'junit', name: 'junit', version: '4.10'     compile files('../logger/dist/logger.jar')     compile files('../postalker/build/libs/postalker.jar')     compile group: 'org.yaml', name: 'snakeyaml', version: '1.15+'     compile group: 'commons-io', name: 'commons-io', version: '2.4+'     compile group: 'gov.nist.math', name: 'jama', version: '1.0.3+'     compile group: 'org.apache.commons', name: 'commons-imaging', version: '1.0-snapshot+'     compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.5+'     compile files('/home/vextorspace/.netbeans/8.0.2/jogl-runtime/jogl.jar')     compile files('~/.netbeans/8.0.2/jogl-runtime/jogl.jar-natives-linux-amd64/libjogl_awt.so'\ , '~/.netbeans/8.0.2/jogl-runtime/jogl.jar-natives-linux-amd64/libjogl_cg.so', '~/.netbeans/8.\ 0.2/jogl-runtime/jogl.jar-natives-linux-amd64/libjogl.so')     runtime filetree(dir: '~/.netbeans/8.0.2/jogl-runtime/jogl.jar-natives-linux-amd64/', incl\ ude: '*.so')     compile files('~/.netbeans/8.0.2/gluegen-runtime/gluegen-rt.jar')     runtime files('~/.netbeans/8.0.2/gluegen-runtime/gluegen-rt.jar-natives-linux-amd64/libglu\ egen-rt.so')     compile files('libs/toxiclibscore.jar')     compile group: 'org.apache.commons', name: 'commons-math3', version: '3.5+'     compile group: 'commons-codec', name: 'commons-codec', version: '1.6'     compile group: 'commons-logging', name: 'commons-logging', version: '1.1.3'     compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.3.3'     compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'     compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.6' } 

but when try run get

executing: gradle run  :compilejava up-to-date :processresources up-to-date :classes up-to-date exception in thread "awt-eventqueue-0" java.lang.noclassdeffounderror: com/sun/gluegen/runtime/dynamiclookuphelper         @ java.lang.classloader.defineclass1(native method) 

any appreciated!

thank you

avoid tilde character in paths in build script. interpreted bash when use on command line , gradle knows nothing it.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -