Thread: [jnc-users] Reference not found
Status: Beta
Brought to you by:
soapy
From: Jerome B. <jbe...@ya...> - 2007-03-30 07:34:03
|
Hi all, I tried to compile my java (1.5) project into a Win32 (XP) executable and get the error listed below. I compile a jar file with a main class that references other jar files (of my project or external like log4J). I use GCJ 4.2.0. Any idea my this does not work ? creating "UpdateLauncher.exe" for Windows - processing AdCafe-installer.jar - processing AdCafe-configuration.jar - processing AdCafe-updater.jar [D:\Software\Programming\gcc-119844-win\bin\gcj -fjni -O2 -Ilibs/win/gui/gui.jar -c C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar -o C:\DOCUME~1\KITE\LOCALS~1\Temp\JNCTemp8y3ps9.out\AdCafe-updater-win.jar.o -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jakarta-oro-2.0.8.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jdic_misc.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jRegistryKey.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\log4j-1.2.12.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-installer.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\commons-net-1.4.1.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-configuration.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jdic-native.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\ethermac.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-reporter.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe1.0.jar] - processing jdic-native.jar Warning: Nothing imported, JAR unused! - processing AdCafe-reporter.jar - processing AdCafe1.0.jar - main compilation step [D:\Software\Programming\gcc-119844-win\bin\gcj --main=cafe.main.UpdateLauncher -fjni -Djava.library.path=lib -Dsun.java2d.fontpath= -Djava.home=. -Djava.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment -Dawt.toolkit=sun.awt.windows.WToolkit -Dsun.io.unicode.encoding=UnicodeLittle -Llibs/win -Ilibs/win/gui/gui.jar -oC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\UpdateLauncher.exe -s -O2 -ljncTrial -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jakarta-oro-2.0.8.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jdic_misc.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jRegistryKey.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\log4j-1.2.12.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-installer.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\commons-net-1.4.1.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-configuration.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\jdic-native.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\ethermac.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-reporter.jar -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe1.0.jar @C:\DOCUME~1\KITE\LOCALS~1\Temp\JNCTemp8y3ps9.out\SourceList8y3psf.list] C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x6d): undefined reference to `_ZN3org6apache5log4j6Logger9getLoggerEJPS2_PN4java4lang5ClassE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x459): undefined reference to `_ZN3org6apache5log4j20PropertyConfigurator9configureEJvPN4java4lang6StringE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x17b4): undefined reference to `cafe::configuration::Configurator::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x17d7): undefined reference to `cafe::configuration::Configurator::Configurator(cafe::AdCafeProperties*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x2662): undefined reference to `_ZN3org8jdesktop4jdic4misc16WallpaperFactory15createWallpaperEJPNS2_9WallpaperEv' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x26c2): undefined reference to `org::jdesktop::jdic::misc::Wallpaper::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x36aa): undefined reference to `cafe::configuration::Configurator::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x36cd): undefined reference to `cafe::configuration::Configurator::Configurator(cafe::AdCafeProperties*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.text+0x7d0d): undefined reference to `_ZN3org6apache5log4j6Logger9getLoggerEJPS2_PN4java4lang5ClassE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.data+0x44): undefined reference to `org::apache::log4j::Logger::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe-updater-win.jar.o:AdCafe-updater.jar:(.data+0x1844): undefined reference to `org::apache::log4j::Logger::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.text+0x6d): undefined reference to `_ZN3org6apache5log4j6Logger9getLoggerEJPS2_PN4java4lang5ClassE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.text+0x11a): undefined reference to `org::apache::commons::net::ftp::FTPClient::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.text+0x129): undefined reference to `org::apache::commons::net::ftp::FTPClient::FTPClient()' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.text+0x269): undefined reference to `org::apache::commons::net::ftp::FTPClient::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.text+0x279): undefined reference to `org::apache::commons::net::ftp::FTPClient::FTPClient()' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.text+0x5a0): undefined reference to `_ZN3org6apache7commons3net3ftp8FTPReply20isPositiveCompletionEJbi' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.data+0xa4): undefined reference to `org::apache::log4j::Logger::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.data+0x134): undefined reference to `org::apache::commons::net::ftp::FTPClient::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.rdata+0x4c): undefined reference to `org::apache::commons::net::MalformedServerReplyException::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.rdata+0x50): undefined reference to `org::apache::commons::net::io::CopyStreamException::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_JakartaFtpWrapper.class.o):JakartaFtpWrapper.class:(.rdata+0x60): undefined reference to `org::apache::commons::net::ftp::FTPConnectionClosedException::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x6d): undefined reference to `_ZN3org6apache5log4j6Logger9getLoggerEJPS2_PN4java4lang5ClassE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x177): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x185): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x19d): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1a6): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x27b): undefined reference to `ca::beq::util::win32::registry::RegistryValue::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x524): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x540): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_CURRENT_USER' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x594): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x5b0): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_CURRENT_USER' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x604): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x620): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_CURRENT_USER' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x6b5): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x6c1): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x6e0): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x6ec): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x80f): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x825): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_CURRENT_USER' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x834): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0xe2f): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0xe3c): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0xe76): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0xeac): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0xee2): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0xf18): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x10b9): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x10c5): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x10d1): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x10dd): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1142): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x11c2): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x136e): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x137a): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1386): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1392): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1424): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x14a4): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x152e): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x15a4): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1719): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1725): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1731): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x173d): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x17a2): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1822): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1a16): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1a29): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1a42): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1a54): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1bf8): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1c08): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1c1a): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1ce7): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1db3): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1dca): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_USERS' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x1e5c): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b06): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b12): undefined reference to `ca::beq::util::win32::registry::RootKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b2a): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b33): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b76): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b8e): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2b97): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2bd9): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2bf1): undefined reference to `ca::beq::util::win32::registry::RootKey::HKEY_LOCAL_MACHINE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2bfa): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2c4f): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2c6c): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2d98): undefined reference to `ca::beq::util::win32::registry::RegistryValue::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2e99): undefined reference to `ca::beq::util::win32::registry::RegistryKey::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2eb6): undefined reference to `ca::beq::util::win32::registry::RegistryKey::RegistryKey(ca::beq::util::win32::registry::RootKey*, java::lang::String*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x2f58): undefined reference to `ca::beq::util::win32::registry::RegistryValue::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x3033): undefined reference to `ca::beq::util::win32::registry::RegistryValue::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x303f): undefined reference to `ca::beq::util::win32::registry::ValueType::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x304e): undefined reference to `ca::beq::util::win32::registry::ValueType::REG_SZ' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x3065): undefined reference to `ca::beq::util::win32::registry::RegistryValue::RegistryValue(java::lang::String*, ca::beq::util::win32::registry::ValueType*, java::lang::Object*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x3125): undefined reference to `ca::beq::util::win32::registry::RegistryValue::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x3131): undefined reference to `ca::beq::util::win32::registry::ValueType::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x3144): undefined reference to `ca::beq::util::win32::registry::ValueType::REG_SZ' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.text+0x3157): undefined reference to `ca::beq::util::win32::registry::RegistryValue::RegistryValue(java::lang::String*, ca::beq::util::win32::registry::ValueType*, java::lang::Object*)' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_RegistryUtil.class.o):RegistryUtil.class:(.data+0x44): undefined reference to `org::apache::log4j::Logger::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_NetUtil.class.o):NetUtil.class:(.text+0x6d): undefined reference to `_ZN3org6apache5log4j6Logger9getLoggerEJPS2_PN4java4lang5ClassE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_NetUtil.class.o):NetUtil.class:(.text+0x258): undefined reference to `org::imagimate::mac::EtherMAC::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_NetUtil.class.o):NetUtil.class:(.text+0x26f): undefined reference to `org::imagimate::mac::EtherMAC::EtherMAC()' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_NetUtil.class.o):NetUtil.class:(.text+0x2c9): undefined reference to `_ZN3org9imagimate3mac8EtherMAC8toStringEJPN4java4lang6StringEP6JArrayIiE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_NetUtil.class.o):NetUtil.class:(.data+0x44): undefined reference to `org::apache::log4j::Logger::class$' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_EncryptedFileHandler.class.o):EncryptedFileHandler.class:(.text+0xb5): undefined reference to `_ZN3org6apache5log4j6Logger9getLoggerEJPS2_PN4java4lang5ClassE' C:/DOCUME~1/KITE/LOCALS~1/Temp/JNCTemp8y3ps9.out/AdCafe1.0-win.jar.a(cafe_util_EncryptedFileHandler.class.o):EncryptedFileHandler.class:(.data+0x64): undefined reference to `org::apache::log4j::Logger::class$' collect2: ld returned 1 exit status failed... Jerome Benezech jbe...@ya... |
From: Marco T. <mt...@gm...> - 2007-03-30 07:51:12
|
Jerome Benezech wrote: > Hi all, > > I tried to compile my java (1.5) project into a Win32 (XP) executable > and get the error listed below. I compile a jar file with a main class > that references other jar files (of my project or external like log4J). > I use GCJ 4.2.0. Which JNC version? > Any idea my this does not work ? Probably because you set most jars to only import needed references. With multiple jars, there will probably occur linking problems. Technical explanation: This creates archives from your jars. At the linking step, some jars might need objects from an archive which has already been processed. So you get the missing references because the objects can no longer be found/imported. This is already in my todo list... What you can do about it: - Extract all jars into a dir and create a new jar from this dir. That's what I usually do. - Compile the complete jars. > creating "UpdateLauncher.exe" for Windows > [snip] > - processing jdic-native.jar > Warning: Nothing imported, JAR unused! I guess this jar needs to be compiled completely?! Hope that helps Marco |
From: Jerome B. <jbe...@ya...> - 2007-03-30 10:04:20
|
Thanks Marco for your very quick replied. I use JNC 1.1.1. So I tried to put all the external jars into 1 single jar and now get problems with log4J: creating "UpdateLauncher.exe" for Windows - processing AdCafeLibs.jar [D:\Software\Programming\gcc-119844-win\bin\gcj -fjni -O2 -Ilibs/win/gui/gui.jar -c C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs.jar -o C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs-win.jar.o -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar] org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanRegistration org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanRegistration org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanRegistration org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanServer org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanServer org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanServer org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanRegistration org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file for class javax.management.MBeanRegistration org/apache/log4j/jmx/Agent.java: In class 'org.apache.log4j.jmx.Agent': org/apache/log4j/jmx/Agent.java: In method 'org.apache.log4j.jmx.Agent.start()': org/apache/log4j/jmx/Agent.java:0: error: cannot find file for class com.sun.jdmk.comm.HtmlAdaptorServer org/apache/log4j/jmx/Agent.java:0: confused by earlier errors, bailing out failed... Marco Trudel <mt...@gm...> wrote: Jerome Benezech wrote: > Hi all, > > I tried to compile my java (1.5) project into a Win32 (XP) executable > and get the error listed below. I compile a jar file with a main class > that references other jar files (of my project or external like log4J). > I use GCJ 4.2.0. Which JNC version? > Any idea my this does not work ? Probably because you set most jars to only import needed references. With multiple jars, there will probably occur linking problems. Technical explanation: This creates archives from your jars. At the linking step, some jars might need objects from an archive which has already been processed. So you get the missing references because the objects can no longer be found/imported. This is already in my todo list... What you can do about it: - Extract all jars into a dir and create a new jar from this dir. That's what I usually do. - Compile the complete jars. > creating "UpdateLauncher.exe" for Windows > [snip] > - processing jdic-native.jar > Warning: Nothing imported, JAR unused! I guess this jar needs to be compiled completely?! Hope that helps Marco Jerome Benezech jbe...@ya... |
From: Marco T. <mt...@gm...> - 2007-03-30 11:03:16
|
-------- Original-Nachricht -------- Datum: Fri, 30 Mar 2007 03:04:07 -0700 (PDT) Von: Jerome Benezech <jbe...@ya...> An: Marco Trudel <mt...@gm...>, jbe...@bi... CC: jav...@li... Betreff: Re: [jnc-users] Reference not found > Thanks Marco for your very quick replied. > I use JNC 1.1.1. > > So I tried to put all the external jars into 1 single jar and now get > problems with log4J: That's bad. It means that you need an API that doesn't yet exist respectively is not complete. There has been a lot of work on javax.management lately, so it might work with the current GCJ trunk. But of course that is no help right know. Try adding "-findirect-dispatch" as custom GCJ flag and hope you don't need the missing class at runtime. Another thing that you might try is to remove the log4j jar from the compilation. I think log4j comes with GCJ/GNU classpath already. Marco > creating "UpdateLauncher.exe" for Windows > - processing AdCafeLibs.jar > [D:\Software\Programming\gcc-119844-win\bin\gcj > -fjni > -O2 > -Ilibs/win/gui/gui.jar > -c > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs.jar > -o > > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs-win.jar.o > > -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar] > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanServer > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanServer > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanServer > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/Agent.java: In class 'org.apache.log4j.jmx.Agent': > org/apache/log4j/jmx/Agent.java: In method > 'org.apache.log4j.jmx.Agent.start()': > org/apache/log4j/jmx/Agent.java:0: error: cannot find file for class > com.sun.jdmk.comm.HtmlAdaptorServer > org/apache/log4j/jmx/Agent.java:0: confused by earlier errors, bailing > out > failed... > > > Marco Trudel <mt...@gm...> wrote: > Jerome Benezech wrote: > > Hi all, > > > > I tried to compile my java (1.5) project into a Win32 (XP) executable > > and get the error listed below. I compile a jar file with a main class > > that references other jar files (of my project or external like log4J). > > I use GCJ 4.2.0. > > Which JNC version? > > > > Any idea my this does not work ? > > Probably because you set most jars to only import needed references. > With multiple jars, there will probably occur linking problems. > Technical explanation: This creates archives from your jars. At the > linking step, some jars might need objects from an archive which has > already been processed. So you get the missing references because the > objects can no longer be found/imported. > This is already in my todo list... > > What you can do about it: > - Extract all jars into a dir and create a new jar from this dir. That's > what I usually do. > - Compile the complete jars. > > > > creating "UpdateLauncher.exe" for Windows > > [snip] > > - processing jdic-native.jar > > Warning: Nothing imported, JAR unused! > > I guess this jar needs to be compiled completely?! > > > Hope that helps > Marco > > > > Jerome Benezech > jbe...@ya... -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail |
From: Jerome B. <jbe...@ya...> - 2007-03-31 04:01:47
|
Hi Marco, I tried as you said with the -findirect-dispatch flag. I tried also without it by removing some classes from log4J. So I put all classes into a single jar and requested a full compilation of this jar. I tried three times and had to stop the process after it ran for 2 hours and took up to 600Mb RAM. Cheers, Jerome Marco Trudel <mt...@gm...> wrote: -------- Original-Nachricht -------- Datum: Fri, 30 Mar 2007 03:04:07 -0700 (PDT) Von: Jerome Benezech An: Marco Trudel , jbe...@bi... CC: jav...@li... Betreff: Re: [jnc-users] Reference not found > Thanks Marco for your very quick replied. > I use JNC 1.1.1. > > So I tried to put all the external jars into 1 single jar and now get > problems with log4J: That's bad. It means that you need an API that doesn't yet exist respectively is not complete. There has been a lot of work on javax.management lately, so it might work with the current GCJ trunk. But of course that is no help right know. Try adding "-findirect-dispatch" as custom GCJ flag and hope you don't need the missing class at runtime. Another thing that you might try is to remove the log4j jar from the compilation. I think log4j comes with GCJ/GNU classpath already. Marco > creating "UpdateLauncher.exe" for Windows > - processing AdCafeLibs.jar > [D:\Software\Programming\gcc-119844-win\bin\gcj > -fjni > -O2 > -Ilibs/win/gui/gui.jar > -c > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs.jar > -o > > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs-win.jar.o > > -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar] > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanServer > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanServer > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanServer > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file > for class javax.management.MBeanRegistration > org/apache/log4j/jmx/Agent.java: In class 'org.apache.log4j.jmx.Agent': > org/apache/log4j/jmx/Agent.java: In method > 'org.apache.log4j.jmx.Agent.start()': > org/apache/log4j/jmx/Agent.java:0: error: cannot find file for class > com.sun.jdmk.comm.HtmlAdaptorServer > org/apache/log4j/jmx/Agent.java:0: confused by earlier errors, bailing > out > failed... > > > Marco Trudel wrote: > Jerome Benezech wrote: > > Hi all, > > > > I tried to compile my java (1.5) project into a Win32 (XP) executable > > and get the error listed below. I compile a jar file with a main class > > that references other jar files (of my project or external like log4J). > > I use GCJ 4.2.0. > > Which JNC version? > > > > Any idea my this does not work ? > > Probably because you set most jars to only import needed references. > With multiple jars, there will probably occur linking problems. > Technical explanation: This creates archives from your jars. At the > linking step, some jars might need objects from an archive which has > already been processed. So you get the missing references because the > objects can no longer be found/imported. > This is already in my todo list... > > What you can do about it: > - Extract all jars into a dir and create a new jar from this dir. That's > what I usually do. > - Compile the complete jars. > > > > creating "UpdateLauncher.exe" for Windows > > [snip] > > - processing jdic-native.jar > > Warning: Nothing imported, JAR unused! > > I guess this jar needs to be compiled completely?! > > > Hope that helps > Marco > > > > Jerome Benezech > jbe...@ya... -- "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail Jerome Benezech jbe...@ya... |
From: Marco T. <mt...@gm...> - 2007-03-31 07:26:31
|
Jerome Benezech wrote: > Hi Marco, > > I tried as you said with the -findirect-dispatch flag. I tried also > without it by removing some classes from log4J. > So I put all classes into a single jar and requested a full compilation > of this jar. I tried three times and had to stop the process after it > ran for 2 hours and took up to 600Mb RAM. How much RAM do you have? What a CPU? How do you compile? The complete Jar or only needed references? I think the problem shouldn't occur if you compile only needed references? That GCJ needs a lot of RAM is a well known (and unfortunately ignored) problem. Try disabling optimization and maybe you also should manually increase the swap space of you machine. Marco > Cheers, > Jerome > > > */Marco Trudel <mt...@gm...>/* wrote: > > > -------- Original-Nachricht -------- > Datum: Fri, 30 Mar 2007 03:04:07 -0700 (PDT) > Von: Jerome Benezech > An: Marco Trudel , jbe...@bi... > CC: jav...@li... > Betreff: Re: [jnc-users] Reference not found > > > Thanks Marco for your very quick replied. > > I use JNC 1.1.1. > > > > So I tried to put all the external jars into 1 single jar and now get > > problems with log4J: > > That's bad. It means that you need an API that doesn't yet exist > respectively is not complete. There has been a lot of work on > javax.management lately, so it might work with the current GCJ trunk. > But of course that is no help right know. Try adding > "-findirect-dispatch" as custom GCJ flag and hope you don't need the > missing class at runtime. > Another thing that you might try is to remove the log4j jar from the > compilation. I think log4j comes with GCJ/GNU classpath already. > > > Marco > > > creating "UpdateLauncher.exe" for Windows > > - processing AdCafeLibs.jar > > [D:\Software\Programming\gcc-119844-win\bin\gcj > > -fjni > > -O2 > > -Ilibs/win/gui/gui.jar > > -c > > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs.jar > > -o > > > > > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs-win.jar.o > > > > > -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar] > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanRegistration > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanRegistration > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanRegistration > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanServer > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanServer > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanServer > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanRegistration > > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot > find file > > for class javax.management.MBeanRegistration > > org/apache/log4j/jmx/Agent.java: In class > 'org.apache.log4j.jmx.Agent': > > org/apache/log4j/jmx/Agent.java: In method > > 'org.apache.log4j.jmx.Agent.start()': > > org/apache/log4j/jmx/Agent.java:0: error: cannot find file for class > > com.sun.jdmk.comm.HtmlAdaptorServer > > org/apache/log4j/jmx/Agent.java:0: confused by earlier errors, > bailing > > out > > failed... > > > > > > Marco Trudel wrote: > > Jerome Benezech wrote: > > > Hi all, > > > > > > I tried to compile my java (1.5) project into a Win32 (XP) > executable > > > and get the error listed below. I compile a jar file with a > main class > > > that references other jar files (of my project or external like > log4J). > > > I use GCJ 4.2.0. > > > > Which JNC version? > > > > > > > Any idea my this does not work ? > > > > Probably because you set most jars to only import needed references. > > With multiple jars, there will probably occur linking problems. > > Technical explanation: This creates archives from your jars. At the > > linking step, some jars might need objects from an archive which has > > already been processed. So you get the missing references because > the > > objects can no longer be found/imported. > > This is already in my todo list... > > > > What you can do about it: > > - Extract all jars into a dir and create a new jar from this dir. > That's > > what I usually do. > > - Compile the complete jars. > > > > > > > creating "UpdateLauncher.exe" for Windows > > > [snip] > > > - processing jdic-native.jar > > > Warning: Nothing imported, JAR unused! > > > > I guess this jar needs to be compiled completely?! > > > > > > Hope that helps > > Marco > > > > > > > > Jerome Benezech > > jbe...@ya... > > -- > "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ... > Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail > > > > > Jerome Benezech > jbe...@ya... |
From: Marco T. <mt...@gm...> - 2007-03-31 08:11:05
|
Marco Trudel wrote: > -------- Original-Nachricht -------- > Datum: Fri, 30 Mar 2007 03:04:07 -0700 (PDT) > Von: Jerome Benezech <jbe...@ya...> > An: Marco Trudel <mt...@gm...>, jbe...@bi... > CC: jav...@li... > Betreff: Re: [jnc-users] Reference not found > >> Thanks Marco for your very quick replied. >> I use JNC 1.1.1. Had another idea about the "error: cannot find file for class javax.management.MBeanRegistration" problem: You said you use JNC 1.1.1 and GCJ 4.2. So you probably took GCJ 4.2 from somewhere else and copied some files to made the JNC GUI work and don't get the Demo alert, right? Well, that's more or less ok with me, but you really should mention if you do something like that. Otherwise I start wondering why things don't work which really should. JNC 1.1.1 comes with GCJ 4.3 which seems to have support for the javax.management.MBean* classes. So, using "-findirect-dispatch" is in general a bad idea and you should update your GCJ. Also I can only support my official releases. What happens if you work with GCJ 4.3? It would be good if you could add all your jars (not the big one) and compile them completely to check if compilation works at all. Later, you still can try to minimize the binary... Never solve two unrelated problems at once ;-) Marco >> So I tried to put all the external jars into 1 single jar and now get >> problems with log4J: > > That's bad. It means that you need an API that doesn't yet exist respectively is not complete. There has been a lot of work on javax.management lately, so it might work with the current GCJ trunk. > But of course that is no help right know. Try adding "-findirect-dispatch" as custom GCJ flag and hope you don't need the missing class at runtime. > Another thing that you might try is to remove the log4j jar from the compilation. I think log4j comes with GCJ/GNU classpath already. > > > Marco > >> creating "UpdateLauncher.exe" for Windows >> - processing AdCafeLibs.jar >> [D:\Software\Programming\gcc-119844-win\bin\gcj >> -fjni >> -O2 >> -Ilibs/win/gui/gui.jar >> -c >> C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs.jar >> -o >> >> C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs-win.jar.o >> >> -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar] >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanRegistration >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanRegistration >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanRegistration >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanServer >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanServer >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanServer >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanRegistration >> org/apache/log4j/jmx/AbstractDynamicMBean.java:0: error: cannot find file >> for class javax.management.MBeanRegistration >> org/apache/log4j/jmx/Agent.java: In class 'org.apache.log4j.jmx.Agent': >> org/apache/log4j/jmx/Agent.java: In method >> 'org.apache.log4j.jmx.Agent.start()': >> org/apache/log4j/jmx/Agent.java:0: error: cannot find file for class >> com.sun.jdmk.comm.HtmlAdaptorServer >> org/apache/log4j/jmx/Agent.java:0: confused by earlier errors, bailing >> out >> failed... >> >> >> Marco Trudel <mt...@gm...> wrote: >> Jerome Benezech wrote: >>> Hi all, >>> >>> I tried to compile my java (1.5) project into a Win32 (XP) executable >>> and get the error listed below. I compile a jar file with a main class >>> that references other jar files (of my project or external like log4J). >>> I use GCJ 4.2.0. >> Which JNC version? >> >> >>> Any idea my this does not work ? >> Probably because you set most jars to only import needed references. >> With multiple jars, there will probably occur linking problems. >> Technical explanation: This creates archives from your jars. At the >> linking step, some jars might need objects from an archive which has >> already been processed. So you get the missing references because the >> objects can no longer be found/imported. >> This is already in my todo list... >> >> What you can do about it: >> - Extract all jars into a dir and create a new jar from this dir. That's >> what I usually do. >> - Compile the complete jars. >> >> >>> creating "UpdateLauncher.exe" for Windows >>> [snip] >>> - processing jdic-native.jar >>> Warning: Nothing imported, JAR unused! >> I guess this jar needs to be compiled completely?! >> >> >> Hope that helps >> Marco >> >> >> >> Jerome Benezech >> jbe...@ya... > |
From: Jerome B. <jbe...@ya...> - 2007-03-31 08:58:51
|
Actually, this is not usually my habit. I am running the demo version (which is my purpose here) and do get the demo message. Simply when I first downloaded JNC, it was the 1.0.1 version. I can't remember if I took the gcj at the same time and it was version 4.2 or if I took it from somewhere else, but I did not upgrade it after moving to JNC 1.1.1. I''ll try with gcj 4.3 and let you know. Thanks for your help, Jerome --- Marco Trudel <mt...@gm...> wrote: > Marco Trudel wrote: > > -------- Original-Nachricht -------- > > Datum: Fri, 30 Mar 2007 03:04:07 -0700 (PDT) > > Von: Jerome Benezech <jbe...@ya...> > > An: Marco Trudel <mt...@gm...>, > jbe...@bi... > > CC: jav...@li... > > Betreff: Re: [jnc-users] Reference not found > > > >> Thanks Marco for your very quick replied. > >> I use JNC 1.1.1. > > Had another idea about the "error: cannot find file > for class > javax.management.MBeanRegistration" problem: > You said you use JNC 1.1.1 and GCJ 4.2. So you > probably took GCJ 4.2 > from somewhere else and copied some files to made > the JNC GUI work and > don't get the Demo alert, right? > Well, that's more or less ok with me, but you really > should mention if > you do something like that. Otherwise I start > wondering why things don't > work which really should. JNC 1.1.1 comes with GCJ > 4.3 which seems to > have support for the javax.management.MBean* > classes. So, using > "-findirect-dispatch" is in general a bad idea and > you should update > your GCJ. > Also I can only support my official releases. What > happens if you work > with GCJ 4.3? It would be good if you could add all > your jars (not the > big one) and compile them completely to check if > compilation works at > all. Later, you still can try to minimize the > binary... > Never solve two unrelated problems at once ;-) > > > Marco > > > >> So I tried to put all the external jars into 1 > single jar and now get > >> problems with log4J: > > > > That's bad. It means that you need an API that > doesn't yet exist respectively is not complete. > There has been a lot of work on javax.management > lately, so it might work with the current GCJ trunk. > > But of course that is no help right know. Try > adding "-findirect-dispatch" as custom GCJ flag and > hope you don't need the missing class at runtime. > > Another thing that you might try is to remove the > log4j jar from the compilation. I think log4j comes > with GCJ/GNU classpath already. > > > > > > Marco > > > >> creating "UpdateLauncher.exe" for Windows > >> - processing AdCafeLibs.jar > >> [D:\Software\Programming\gcc-119844-win\bin\gcj > >> -fjni > >> -O2 > >> -Ilibs/win/gui/gui.jar > >> -c > >> > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs.jar > >> -o > >> > >> > C:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\lib\AdCafeLibs-win.jar.o > >> > >> > -IC:\MesDocuments\_dev\CocoonWorkspace\NewCafeClient\distribution\AdCafe-updater.jar] > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanRegistration > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanRegistration > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanRegistration > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanServer > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanServer > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanServer > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanRegistration > >> > org/apache/log4j/jmx/AbstractDynamicMBean.java:0: > error: cannot find file > >> for class javax.management.MBeanRegistration > >> org/apache/log4j/jmx/Agent.java: In class > 'org.apache.log4j.jmx.Agent': > >> org/apache/log4j/jmx/Agent.java: In method > >> 'org.apache.log4j.jmx.Agent.start()': > >> org/apache/log4j/jmx/Agent.java:0: error: cannot > find file for class > >> com.sun.jdmk.comm.HtmlAdaptorServer > >> org/apache/log4j/jmx/Agent.java:0: confused by > earlier errors, bailing > >> out > >> failed... > >> > >> > >> Marco Trudel <mt...@gm...> wrote: > >> Jerome Benezech wrote: > >>> Hi all, > >>> > >>> I tried to compile my java (1.5) project into a > Win32 (XP) executable > >>> and get the error listed below. I compile a jar > file with a main class > >>> that references other jar files (of my project > or external like log4J). > >>> I use GCJ 4.2.0. > >> Which JNC version? > >> > >> > >>> Any idea my this does not work ? > >> Probably because you set most jars to only import > needed references. > >> With multiple jars, there will probably occur > linking problems. > >> Technical explanation: This creates archives from > your jars. At the > >> linking step, some jars might need objects from > an archive which has > >> already been processed. So you get the missing > references because the > >> objects can no longer be found/imported. > >> This is already in my todo list... > >> > >> What you can do about it: > >> - Extract all jars into a dir and create a new > jar from this dir. That's > >> what I usually do. > >> - Compile the complete jars. > >> > >> > >>> creating "UpdateLauncher.exe" for Windows > >>> [snip] > >>> - processing jdic-native.jar > >>> Warning: Nothing imported, JAR unused! > >> I guess this jar needs to be compiled > completely?! > >> > >> > >> Hope that helps > >> Marco > >> > >> > >> > >> Jerome Benezech > >> jbe...@ya... > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > Jerome Benezech jbe...@ya... |