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