From: Anthony Green <green@xxxxxxxxxx> > Which gcj version are you using? I'm using ubuntu's default version at this point: gcj (GCC) 4.0.1 20050617 (prerelease) (Debian 4.0.0-9ubuntu2) On a side note, trying to compile to native with gcj is a real mess (I'm using azureus 2.3.0.2): * .java -> native, I get $ gcj --encoding=WINDOWS-1252 -I /usr/share/java/log4j-1.2.jar -I /usr/share/java/xerces.jar -I /usr/share/java/gnu-crypto.jar -I /usr/share/java/gnujaxp.jar -I ../org-metastatic-jessie.jar -I /usr/share/java/swt-gtk-3.1.jar -I /usr/share/java/swt-pi-gtk-3.1.jar -I ../seda.jar -I /usr/share/java/commons-cli.jar -c @azureus ./com/aelitis/azureus/core/networkmanager/impl/NetworkConnectionImpl.java:42: error: Class ʽcom.aelitis.azureus.core.networkmanager.impl.NetworkConnectionImplʼ doesn't define the abstract method ʽvoid com.aelitis.azureus.core.networkmanager.NetworkConnection.connect(com.aelitis.azureus.core.networkmanager.NetworkConnection$ConnectionListener)ʼ from interface ʽcom.aelitis.azureus.core.networkmanager.NetworkConnectionʼ. This method must be defined or class ʽcom.aelitis.azureus.core.networkmanager.impl.NetworkConnectionImplʼ must be declared abstract. public class NetworkConnectionImpl implements NetworkConnection { ^ @azureus is a file containing all the .java files. I don't really have any experience with java (using this as learning project :-) but from what I can see that connect() method _is_ implemented in the right place... * .java -> .class with jikes and then .class -> native with gcj goes like this: $ gcj --encoding=WINDOWS-1252 -I /usr/share/java/log4j-1.2.jar -I /usr/share/java/xerces.jar -I /usr/share/java/gnu-crypto.jar -I /usr/share/java/gnujaxp.jar -I ../../org-metastatic-jessie.jar -I /usr/share/java/swt-gtk-3.1.jar -I /usr/share/java/swt-pi-gtk-3.1.jar -I ../../seda.jar -I /usr/share/java/commons-cli.jar azureus2.jar -o azureus -w org/gudy/azureus2/ui/swt/views/MyTorrentsSuperView.java: In class 'org.gudy.azureus2.ui.swt.views.MyTorrentsSuperView': org/gudy/azureus2/ui/swt/views/MyTorrentsSuperView.java: In method 'org.gudy.azureus2.ui.swt.views.MyTorrentsSuperView.generateDiagnostics(org.gudy.azureus2.core3.util.IndentWriter)': org/gudy/azureus2/ui/swt/views/MyTorrentsSuperView.java:207: error: verification error at PC=75 org/gudy/azureus2/ui/swt/views/MyTorrentsSuperView.java:207: error: might transfer control into subroutine org/gudy/azureus2/ui/swt/Tab.java: In class 'org.gudy.azureus2.ui.swt.Tab': org/gudy/azureus2/ui/swt/Tab.java: In method 'org.gudy.azureus2.ui.swt.Tab.dispose()': org/gudy/azureus2/ui/swt/Tab.java:468: error: verification error at PC=91 org/gudy/azureus2/ui/swt/Tab.java:468: error: might transfer control into subroutine org/gudy/azureus2/ui/web2/stages/hdapi/WildcardDynamicHttp.java: In class 'org.gudy.azureus2.ui.web2.stages.hdapi.WildcardDynamicHttp': org/gudy/azureus2/ui/web2/stages/hdapi/WildcardDynamicHttp.java: In method 'org.gudy.azureus2.ui.web2.stages.hdapi.WildcardDynamicHttp.doRequest(org.gudy.azureus2.ui.web2.http.request.httpRequest)': org/gudy/azureus2/ui/web2/stages/hdapi/WildcardDynamicHttp.java:173: error: verification error at PC=75 org/gudy/azureus2/ui/web2/stages/hdapi/WildcardDynamicHttp.java:173: error: loading local variable 5 which has unknown type org/gudy/azureus2/ui/webplugin/remoteui/xml/client/XMLHTTPClient.java: In class 'org.gudy.azureus2.ui.webplugin.remoteui.xml.client.XMLHTTPClient': org/gudy/azureus2/ui/webplugin/remoteui/xml/client/XMLHTTPClient.java: In method 'org.gudy.azureus2.ui.webplugin.remoteui.xml.client.XMLHTTPClient.sendRequestSupport(java.lang.String)': org/gudy/azureus2/ui/webplugin/remoteui/xml/client/XMLHTTPClient.java:424: error: verification error at PC=336 org/gudy/azureus2/ui/webplugin/remoteui/xml/client/XMLHTTPClient.java:424: error: might transfer control into subroutine org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java: In class 'org.gudy.azureus2.pluginsimpl.local.utils.resourcedownloader.ResourceDownloaderURLImpl': org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java: In method 'org.gudy.azureus2.pluginsimpl.local.utils.resourcedownloader.ResourceDownloaderURLImpl.getSizeSupport()': org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java:160: error: verification error at PC=295 org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java:160: error: might transfer control into subroutine org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java: In method 'org.gudy.azureus2.pluginsimpl.local.utils.resourcedownloader.ResourceDownloaderURLImpl.download()': org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java:316: error: verification error at PC=902 org/gudy/azureus2/pluginsimpl/local/utils/resourcedownloader/ResourceDownloaderURLImpl.java:316: error: might transfer control into subroutine org/gudy/azureus2/core3/disk/impl/access/impl/DMReaderImpl.java: In class 'org.gudy.azureus2.core3.disk.impl.access.impl.DMReaderImpl$DiskReadThread': org/gudy/azureus2/core3/disk/impl/access/impl/DMReaderImpl.java: In method 'org.gudy.azureus2.core3.disk.impl.access.impl.DMReaderImpl$DiskReadThread.runSupport()': org/gudy/azureus2/core3/disk/impl/access/impl/DMReaderImpl.java:306: error: verification error at PC=313 org/gudy/azureus2/core3/disk/impl/access/impl/DMReaderImpl.java:306: error: transfer out of subroutine org/gudy/azureus2/core3/disk/impl/access/impl/DMWriterAndCheckerImpl.java: In class 'org.gudy.azureus2.core3.disk.impl.access.impl.DMWriterAndCheckerImpl$DiskWriteThread': org/gudy/azureus2/core3/disk/impl/access/impl/DMWriterAndCheckerImpl.java: In method 'org.gudy.azureus2.core3.disk.impl.access.impl.DMWriterAndCheckerImpl$DiskWriteThread.runSupport()': org/gudy/azureus2/core3/disk/impl/access/impl/DMWriterAndCheckerImpl.java:895: error: verification error at PC=399 org/gudy/azureus2/core3/disk/impl/access/impl/DMWriterAndCheckerImpl.java:895: error: transfer out of subroutine org/gudy/azureus2/core3/disk/impl/DiskManagerImpl.java: In class 'org.gudy.azureus2.core3.disk.impl.DiskManagerImpl': org/gudy/azureus2/core3/disk/impl/DiskManagerImpl.java: In method 'org.gudy.azureus2.core3.disk.impl.DiskManagerImpl.filesExist(java.lang.String)': org/gudy/azureus2/core3/disk/impl/DiskManagerImpl.java:409: error: verification error at PC=592 org/gudy/azureus2/core3/disk/impl/DiskManagerImpl.java:409: error: might transfer control into subroutine org/gudy/azureus2/core3/util/FileUtil.java: In class 'org.gudy.azureus2.core3.util.FileUtil': org/gudy/azureus2/core3/util/FileUtil.java: In method 'org.gudy.azureus2.core3.util.FileUtil.readResilientConfigFile(java.lang.String)': org/gudy/azureus2/core3/util/FileUtil.java:402: error: verification error at PC=61 org/gudy/azureus2/core3/util/FileUtil.java:402: error: might transfer control into subroutine org/gudy/azureus2/core3/util/FileUtil.java:402: confused by earlier errors, bailing out I don't know what these mean... I'm problably doing a lot of mistakes here :-) I'd be glad to hear about them. Rui
Attachment:
pgpEGM4IjJHcT.pgp
Description: PGP signature