【发布时间】:2013-01-09 19:49:38
【问题描述】:
我使用 eclipse 开发了我的 java 项目并构建了一个可运行的 jar。 然后我尝试使用 gcj 来编译那个 jar。
stefan@api-1:/Sbox/Software/executables$ gcj --classpath=Sbo
xSpeakerDependent.jar --main=SboxInterface SboxSpeakerDependent.jar -o Test
/tmp/ccpTssYV.o: In function `main':
ccIqdepF.i:(.text+0x24): undefined reference to `SboxInterface::class$'
collect2: ld gab 1 als Ende-Status zurück
但是 SboxInterface 是唯一具有主方法的类,我也在 eclipse 中创建可运行的 jar 时放置了这些信息。
我可以尝试什么?我有点不知所措。
【问题讨论】:
标签: gcj