Mailing list archive (omnetpp-l at omnetpp.org)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[omnetpp] build JSimpleModule



Hi,

When I try to build the JSimpleModule v3.3-1, the JUtil.cc file
generates the following error:
> JUtil.cc: In member function ‘void JObjectAccess::setBooleanJavaField(const char*, jboolean)’:
> JUtil.cc:153: error: ‘JUtil::jenv->JNIEnv_::SetBooleanField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, ((int)value))’ has type ‘void’ and is not a throw-expression
> ...
You can see with more detail in the attachment.

This files are from the JSimpleModule tarball, available at
http://www.omnetpp.org/filemgmt/singlefile.php?lid=126
I'm using Ubuntu linux, OMNeT++ 3.3, Java SUN 1.6.0_03-b05 and g++ 4.1.3.

Thanks

Best regards,
Nuno

$ tree
.
|-- JMessage.cc
|-- JMessage.h
|-- JSimpleModule.cc
|-- JSimpleModule.h
|-- JSimpleModule.ned
|-- JUtil.cc
|-- JUtil.h
|-- Makefile
|-- SimkernelJNI_registerNatives.cc
|-- test.ned
|-- lib
|   `-- simkernel.jar
|-- makefrag
|-- omnetpp.ini
`-- simkernel_wrap.cc


$ make
g++ -c -O2 -DNDEBUG=1   -DWITH_PARSIM -DWITH_NETBUILDER  -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -I/home/user/omnetpp/include JMessage.cc
g++ -c -O2 -DNDEBUG=1   -DWITH_PARSIM -DWITH_NETBUILDER  -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -I/home/user/omnetpp/include JSimpleModule.cc
g++ -c -O2 -DNDEBUG=1   -DWITH_PARSIM -DWITH_NETBUILDER  -I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux -I/home/user/omnetpp/include JUtil.cc
JUtil.cc: In member function â??void JObjectAccess::setBooleanJavaField(const char*, jboolean)â??:
JUtil.cc:153: error: â??JUtil::jenv->JNIEnv_::SetBooleanField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, ((int)value))â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setByteJavaField(const char*, jbyte)â??:
JUtil.cc:154: error: â??JUtil::jenv->JNIEnv_::SetByteField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, ((int)value))â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setCharJavaField(const char*, jchar)â??:
JUtil.cc:155: error: â??JUtil::jenv->JNIEnv_::SetCharField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, ((int)value))â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setShortJavaField(const char*, jshort)â??:
JUtil.cc:156: error: â??JUtil::jenv->JNIEnv_::SetShortField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, ((int)value))â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setIntJavaField(const char*, jint)â??:
JUtil.cc:157: error: â??JUtil::jenv->JNIEnv_::SetIntField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, value)â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setLongJavaField(const char*, jlong)â??:
JUtil.cc:158: error: â??JUtil::jenv->JNIEnv_::SetLongField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, value)â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setFloatJavaField(const char*, jfloat)â??:
JUtil.cc:159: error: â??JUtil::jenv->JNIEnv_::SetFloatField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, value)â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setDoubleJavaField(const char*, jdouble)â??:
JUtil.cc:160: error: â??JUtil::jenv->JNIEnv_::SetDoubleField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, value)â?? has type â??voidâ?? and is not a throw-expression
JUtil.cc: In member function â??void JObjectAccess::setStringJavaField(const char*, const char*)â??:
JUtil.cc:177: error: â??JUtil::jenv->JNIEnv_::SetObjectField(((JObjectAccess*)this)->JObjectAccess::javaPeer, fieldID, ((_jobject*)str))â?? has type â??voidâ?? and is not a throw-expression
make: *** [JUtil.o] Error 1
_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php

Home | Main Index | Thread Index