javacompiler-users Mailing List for javaCompiler (Page 5)
Status: Beta
Brought to you by:
soapy
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(15) |
Aug
(12) |
Sep
(57) |
Oct
(14) |
Nov
(23) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(17) |
Feb
(35) |
Mar
(18) |
Apr
|
May
(4) |
Jun
(2) |
Jul
|
Aug
(12) |
Sep
(15) |
Oct
(15) |
Nov
(8) |
Dec
(4) |
2008 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
(2) |
Jun
|
Jul
(6) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(5) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(7) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: chosen f. <cho...@ya...> - 2007-09-04 06:16:52
|
Hi Marco, Is there a way to set system properties for my app in the UI? Thanks. Ariel Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: abir b. <inv...@sh...> - 2007-09-04 05:07:39
|
I just joined Shelfari to connect with other book lovers. Come see the books= I love and see if we have any in common. Then pick my next book so I can= keep on reading.=0A=0AClick below to join my group of friends on Shelfari!= =0A=0Ahttp://www.shelfari.com/Register.aspx?ActivityId=3D7696489&InvitationCode=3Daaec4ebb-b85b-41ca-bd7c-6a5e19ab49f8= =0A=0Aabir basak=0A=0AShelfari is a free site that lets you share book ratings= and reviews with friends and meet people who have similar tastes in books.= It also lets you build an online bookshelf, join book clubs, and get good= book recommendations from friends. You should check it out.=0A=0A--------= =0A=0AYou have received this email because abir basak (abi...@gm...)= directly invited you to join his/her community on Shelfari.=0A=0AIt is= against Shelfari's policies to invite people who you don't know directly.= Follow this link (http://www.shelfari.com/actions/emailoptout.aspx?email=3Dj...@li...&activityid=3D7696489)= to prevent future invitations to this address. If you believe you do not= know this person, you may view (http://www.shelfari.com/abirbasak) his/her= Shelfari page or report him/her in our feedback (http://www.shelfari.com/Feedback.aspx)= section.=0A=0AShelfari, 616 1st Ave #300, Seattle, WA 98104=0A |
From: Marco T. <mt...@gm...> - 2007-08-30 08:32:07
|
Hey Ariel chosen forsaken wrote: > Hi, > > I'm trying to create a simple program that uses log4j. Unfortunately, I > can't seem to make it work. I've used 2 methods in creating the EXE: > > A. Using the JNC UI: > 1. In Step 1, I indicated my the .java file of my program (in Files), > the directory of my program (in Directories), and the log4j jar located > in my program's directory (in Archives). > 2. In Step 2, I set the main class by selecting my (only) java file. > I only checked the Windows checkbox, and left everything else blank. > 3. In Step 3, the only thing I enabled is the Show used commands > checkbox. > 4. When I try to compile my project (Step 4) I get an error : > > 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 > > while it's "processing log4j-1.2.13.jar". It seems that no .o > file for my program was generated since it hasn't processed my program yet. Try using "-findirect-dispatch" as custom GCJ flag in the GUI. > B. Using the command line > 1. I tried compiling my .java file using the command: > gcj -c -g --classpath=C:\logtest\log4j-1.2.13.jar LogTest.java -o > LogTest.o > and it generated a LogTest.o file. > 2. Then I tried to build the EXE using the command: > gcj --main=test.gcj.LogTest -fjni -Llibs/win > -Ilibs/win/gui/gui.jar -o C:\logtest\LogTest.exe -s -O2 -ljncNoGui > -ljncNoJce -ljncTrial -IC:\logtest LogTest. > and it shows an error : > LogTest.o: In function `ZN4test3gcj7LogTest18__U3c_clinit(unsigned > e_E, __complex void, void)':C:/logtest/test/gcj/LogTest.java:8: > undefined reference to `org::a > ache::log4j::Logger* > org::apache::log4j::Logger::getLogger(java::lang::String*)' > :C:/logtest/test/gcj/LogTest.java:8: undefined reference to > `org::apache::log4j::Logger::class$' > collect2: ld returned 1 exit status Don't work with the command line version unless you know exactly what you're doing. You'll be well off using the GUI. Marco |
From: chosen f. <cho...@ya...> - 2007-08-30 03:03:13
|
Hi, I'm trying to create a simple program that uses log4j. Unfortunately, I can't seem to make it work. I've used 2 methods in creating the EXE: A. Using the JNC UI: 1. In Step 1, I indicated my the .java file of my program (in Files), the directory of my program (in Directories), and the log4j jar located in my program's directory (in Archives). 2. In Step 2, I set the main class by selecting my (only) java file. I only checked the Windows checkbox, and left everything else blank. 3. In Step 3, the only thing I enabled is the Show used commands checkbox. 4. When I try to compile my project (Step 4) I get an error : 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 while it's "processing log4j-1.2.13.jar". It seems that no .o file for my program was generated since it hasn't processed my program yet. B. Using the command line 1. I tried compiling my .java file using the command: gcj -c -g --classpath=C:\logtest\log4j-1.2.13.jar LogTest.java -o LogTest.o and it generated a LogTest.o file. 2. Then I tried to build the EXE using the command: gcj --main=test.gcj.LogTest -fjni -Llibs/win -Ilibs/win/gui/gui.jar -o C:\logtest\LogTest.exe -s -O2 -ljncNoGui -ljncNoJce -ljncTrial -IC:\logtest LogTest. and it shows an error : LogTest.o: In function `ZN4test3gcj7LogTest18__U3c_clinit(unsigned e_E, __complex void, void)':C:/logtest/test/gcj/LogTest.java:8: undefined reference to `org::a ache::log4j::Logger* org::apache::log4j::Logger::getLogger(java::lang::String*)' :C:/logtest/test/gcj/LogTest.java:8: undefined reference to `org::apache::log4j::Logger::class$' collect2: ld returned 1 exit status Now I'm stuck... Help would be much appreciated... Ariel Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: Amos W. <vla...@sp...> - 2007-08-22 06:54:53
|
Price for 100mg x 90 pills US $ 159.95 http://www.stretchstar.com |
From: Marco T. <mt...@gm...> - 2007-08-07 18:11:57
|
Spring Heart wrote: > I use JNC 1.1.1 on windows with gcc-122233-lin (~280Megs folder) > downloaded from JNC website several days ago. My OS is WinXP SP2 and I > had a problem while compiling my simple Helloworld code to run on > Linux as below. > > class HelloWorld > { > public static void main(String args[]) > { > System.out.println("Hello World!"); > } > } So it's HelloWorld.java or HelloWorld.class, right? > The Compiler returns this error message. > > creating "Hello.so" for Linux Why "Hello.so"? .so is a shared lib, you're creating a binary. But this has nothing to do with your problem. > - main compilation step > [C:\NativeCompiler\gcc-122233-lin\gcc-122233-lin\bin\gcj > --main=HeloWorld What now? HeloWorld.java? This has to be HelloWorld. > -fjni > -Djava.library.path=lib > -Dsun.java2d.fontpath= > -Djava.home=. > -Djava.awt.graphicsenv=sun.awt.X11GraphicsEnvironment You can exclude AWT/Swing, you don't need it for that simple application. But again, this has nothing to do with your problem. > -Llibs/lin > -Ilibs/lin/gui/gui.jar > -oC:\NativeCompiler\JavaNativeCompiler-1.1.1\Hello.so > -s > -O2 > -IC:\NativeCompiler @C:\DOCUME~1\user\LOCALS~1\Temp\JNCTempbvr71c.out\SourceListbvr71d.list] > C:\DOCUME~1\user\LOCALS~1\Temp/ccY9caaa.o: In function > `main':cc0Ecaaa.i:(.text+0x29): undefined reference to `HeloWorld::class$$' Here again, you're compiling HelloWorld but specify HeloWorld as main class. Hope that helps... Marco |
From: Spring H. <spr...@ya...> - 2007-08-07 17:14:39
|
I use JNC 1.1.1 on windows with gcc-122233-lin (~280Megs folder) downloaded from JNC website several days ago. My OS is WinXP SP2 and I had a problem while compiling my simple Helloworld code to run on Linux as below. class HelloWorld { public static void main(String args[]) { System.out.println("Hello World!"); } } The Compiler returns this error message. creating "Hello.so" for Linux - main compilation step [C:\NativeCompiler\gcc-122233-lin\gcc-122233-lin\bin\gcj --main=HeloWorld -fjni -Djava.library.path=lib -Dsun.java2d.fontpath= -Djava.home=. -Djava.awt.graphicsenv=sun.awt.X11GraphicsEnvironment -Llibs/lin -Ilibs/lin/gui/gui.jar -oC:\NativeCompiler\JavaNativeCompiler-1.1.1\Hello.so -s -O2 -IC:\NativeCompiler @C:\DOCUME~1\user\LOCALS~1\Temp\JNCTempbvr71c.out\SourceListbvr71d.list] C:\DOCUME~1\user\LOCALS~1\Temp/ccY9caaa.o: In function `main':cc0Ecaaa.i:(.text+0x29): undefined reference to `HeloWorld::class$$' collect2: ld returned 1 exit status failed... --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. |
From: Ben A. <ben...@st...> - 2007-06-25 09:05:19
|
Hello there I would greatly appreciate a small amount of your time to assist with my doctoral research at The University of Newcastle. The research concerns open source licensing and we're seeking developers working on Java projects. The research is supervised, ethics-approved, anonymous and results will be freely available. Participation will also provide a custom licensing report for your project. To learn more, please visit: http://licensing-research.newcastle.edu.au Thanks for reading this email, and I hope you'll consider participating. Best regards Ben Alex (My apologies for being off-topic; this list will not be emailed again) |
From: Lee D. P. <le...@3s...> - 2007-06-19 14:25:04
|
Marco, I have been looking to compile our application with JNC and we are now a step closer to moving this into production. The one concern I have, is that the java.text package in the latest release is from the Sun JRE. Our application is SWT and I'd like to exclude GUI stuff altogether, for size and licensing reasons. =20 The 1.0 version of JNC used java.text from the GNU classpath, I have absolutely not issues with this version of JNC and will continue to use it for the foreseeable future. My executable is an acceptable 2.3MB and I have no licensing issues. The 1.1 version includes java.text from the Sun JRE and so there are both licensing and size issues with this.=20 Changing our source code is not really an option; we use many of the date format functions of java.text as well as internationalization using ResourceBundles etc.=20 So my question, would you consider reverting back to GNU classpath for java.text in a future release (we have not encountered any problems with it so far). Or at least provide the option to use java.text from the GNU classpath so that we can continue to upgrade and use the latest version of JNC. Regards Lee |
From: Marco T. <mt...@gm...> - 2007-05-10 12:46:09
|
Norman Rieß wrote: > Hi, > > so here is the info you asked for: > > Operating System: > I compile on an openSuSE 10.2 (i586) an get the error on a SuSE Linux 9.2 > (i586). > > JNC version: > 1.1.1 - looked on the downloadsite today so i guess it is latest. > > GCJ: > gcj (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) Well, here we have the strange thing you're doing. Using my GUI with an foreign GCJ... If you mix software together, you should know what you're doing (or at least tell when you send bugreports ;-)). Why don't you use my version? Marco > Copyright (C) 2006 Free Software Foundation, Inc. > > Package from the SuSE Repository. > > What did you do: > of course NOTHING :-) > No serious. I added the sourcefiles and compiled them with standard > settings given in the GUI. It works on the machine i compiled on. Then i > tested the program on the other system, which is a console-only, very > small system. > The rest you know. > > Can you reproduce the problem with a simple "Hello World" application? > In fact i can! > > ----------------------------------- > package hellotest; > > > public class test { > > > public test() { > } > > > public static void main(String[] args) > { > System.out.println("Hello World!"); > } > > } > ------------------------------------------------- > > Works on the compiling machine > Still on the other machine: > ./hello > ./hello: error while loading shared libraries: libgcj.so.7: cannot open > shared object file: No such file or directory > > > > Am Do, 10.05.2007, 13:50, schrieb Marco Trudel: >> Hey Norman >> >> >> Norman Rieß wrote: >> >>> Hello List, >>> >>> >>> when i try to run my JNC-compiled Java-Code on an different machine >>> without gcj installed, i get the error: >>> >>> >>> ./AdminServer: error while loading shared libraries: libgcj.so.7: >>> cannot open shared object file: No such file or directory >> Can you give me some more info? >> - What operating system do you use? >> - Which JNC version? >> - Did you use a custom GCJ or mine? >> - What did you do? >> - Can you reproduce the problem with a simple "Hello World" application? >> >> >> There really shouldn't be a libgcj.so.7 dependency. My Linux binaries >> never had that... So I guess you're doing something strange or ran into a >> bug... >> >> >> Marco >> >> >>> I thought these binaries would need no runtimes or JRE any more. >>> Is this a mistake in my thinking or did i miss some settings to avoid >>> this and get a real stand alone application? >>> >>> Regards >>> Norman >>> >> > > |
From: Norman <no...@sm...> - 2007-05-10 12:16:59
|
Hi, so here is the info you asked for: Operating System: I compile on an openSuSE 10.2 (i586) an get the error on a SuSE Linux 9.2 (i586). JNC version: 1.1.1 - looked on the downloadsite today so i guess it is latest. GCJ: gcj (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) Copyright (C) 2006 Free Software Foundation, Inc. Package from the SuSE Repository. What did you do: of course NOTHING :-) No serious. I added the sourcefiles and compiled them with standard settings given in the GUI. It works on the machine i compiled on. Then i tested the program on the other system, which is a console-only, very small system. The rest you know. Can you reproduce the problem with a simple "Hello World" application? In fact i can! ----------------------------------- package hellotest; public class test { public test() { } public static void main(String[] args) { System.out.println("Hello World!"); } } ------------------------------------------------- Works on the compiling machine Still on the other machine: ./hello ./hello: error while loading shared libraries: libgcj.so.7: cannot open shared object file: No such file or directory Am Do, 10.05.2007, 13:50, schrieb Marco Trudel: > Hey Norman > > > Norman Rieß wrote: > >> Hello List, >> >> >> when i try to run my JNC-compiled Java-Code on an different machine >> without gcj installed, i get the error: >> >> >> ./AdminServer: error while loading shared libraries: libgcj.so.7: >> cannot open shared object file: No such file or directory > > Can you give me some more info? > - What operating system do you use? > - Which JNC version? > - Did you use a custom GCJ or mine? > - What did you do? > - Can you reproduce the problem with a simple "Hello World" application? > > > There really shouldn't be a libgcj.so.7 dependency. My Linux binaries > never had that... So I guess you're doing something strange or ran into a > bug... > > > Marco > > >> I thought these binaries would need no runtimes or JRE any more. >> Is this a mistake in my thinking or did i miss some settings to avoid >> this and get a real stand alone application? >> >> Regards >> Norman >> > > |
From: Marco T. <mt...@gm...> - 2007-05-10 11:50:51
|
Hey Norman Norman Rieß wrote: > Hello List, > > when i try to run my JNC-compiled Java-Code on an different machine > without gcj installed, i get the error: > > > ./AdminServer: error while loading shared libraries: libgcj.so.7: cannot > open shared object file: No such file or directory Can you give me some more info? - What operating system do you use? - Which JNC version? - Did you use a custom GCJ or mine? - What did you do? - Can you reproduce the problem with a simple "Hello World" application? There really shouldn't be a libgcj.so.7 dependency. My Linux binaries never had that... So I guess you're doing something strange or ran into a bug... Marco > I thought these binaries would need no runtimes or JRE any more. > Is this a mistake in my thinking or did i miss some settings to avoid this > and get a real stand alone application? > > Regards > Norman |
From: Norman <no...@sm...> - 2007-05-10 10:18:32
|
Hello List, when i try to run my JNC-compiled Java-Code on an different machine without gcj installed, i get the error: ./AdminServer: error while loading shared libraries: libgcj.so.7: cannot open shared object file: No such file or directory I thought these binaries would need no runtimes or JRE any more. Is this a mistake in my thinking or did i miss some settings to avoid this and get a real stand alone application? Regards Norman |
From: Marco T. <mt...@gm...> - 2007-03-31 10:12:10
|
Jer A wrote: > thanks for all your help. > > I am running win xp, sp2 - so it is for windows Well, not necessarily. You could also want to crosscompile for Linux ;-) > jnc 1.1.1, gcc-122233-win,swt-M20070212-1330-win32-win32-x86 Ok, you didn't tell me if you want... - a complete compilation or one for needed references only. I did a complete compilation (took 17 minutes on my laptop) - an optimized compilation or one with debug info. So I did an optimized compilation. Here you go: http://mtsystems.ch/tmp/swt-win.jar.o Please note: - You need to check the box for swt.jar. Otherwise swt.jar will be compiled because there's no cached archive for swt.jar which is for compilation with needed references only. - You can't exclude AWT/Swing swing because the SWT-AWT bridge from swt needs it. - When everything works as you with, you can drastically reduce the size of the final binary by compiling swt.jar so that only needed references are pulled in and by excluding AWT/Swing. Marco > -Jer > >> From: Marco Trudel <mt...@gm...> >> To: Jer A <jer...@ho...>, "A mailing list for general >> questions and discussions." <jav...@li...> >> Subject: Re: [jnc-users] SWT compile issue >> Date: Sat, 31 Mar 2007 10:50:41 +0200 >> >> Please always reply to all, otherwise we loose the mailinglist... >> >> Jer A wrote: >>> Marco, >>> Can you send me your compiled cached swt jar. >> >> Well, you only told me that you use the current swt-3.2.2. You didn't >> tell me if you compile for Windows or Linux and if you want a complete >> compilation of swt.jar or one which only uses references. Also I need >> to know about optimization or debugging info. >> So there are 16 possibilities and each will be about 10mb. Not to >> think about each time you update swt or downgrade because of bugs in >> the current version. >> So I really would prefer if you could compile it yourself. Anyway, I >> could compile one to get you started... >> >> >>> I never got around to finishing compiling....I have an old school >>> Athlon 1400, 400-something ram. It's been taking hours.... >> >> Yeah, ~400mb Ram might be a little less. But still it should do... Did >> you try to increase the swap (might be called "virtual RAM" on >> Windows)? One or two gb should do ;-) >> >> >>> I just downloaded the current release of swt, >>> swt-3.2.2-win32-win32-x86.zip. >>> >>> I would like to give SWT a try, as swing is slow. >> >> You don't need to compile your application to native just to give SWT >> a try. Just run it in a usual JVM... >> >> >>> Where would I put [your] cached swt...what folder? >> >> The same as your swt.jar. >> >> >>> Thanks in advance for all your help, and prompt response. >> >> You're welcome... >> >> >> Marco > > _________________________________________________________________ > Your Space. Your Friends. Your Stories. Share your world with Windows > Live Spaces. http://spaces.live.com/?mkt=en-ca > |
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... |
From: Jer A <jer...@ho...> - 2007-03-31 08:57:12
|
thanks for all your help. I am running win xp, sp2 - so it is for windows jnc 1.1.1, gcc-122233-win,swt-M20070212-1330-win32-win32-x86 -Jer >From: Marco Trudel <mt...@gm...> >To: Jer A <jer...@ho...>, "A mailing list for general questions >and discussions." <jav...@li...> >Subject: Re: [jnc-users] SWT compile issue >Date: Sat, 31 Mar 2007 10:50:41 +0200 > >Please always reply to all, otherwise we loose the mailinglist... > >Jer A wrote: >>Marco, >>Can you send me your compiled cached swt jar. > >Well, you only told me that you use the current swt-3.2.2. You didn't tell >me if you compile for Windows or Linux and if you want a complete >compilation of swt.jar or one which only uses references. Also I need to >know about optimization or debugging info. >So there are 16 possibilities and each will be about 10mb. Not to think >about each time you update swt or downgrade because of bugs in the current >version. >So I really would prefer if you could compile it yourself. Anyway, I could >compile one to get you started... > > >>I never got around to finishing compiling....I have an old school Athlon >>1400, 400-something ram. It's been taking hours.... > >Yeah, ~400mb Ram might be a little less. But still it should do... Did you >try to increase the swap (might be called "virtual RAM" on Windows)? One or >two gb should do ;-) > > >>I just downloaded the current release of swt, >>swt-3.2.2-win32-win32-x86.zip. >> >>I would like to give SWT a try, as swing is slow. > >You don't need to compile your application to native just to give SWT a >try. Just run it in a usual JVM... > > >>Where would I put [your] cached swt...what folder? > >The same as your swt.jar. > > >>Thanks in advance for all your help, and prompt response. > >You're welcome... > > >Marco _________________________________________________________________ Your Space. Your Friends. Your Stories. Share your world with Windows Live Spaces. http://spaces.live.com/?mkt=en-ca |
From: Marco T. <mt...@gm...> - 2007-03-31 08:50:48
|
Please always reply to all, otherwise we loose the mailinglist... Jer A wrote: > Marco, > Can you send me your compiled cached swt jar. Well, you only told me that you use the current swt-3.2.2. You didn't tell me if you compile for Windows or Linux and if you want a complete compilation of swt.jar or one which only uses references. Also I need to know about optimization or debugging info. So there are 16 possibilities and each will be about 10mb. Not to think about each time you update swt or downgrade because of bugs in the current version. So I really would prefer if you could compile it yourself. Anyway, I could compile one to get you started... > I never got around to > finishing compiling....I have an old school Athlon 1400, 400-something > ram. It's been taking hours.... Yeah, ~400mb Ram might be a little less. But still it should do... Did you try to increase the swap (might be called "virtual RAM" on Windows)? One or two gb should do ;-) > I just downloaded the current release of > swt, swt-3.2.2-win32-win32-x86.zip. > > I would like to give SWT a try, as swing is slow. You don't need to compile your application to native just to give SWT a try. Just run it in a usual JVM... > Where would I put [your] cached swt...what folder? The same as your swt.jar. > Thanks in advance for all your help, and prompt response. You're welcome... Marco |
From: Marco T. <mt...@gm...> - 2007-03-31 08:28:22
|
Jer A wrote: > hello all, here is an SWT sample. > Why is it taking so looonnnnnnng to compile.... I think mainly because no one optimized GCJ/GCC for speed... It become even worse with GCJ 4.3... Other reasons might be your processor, RAM and swap... But you did notice that compiling swt.jar is only done once, right? It is cached in swt-[win|lin].jar.[a|o]. This will be reused in every compilation as soon as it exists... > does it really have to > process the entire swt.jar? even for reference? Yes, you don't know in advance which classes you need from swt.jar. Also what would happen if you took the cached swt.jar for another project? Marco > > thanks in advance for all your help. > -Jer A. > > -------------------------------------------- > > import org.eclipse.swt.widgets.Canvas; > import org.eclipse.swt.widgets.Display; > import org.eclipse.swt.widgets.Shell; > import org.eclipse.swt.events.PaintListener; > import org.eclipse.swt.events.PaintEvent; > import org.eclipse.swt.graphics.Rectangle; > > public class cexample2 { > > public static void main(String [] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > shell.addPaintListener(new PaintListener() { > public void paintControl (PaintEvent e) { > test.shell = shell; > test.paint(e); > } > }); > shell.setBounds(10, 10, 200, 200); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) display.sleep(); > } > display.dispose(); > } > > > static > { > Class c; > //c = javax.swing.plaf.metal.MetalLookAndFeel.class; > c = org.eclipse.swt.widgets.Canvas.class; > c = org.eclipse.swt.widgets.Display.class; > c = org.eclipse.swt.widgets.Shell.class; > c = org.eclipse.swt.events.PaintListener.class; > > //c = javax.media.j3d.WakeupOnActivation.class; > } > > } > > > class test { > > public static Shell shell = null; > > public static void paint(PaintEvent event) { > Rectangle rect = shell.getClientArea(); > event.gc.drawOval(0, 0, rect.width - 1, rect.height - 1); > } > > } > > _________________________________________________________________ > RealLiveMoms: Share your experience with Real Live Moms just like you > http://www.reallivemoms.ca/ > > > ------------------------------------------------------------------------- > 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 > |
From: Jer A <jer...@ho...> - 2007-03-31 08:13:12
|
hello all, here is an SWT sample. Why is it taking so looonnnnnnng to compile....does it really have to process the entire swt.jar? even for reference? thanks in advance for all your help. -Jer A. -------------------------------------------- import org.eclipse.swt.widgets.Canvas; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.events.PaintListener; import org.eclipse.swt.events.PaintEvent; import org.eclipse.swt.graphics.Rectangle; public class cexample2 { public static void main(String [] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.addPaintListener(new PaintListener() { public void paintControl (PaintEvent e) { test.shell = shell; test.paint(e); } }); shell.setBounds(10, 10, 200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } static { Class c; //c = javax.swing.plaf.metal.MetalLookAndFeel.class; c = org.eclipse.swt.widgets.Canvas.class; c = org.eclipse.swt.widgets.Display.class; c = org.eclipse.swt.widgets.Shell.class; c = org.eclipse.swt.events.PaintListener.class; //c = javax.media.j3d.WakeupOnActivation.class; } } class test { public static Shell shell = null; public static void paint(PaintEvent event) { Rectangle rect = shell.getClientArea(); event.gc.drawOval(0, 0, rect.width - 1, rect.height - 1); } } _________________________________________________________________ RealLiveMoms: Share your experience with Real Live Moms just like you http://www.reallivemoms.ca/ |
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: 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: 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-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-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 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 |