Re: [jnc-users] Reference not found
Status: Beta
Brought to you by:
soapy
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 |