public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling jar file using gcj
@ 2009-08-29 13:30 Swapnil Jain
  2009-08-29 15:06 ` Andrew Haley
  0 siblings, 1 reply; 15+ messages in thread
From: Swapnil Jain @ 2009-08-29 13:30 UTC (permalink / raw)
  To: gcc-help; +Cc: java

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-09-01 16:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-29 13:30 Compiling jar file using gcj Swapnil Jain
2009-08-29 15:06 ` Andrew Haley
2009-08-30  3:40   ` Swapnil Jain
2009-08-31 10:13   ` Swapnil Jain
2009-08-31 10:43     ` Andrew Haley
2009-08-31 11:04       ` Swapnil Jain
2009-08-31 11:23         ` Andrew Haley
2009-08-31 11:26           ` Swapnil Jain
2009-09-01  9:33             ` Andrew Haley
2009-09-01 10:08               ` Swapnil Jain
2009-09-01 10:11                 ` Andrew Haley
2009-09-01 15:45                   ` Tom Tromey
2009-09-01 16:05                     ` Andrew Haley
2009-09-01 16:12                       ` David Daney
2009-09-01 16:30                         ` Swapnil Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).