2009-08-25 2 views
-1

Ich erhalte den schwerwiegenden Fehler beim Ausführen von Makefile. Ich habe das Makefile und den Fehler gegeben. Ich habe "jdk 1.6 update 16" und "openSUSE ver 11" verwendet. Bitte helfen Sie mir, das Problem zu beheben.Ein schwerwiegender Fehler wurde von der Java-Laufzeitumgebung erkannt - JRE ist abgestürzt

********** 
makefile: 
********** 

# Makefile for jni-bouncestudio 

CC=gcc 
CSRCS=JNIBounceStudio.c 
COUT=libJNIBounceStudioNative.so 
CFLAGS= -shared -I/usr/java/jdk1.6.0_16/include -I/usr/java/jdk1.6.0_16/include/linux/ 

JAVAH=javah 
JHFLAGS= -classpath bin/ 
JHSRC=com.boogietools.bouncestudio.BounceStudio 

JAVA=java 
JAVAC=javac 
JFLAGS= -Xlint -classpath lib/mail-1.3.2.jar -d bin/ 
JSRC=com/boogietools/bouncestudio/BounceStudio.java 
JOUT=com/boogietools/bouncestudio/BounceStudio.class 
JARG=outoffice.txt 

all : compile javah javac 

setup :  
    export LD_LIBRARY_PATH=$(PWD) 

compile : $(CSRCS) 
    $(CC) $(CSRCS) -o $(COUT) $(CFLAGS) 

javah : $(JSRC) 
    $(JAVAH) $(JHFLAGS) $(JHSRC) 

javac : $(COUT) 
    $(JAVAC) $(JFLAGS) $(JSRC) 

run : all 
    $(JAVA) -classpath bin/:lib/mail-1.3.2.jar $(JHSRC) $(JARG) 


********** 
Error: 
********** 

mail:/opt/bullseye/BounceManagement/boogie # make run 
gcc JNIBounceStudio.c -o libJNIBounceStudioNative.so -shared -I/usr/java/jdk1.6.0_16/include -I/usr/java/jdk1.6.0_16/include/linux/ 
javah -classpath bin/ com.boogietools.bouncestudio.BounceStudio 
javac -Xlint -classpath lib/mail-1.3.2.jar -d bin/ com/boogietools/bouncestudio/BounceStudio.java 
java -classpath bin/:lib/mail-1.3.2.jar com.boogietools.bouncestudio.BounceStudio outoffice.txt 
libBounceStudio32.so: cannot open shared object file: No such file or directory# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
# SIGSEGV (0xb) at pc=0x00000000, pid=7199, tid=1087683472 
# 
# JRE version: 6.0_16-b01 
# Java VM: Java HotSpot(TM) Server VM (14.2-b01 mixed mode linux-x86) 
# Problematic frame: 
# C 0x00000000 
# 
# An error report file with more information is saved as: 
# /opt/bullseye/BounceManagement/boogie/hs_err_pid7199.log 
# 
# If you would like to submit a bug report, please visit: 
# http://java.sun.com/webapps/bugreport/crash.jsp 
# The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug. 
# 
make: *** [run] Aborted 

Antwort

1

Der Fehler ist vor Java

java -classpath bin läuft /: lib/mail-1.3.2.jar com.boogietools.bouncestudio.BounceStudio outoffice.txt libBounceStudio32.so: can not Open Shared Object-Datei: Keine solche Datei oder das Verzeichnis #

ich nehme zur Kenntnis, dass Ihre C-Code libJNIBounceStudioNative.so und Ihre Java-Code versucht zu bauen versucht, den Zugriff auf libBounceStudio32.so

Haben Sie einen Fehler mit dem Namen bräuchten wir

Ansonsten machten mehr über den C-Code kennen

+0

Nein, wenn ich versuche, „make run“ i immer diese Fehlermeldung bin nur auszuführen. –