This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling jar file using gcj


Hi,

i created a java project using netbeans. it uses 2 libraries RXTXcomm.jar & mysql-connector-java.jar

after building the project thru netbeans i get the iRemote.jar file in the dist folder.

i want to compile it using gcj to create a binary file. i am using the following command

gcj --classpath=lib/RXTXcomm.jar --main=iremote.controller.Controller - o iRemote.bin iRemote.jar


i get the following error


/tmp/cc6GjIBu.o: In function `iremote::device::light::innlink::SignalSender::SignalSender()':
iRemote.jar:(.text+0x180a7): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x181c5): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o: In function `iremote::device::light::relay3088::SignalSender::SignalSender()':
iRemote.jar:(.text+0x24c3b): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x24d59): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o: In function ` iremote ::device ::tv::samsungA450av::SignalSender::SignalSender(java::lang::String*)':
iRemote.jar:(.text+0x3b3fb): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x3b52b): undefined reference to `gnu::io::SerialPort::class$'
iRemote.jar:(.text+0x3bc0d): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x3bd2b): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o: In function ` iremote ::device ::tv::samsungA450rf::SignalSender::SignalSender(java::lang::String*)':
iRemote.jar:(.text+0x464cb): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x465fb): undefined reference to `gnu::io::SerialPort::class$'
iRemote.jar:(.text+0x46cdd): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x46dfb): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o: In function ` iremote ::device ::tv::samsungA650av::SignalSender::SignalSender(java::lang::String*)':
iRemote.jar:(.text+0x5026f): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x5039f): undefined reference to `gnu::io::SerialPort::class$'
iRemote.jar:(.text+0x50a81): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x50b9f): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o: In function ` iremote ::device ::tv::samsungA650rf::SignalSender::SignalSender(java::lang::String*)':
iRemote.jar:(.text+0x617cd): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x618fd): undefined reference to `gnu::io::SerialPort::class$'
iRemote.jar:(.text+0x61fdf): undefined reference to `gnu::io::CommPortIdentifier* gnu::io::CommPortIdentifier::getPortIdentifier(java::lang::String*)'
iRemote.jar:(.text+0x620fd): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o: In function `void iremote ::device::utility::SimpleRead::main(JArray<java::lang::String*>*)':
iRemote.jar:(.text+0x6514f): undefined reference to `java::util::Enumeration* gnu::io::CommPortIdentifier::getPortIdentifiers()'
iRemote.jar:(.text+0x651e4): undefined reference to `gnu::io::CommPortIdentifier::class$'
/tmp/cc6GjIBu.o: In function `iremote::device::utility::SimpleRead::SimpleRead()':
iRemote.jar:(.text+0x65585): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o:(.data+0x1bb4): undefined reference to `gnu::io::CommPortIdentifier::class$'
/tmp/cc6GjIBu.o:(.data+0x1bc4): undefined reference to `gnu::io::CommPort::class$'
/tmp/cc6GjIBu.o:(.data+0x1bd4): undefined reference to `gnu::io::SerialPort::class$'
/tmp/cc6GjIBu.o:(.data+0x22f4): undefined reference to `gnu::io::CommPortIdentifier::class$'



this program runs fine with java -jar iRemote.jar




need help

Swapnil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]