Netbeans, Gradle 및 Jogl, 충돌

선택된

프로젝트 중 하나에서 Gradle을 배우고 구현하려고합니다 .

Netbeans Gradle 플러그인을 설치하고 몇 가지 자습서를 살펴보고 몇 가지 테스트 프로젝트를 성공적으로 실행 한 후 큰 단계를 시도했습니다. build.gradle다음과 같이 스크립트를 수정하는 모든 Jogl 종속성을 성공적으로 해결했습니다 .

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#sec:how_to_declare_your_dependencies
    testCompile group: 'junit', name: 'junit', version: '4.10'

    compile 'org.jogamp.jogl:jogl-all-main:2.3.2'
    compile 'org.jogamp.jogl:nativewindow-main:2.3.2'
    compile 'org.jogamp.jogl:newt-main:2.3.2'
    compile 'org.jogamp.gluegen:gluegen-rt-main:2.3.2'
}

settings.gradle

rootProject.name = 'jgli'

그러나 다음 출력으로 계속 충돌하는 것은

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
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#
:run FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished with non-zero exit value 134

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

이것은 나의 마지막 중 하나입니다hs_err.log

내 사양은 다음과 같습니다.

우분투 15.04 x64, Netbeans 8.0.2 Jogl 2.3.2

Gradle을 사용하지 않으면 내 프로그램이 문제없이 실행됩니다.

그것이 무엇인지 알고 있습니까?

편집 : 조사 중, build폴더 아래에 내 셰이더가 포함 된 패키지가 없음을 발견했습니다. 여기 내 gradle jgli를 다운로드 할 수 있습니다.

선택된

부분적으로 해결되었습니다 .

Windows에서 작동하고 Linux에서 계속 충돌합니다.

resources디렉토리 아래로 이동해야했습니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

ExecuteScalar 및 ExecuteNonQuery 충돌

분류에서Dev

okhttp 및 facebook 충돌

분류에서Dev

ScrollView 및 GridView 충돌

분류에서Dev

Realm 및 CocoaPods 충돌

분류에서Dev

Gradle com.android.support 및 com.google.android.gms 라이브러리 충돌

분류에서Dev

Gradle에서 작업 및 플러그인 충돌 (플러그인 [클래스 'org.gradle.langu ...) 적용 실패)

분류에서Dev

Azure DocumentDB 및 Spring Boot 충돌

분류에서Dev

OLEObjects 및 Userform 간의 충돌

분류에서Dev

입력 onClick 및 onFocus 충돌

분류에서Dev

Math.floor () 및 parseFloat () 충돌?

분류에서Dev

Math.floor () 및 parseFloat () 충돌?

분류에서Dev

Qtcreator 중단 및 충돌

분류에서Dev

Mootools accordian 및 Jquery와 충돌

분류에서Dev

충돌 감지 및 animateWithDuration

분류에서Dev

충돌 감지 및 종료

분류에서Dev

mod_rewrite 및 URL 충돌

분류에서Dev

Jquery 및 Socket.io 충돌

분류에서Dev

충돌 AVFoundation 및 AppKit Swift

분류에서Dev

Gedit 중단 및 충돌

분류에서Dev

RequireJS 및 window.define () 충돌

분류에서Dev

iOS MobileVLCKit 및 VideoCore 충돌

분류에서Dev

PFQueryTableViewController 및 UISearchBar와 충돌

분류에서Dev

ABRecordCopyCompositeName 및 CFBridgingRelease 충돌 문제

분류에서Dev

gradle 종속성 버전 충돌

분류에서Dev

Gradle 충돌을 제거하는 방법

분류에서Dev

오류 : Dojo 및 jQuery-UI 충돌에서 multipleDefine 충돌

분류에서Dev

NetBeans 및 Eclipse FileNotFoundException

분류에서Dev

findViewWithTag 및 getTag 사용시 앱 충돌

분류에서Dev

파이 게임-충돌 및 목록