I am trying to learn and implement Gradle in one of the projects .
I installed the Netbeans Gradle plugin and, after watching a couple of tutorials (and successfully completing several test projects), I tried a big step. I successfully solved all the Jogl dependencies by modifying the build.gradle script as follows:
apply plugin: 'java' sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' // NetBeans will automatically add "run" and "debug" tasks relying on the // "mainClass" property. You may however define the property prior executing // tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument. // // Note however, that you may define your own "run" and "debug" task if you // prefer. In this case NetBeans will not add these tasks but you may rely on // your own implementation. if (!hasProperty('mainClass')) { ext.mainClass = '' } repositories { mavenCentral() // You may define additional repositories, or even remove "mavenCentral()". // Read more about repositories here: // http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:repositories } dependencies { // TODO: Add dependencies here ... // You can read more about how to add dependency here: // http://www.gradle.org/docs/current/userguide/dependency_management.html
settings.gradle
rootProject.name = 'jgli'
But that he continues to fail with the next exit
Executing: gradle :run Arguments: [-PmainClass=test.Main, -c, /home/elect/NetBeansProjects/jgli/settings.gradle] :compileJava UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :run # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000000002546, pid=18574, tid=139630779741952 # # JRE version: OpenJDK Runtime Environment (8.0_45-b14) (build 1.8.0_45-internal-b14) # Java VM: OpenJDK 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops) # Problematic frame: # C 0x0000000000002546 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/elect/NetBeansProjects/jgli/hs_err_pid18574.log
This is one of my last hs_err.log
My specifications:
ubuntu 15.04 x64, Netbeans 8.0.2 Jogl 2.3.2
Please note that without using Gradle, my program works without problems.
Do you have any ideas what this might be?
Edit: it turned out that there was no package in the build folder containing my shaders. Here you can download Gradle jgli
java gradle netbeans-8 sigsegv jogl
elect
source share