javacompiler-users Mailing List for javaCompiler
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: <ge...@no...> - 2014-01-24 10:08:44
|
Dear Marco, thank you for answering so quickly! > Sounds like the problem explained in the Manual. Not really. The lines in the manual on SWT are about a problem that occurs when one is already able to work with SWT on JNC. But it only took me another night to find out what must be done to get there: - Download swt-4.4M4-win32-win32-x86.zip from http://download.eclipse.org/eclipse/downloads/drops4/S-4.4M4-201312121600/ - From that archive, extract swt.jar and add its name to the bottom box on the "Step 1" page (now I see the checkbox). - From swt.jar, extract swt-win32-4413.dll and move it to the "lib" subdirectory of the folder where the executable is compiled to. Then the SWT "Hello World" example can be compiled without any problems, and the created binary works as expected. Too trivial for a manual or FAQ? Not for a beginner. Maybe one day you change your mind about abandoning your work that appears to be so useful after one has overcome the very first problems! Regards, Gerolf |
From: Marco T. <ma...@mt...> - 2014-01-23 10:17:46
|
Hi Gerolf On 01/23/2014 06:30 AM, ge...@no... wrote: > Dear Marco, > > being a newbie, I first wanted to make sure that I can produce > executable binaries before I waste too much time learning Java, I'm not maintaining JNC anymore. Either it works out of the box for you or you have to look for another solution. The only other native compiler I know is Excelsior Jet. It's a full blown native compiler that will work for you, but it is not exactly cheap. But maybe wrapping your program into a binary instead of real native compilation will be sufficient for your case. There are many solutions doing that. And I don't think you will waste time learning Java. It doesn't matter if you will be using it as your main language or not. The more languages you know, the better a programmer you will be (and the easier it will be to learn even more programming languages). > 3. The same thing happened when I compiled the AWT text editor > example. I thought I must have made a silly mistake concerning > the installation folders or the JNC settings, but then I noticed > that the archive already contained pre-compiled binaries - and > these ones failed in the same way, on both Windows and Linux! This is a known thread race problem (meaning I know about it). AWT has a bug that happens to work with the threading implementation of the Sun/Oracle JVM. But actually it shouldn't according to the Java threading specs which are how GCJ implemented it. The GCJ guys actually wanted to implement it the Sun/Oracle JVM way but have a bug that makes it only compatible with the threading specs. > 4. As you recommend using SWT stating that it is fully supported > while AWT and Swing support is still experimental, I tried to > compile a "Hello World" program using SWT: > http://www.mkyong.com/swt/swt-hello-world-example/ > Here I inevitably got "import cannot be resolved" error messages. > So in the FAQ a hint for the newbies on how to use SWT with JNC > would be helpful. Sounds like the problem explained in the Manual. http://jnc.mtsystems.ch/more_info.html -> Manuals. > I got the impression that you made a severe mistake in "bundling" a > somewhat buggy GCC with your latest version of JNC If I understand you right, then you mean that the AWT examples start with the older GCJ version, but not with the newer GCJ version (compilation works in both). This is the problem I explained above; a thread race. The problem exists in both JNC/GCJ versions. Mostly the GUI won't open, sometimes it will. Seems for you it just happened to opened with the older version (probably due to the smaller binary). > I do not hear a "beep when done", Maybe the beeping offered in the old SWT version used for the JNC GUI doesn't work with the latest Windows/Debian releases. Or maybe your internal speaker is disabled/nonexistent. Doesn't sound too critical to me. > and I do not understand the line "Checkbox: Compile complete jar" > on the "Step 1" page since there is no checkbox. I see checkboxes: http://jnc.mtsystems.ch/images/screenshots/3-source.png > So what about a version 1.1.2 bugfix to state that JNC is still alive? I'm not maintaining JNC anymore. Also I think GCJ is not maintained anymore. > On my side, I think I will continue "playing" with JNC. I like it. It sounds to me that it's not worth the time. If you learn one (or better: multiple) programming languages without worrying about compilation, your time will probably be invested better. Cheers! Marco |
From: <ge...@no...> - 2014-01-23 05:52:05
|
Dear Marco, being a newbie, I first wanted to make sure that I can produce executable binaries before I waste too much time learning Java, so I spent half a week playing with your JavaNativeCompiler version 1.1.1, together with GCC version 122233, as linked on your download page. I use Windows 7 and Debian 7.3 (64 bit both). 1. There were no problems compiling a "Hello World" program that writes directly to the console using the "System.out.println" command; the created binary worked as expected. 2. This was not the case, however, with a "Hello World" program using AWT: http://www.xinotes.org/notes/note/1105/ Here I ran into a problem similar to that one "Cyber Legionnaire" described on September 24th, 2006: > I've compiled some source files using JavaCompiler. The .EXE is > created but when I try to run it, I briefly see a blank console > window and the program terminates. No error message, no nothing. http://sourceforge.net/mailarchive/forum.php?thread_name=45178178.4090807%40gmx.ch&forum_name=javacompiler-users In my case, I just saw the "Demo" message box, and the Windows task manager listed a running 40 MB process, but no "Hello World" window was visible. 3. The same thing happened when I compiled the AWT text editor example. I thought I must have made a silly mistake concerning the installation folders or the JNC settings, but then I noticed that the archive already contained pre-compiled binaries - and these ones failed in the same way, on both Windows and Linux! 4. As you recommend using SWT stating that it is fully supported while AWT and Swing support is still experimental, I tried to compile a "Hello World" program using SWT: http://www.mkyong.com/swt/swt-hello-world-example/ Here I inevitably got "import cannot be resolved" error messages. So in the FAQ a hint for the newbies on how to use SWT with JNC would be helpful. 5. Then I finally had luck running the binary that comes with the 1.1 version of the AWT text editor example. I noticed that the process now was only 30 MB large in the task manager listing, though the source file was the same as in the 1.1.1 version. So I supposed that this might be caused by the involved GCC, which is version 121694 here. And when I simply downloaded that older version of GCC and used it with JNC 1.1.1, (nearly) everything was just fine: I suddenly could compile the AWT "Hello World" program and the AWT text editor, and both showed up as desired! (Okay, the letters were missing in "Hello World"... but what a success!) I got the impression that you made a severe mistake in "bundling" a somewhat buggy GCC with your latest version of JNC, over the years possibly disappointing lots of prospect customers who made the same experience as I did. By the way, I do not hear a "beep when done", and I do not understand the line "Checkbox: Compile compete jar" on the "Step 1" page since there is no checkbox. So what about a version 1.1.2 bugfix to state that JNC is still alive? And will you continue working on JNC when there is some progress with GJC? On my side, I think I will continue "playing" with JNC. I like it. Regards, Gerolf |
From: Syed A. <sye...@sb...> - 2013-01-31 08:07:24
|
hello! http://www.bodegadeparrado.es/components/com_content/contrl.php?2i8y5zr2=77bbo Syed Ahmed 1/31/2013 9:07:14 AM |
From: Syed A. <sye...@sb...> - 2013-01-31 02:12:56
|
hi! http://www.247computerrepair.com/components/com_content/contrl.php?eytjb6=399 Syed Ahmed |
From: Marco T. <ma...@mt...> - 2012-02-17 10:17:33
|
On 17.02.2012 10:42, Me Myself and I wrote: > Is there a version of JNC java compiler that > - supports 1.5 syntax > - is posted on sourceforge, and does not include a demo message in result > programs > - is available to compile programs commercially, within the JNC > compiler's use license? > - Which version number is it, out of the sourceforce version folders for > this project? All JNC releases are on sourceforge. I don't remember the specifics of each of them. Just check the release notes and try for yourself. > I can't get my java 1.5 to compile: I get > //---------------------------------------------------------------- > creating "Program.exe" for Windows > - main compilation step > Can't run the command, "C:\Users\User\bin\gcj" doesn't exist! > failed... > //---------------------------------------------------------------- > > How do I get this message to go away and just have it compile java > 1.5 source code? By also downloading gcc and put it into the right place as described on the JNC download page. Cheers! Marco |
From: Me M. a. I <sta...@li...> - 2012-02-17 09:42:32
|
Is there a version of JNC java compiler that -supports 1.5 syntax -is posted on sourceforge, and does not include a demo message in result programs -is available to compile programs commercially, within the JNC compiler's use license? -Which version number is it, out of the sourceforce version folders for this project? *And by the way, I can't get my java 1.5 to compile: I get //---------------------------------------------------------------- creating "Program.exe" for Windows - main compilation step Can't run the command, "C:\Users\User\bin\gcj" doesn't exist! failed... //---------------------------------------------------------------- -How do I get this message to go away and just have it compile java 1.5 source code? |
From: Marco T. <ma...@mt...> - 2011-10-27 08:37:22
|
Dear Hirak You can try two things: - Don't compile the complete jar (step 1). - Add "-findirect-dispatch" as custom GCJ flag (step 3). This way you don't have to provide the missing jars. Hope that helps Marco On 27.10.2011 00:19, Hirak Banerjee wrote: > Hi, > I'm attempting to generate an executable for a Spring application. I am > packaging my compiled source code into a jar. This jar along with the > spring jars are added to the JNC project. However, when I try to > compile, it throws an error trying to process the spring.jar. > It appears as though the compiler requires additional jars(like > aspectjrt) that Spring references in its source, but those are not > required if I simply run my application as a Java application. Can > someone please confirm if this is expected? > If so, then is there a way to compute the complete list of referenced jars? > Just trying to find out if there's any way, other than trying to compile > repeatedly and adding jars one at a time. > Thanks, > Hirak > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > > > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: Hirak B. <hir...@gm...> - 2011-10-26 22:19:43
|
Hi, I'm attempting to generate an executable for a Spring application. I am packaging my compiled source code into a jar. This jar along with the spring jars are added to the JNC project. However, when I try to compile, it throws an error trying to process the spring.jar. It appears as though the compiler requires additional jars(like aspectjrt) that Spring references in its source, but those are not required if I simply run my application as a Java application. Can someone please confirm if this is expected? If so, then is there a way to compute the complete list of referenced jars? Just trying to find out if there's any way, other than trying to compile repeatedly and adding jars one at a time. Thanks, Hirak |
From: Marco T. <ma...@mt...> - 2010-10-18 15:50:53
|
Dear Marko I'm afraid there is no solution for that. And since I don't maintain JNC any more, there probably never will be :-/ Have a nice day Marco On 18.10.2010 16:34, Marko Mocnik wrote: > Hello, > > I'm experiencing a problem with https URLs in jnc compiled apps: > java.net.MalformedURLException: Protocol handler not found: https > at java.net.URL.<init> > ... > > I found this in the mailinglist archive and was wondering if there finally > is a solution for it: > https://sourceforge.net/mailarchive/forum.php?thread_name=BAY130-F31647EAA3A956C1BC48151C2800%40phx.gbl&forum_name=javacompiler-users > > Thanks and regards, > Marko > > > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > > > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: Marko M. <mar...@ex...> - 2010-10-18 14:58:19
|
Hello, I'm experiencing a problem with https URLs in jnc compiled apps: java.net.MalformedURLException: Protocol handler not found: https at java.net.URL.<init> ... I found this in the mailinglist archive and was wondering if there finally is a solution for it: https://sourceforge.net/mailarchive/forum.php?thread_name=BAY130-F31647EAA3A956C1BC48151C2800%40phx.gbl&forum_name=javacompiler-users Thanks and regards, Marko -- exthex GmbH - explore the excellence Marko Mocnik Software Engineer Göstinger Straße 213 A-8051 Graz phone: +43 316 269 898-0 mobile:+43 676 898 464 100 fax: +43 316 269 898 269 http://www.exthex.com - - - - - - - - - - - - - - - be e-nnovative, be excellent! - - - - - - - - - - - - - - - The informations in this message serve only for purposes of information, must be kept strictly confidential and are intended solely for the addressee. The sender does not make any legally binding statements via e-mail. If the recipient of this message is not the addressee, one of his employees or his authorized representative, he gets hereby notified that the content of the message may not be used, forwarded or reproduced. If you have received this message erroneously, please notify the sender immediately and delete the message from your system! - - - - - - - - - - - - - - Die Informationen in dieser Nachricht dienen ausschließlich Informationszwecken, sind vertraulich und ausschließlich für den Adressaten bestimmt. Der Absender äußert keine rechtsgeschäftlichen Erklärungen via E-Mail. Der Empfänger dieser Nachricht, der nicht der Adressat, einer seiner Mitarbeiter oder sein Empfangsbevollmächtigter ist, wird hiermit davon in Kenntnis gesetzt, dass er deren Inhalt nicht verwenden, weitergeben oder reproduzieren darf. Sollten sie diese Nachricht irrtümlicherweise erhalten haben, benachrichtigen sie bitte den Absender unverzüglich und löschen sie die Nachricht von Ihrem System! |
From: Marco T. <ma...@mt...> - 2010-08-03 19:39:38
|
On 03.08.2010 19:32, paul smith wrote: > > > ------------------------------------------------------------------------ > *From:* Marco Trudel <ma...@mt...> > *To:* paul smith <pgs...@ya...> > *Cc:* jav...@li... > *Sent:* Tue, 3 August, 2010 11:35:10 > *Subject:* Re: [jnc-users] exe won't run on one of my computers > > Hey Paul > > On 02.08.2010 20:56, paul smith wrote: > > I compiled a program on the machine where I installed JNC and it worked > > fine. > > Did you read the compilation messages? See below... > > > I then copied the the exe file to another computer and it gave the > > following output when it ran: > > Exception in thread "main" java.lang.unsatisfiedlinkerror: util can't > > open the module > > at > > java.runtime._load(con4sc3.exe)..... > > Sounds like you didn't copy the "lib" directory that was put in the same > location as the compiled binary. There is a message at compilation time > explaining that you need that directory. > There was no message. Here's the compiler output: > <snip> Well, delete the lib directory and press compile again ;-) The message is only shown at the first compilation when the additional files are being copied. At least as far as I remember... It's quite a while ago I programmed that. > > > Both computers are running vista and the program uses some graphics from > > awt. > > When I do the same test with "helloworld" it runs on both computers. > > Because it doesn't need any additional dlls at runtime. > > > Hope that helps > Yes. I copied the lib directory and it works. Thanks. > I have to start the application twice from the console to get it to > display. The first time the application runs and finishes without > displaying the graphics - that is it goes back to the command prompt on > the console. The second time it works correctly. It's the same on both > machines (running vista). There's a thread race in GCJ. AWT is almost always running into it. SWT is working much better... Hope that helps Marco |
From: paul s. <pgs...@ya...> - 2010-08-03 17:32:15
|
________________________________ From: Marco Trudel <ma...@mt...> To: paul smith <pgs...@ya...> Cc: jav...@li... Sent: Tue, 3 August, 2010 11:35:10 Subject: Re: [jnc-users] exe won't run on one of my computers There was no message. Here's the compiler output: creating "con4sc3.exe" for Windows - main compilation step D:\c4\con4sc3.java:2: warning: The import java.lang.Math is never used import java.lang.Math; ^^^^^^^^^^^^^^ D:\c4\con4sc3.java:3: warning: The import java.applet is never used import java.applet.*; ^^^^^^^^^^^ D:\c4\con4sc3.java:7: warning: The serializable class con4sc3 does not declare a static final serialVersionUID field of type long public class con4sc3 extends Frame implements KeyListener, ActionListener { ^^^^^^^ D:\c4\con4sc3.java:702: warning: The serializable class AboutDialog does not declare a static final serialVersionUID field of type long class AboutDialog extends Dialog implements ActionListener{ ^^^^^^^^^^^ D:\c4\con4sc3.java:769: warning: The serializable class QuitDialog does not declare a static final serialVersionUID field of type long class QuitDialog extends Dialog implements ActionListener{ ^^^^^^^^^^ 5 problems (5 warnings) - packing binary done > Both computers are running vista and the program uses some graphics from > awt. > When I do the same test with "helloworld" it runs on both computers. Because it doesn't need any additional dlls at runtime. Hope that helps Yes. I copied the lib directory and it works. Thanks. I have to start the application twice from the console to get it to display. The first time the application runs and finishes without displaying the graphics - that is it goes back to the command prompt on the console. The second time it works correctly. It's the same on both machines (running vista). Marco > Please can anyone help with the problem? > Paul. > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > > > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users Hey Paul On 02.08.2010 20:56, paul smith wrote: > I compiled a program on the machine where I installed JNC and it worked > fine. Did you read the compilation messages? See below... > I then copied the the exe file to another computer and it gave the > following output when it ran: > Exception in thread "main" java.lang.unsatisfiedlinkerror: util can't > open the module > at > java.runtime._load(con4sc3.exe)..... Sounds like you didn't copy the "lib" directory that was put in the same location as the compiled binary. There is a message at compilation time explaining that you need that directory. |
From: Marco T. <ma...@mt...> - 2010-08-03 11:01:59
|
Hey Paul On 02.08.2010 20:56, paul smith wrote: > I compiled a program on the machine where I installed JNC and it worked > fine. Did you read the compilation messages? See below... > I then copied the the exe file to another computer and it gave the > following output when it ran: > Exception in thread "main" java.lang.unsatisfiedlinkerror: util can't > open the module > at > java.runtime._load(con4sc3.exe)..... Sounds like you didn't copy the "lib" directory that was put in the same location as the compiled binary. There is a message at compilation time explaining that you need that directory. > Both computers are running vista and the program uses some graphics from > awt. > When I do the same test with "helloworld" it runs on both computers. Because it doesn't need any additional dlls at runtime. Hope that helps Marco > Please can anyone help with the problem? > Paul. > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > > > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: paul s. <pgs...@ya...> - 2010-08-02 18:56:23
|
I compiled a program on the machine where I installed JNC and it worked fine. I then copied the the exe file to another computer and it gave the following output when it ran: Exception in thread "main" java.lang.unsatisfiedlinkerror: util can't open the module at java.runtime._load(con4sc3.exe)..... Both computers are running vista and the program uses some graphics from awt. When I do the same test with "helloworld" it runs on both computers. Please can anyone help with the problem? Paul. |
From: Marko M. <mar...@ex...> - 2010-07-08 10:23:05
|
Hi, Every time I try to compile a jar which contains package-info.class es I get the following error: C:\Users\mmocnik\AppData\Local\Temp/ccSybaaa.s: Assembler messages: C:\Users\mmocnik\AppData\Local\Temp/ccSybaaa.s:2: Error: bad or irreducible absolute expression C:\Users\mmocnik\AppData\Local\Temp/ccSybaaa.s:2: Error: junk at end of line, first unrecognized character is `,' C:\Users\mmocnik\AppData\Local\Temp/ccSybaaa.s:12: Error: invalid character '_' in mnemonic C:\Users\mmocnik\AppData\Local\Temp/ccSybaaa.s:15: Error: invalid character '_' in mnemonic C:\Users\mmocnik\AppData\Local\Temp/ccSybaaa.s:19: Error: invalid character '_' in mnemonic Is there a way to get rid of this error? If not, can I somehow filter those package-infos without manually removing them from the jar? Thanks and regards, Marko -- exthex GmbH - explore the excellence Marko Mocnik Software Engineer Göstinger Straße 213 A-8051 Graz phone: +43 316 269 898-0 mobile:+43 676 898 464 100 fax: +43 316 269 898 269 http://www.exthex.com - - - - - - - - - - - - - - - be e-nnovative, be excellent! - - - - - - - - - - - - - - - The informations in this message serve only for purposes of information, must be kept strictly confidential and are intended solely for the addressee. The sender does not make any legally binding statements via e-mail. If the recipient of this message is not the addressee, one of his employees or his authorized representative, he gets hereby notified that the content of the message may not be used, forwarded or reproduced. If you have received this message erroneously, please notify the sender immediately and delete the message from your system! - - - - - - - - - - - - - - Die Informationen in dieser Nachricht dienen ausschließlich Informationszwecken, sind vertraulich und ausschließlich für den Adressaten bestimmt. Der Absender äußert keine rechtsgeschäftlichen Erklärungen via E-Mail. Der Empfänger dieser Nachricht, der nicht der Adressat, einer seiner Mitarbeiter oder sein Empfangsbevollmächtigter ist, wird hiermit davon in Kenntnis gesetzt, dass er deren Inhalt nicht verwenden, weitergeben oder reproduzieren darf. Sollten sie diese Nachricht irrtümlicherweise erhalten haben, benachrichtigen sie bitte den Absender unverzüglich und löschen sie die Nachricht von Ihrem System! |
From: Marco T. <ma...@mt...> - 2010-06-11 07:10:00
|
Hey Kamesh If you have the same classes in multiple jars, then the cleanest thing to do would be to delete them in all except one jar. Anyway, you're probably looking for a workaround. So, adding "-Wl,--allow-multiple-definition" as custom compilation flag should do the trick. Hope that helps Marco On 10.06.2010 19:31, Kameswara Rao Bhiravabhatla wrote: > Hi, > My program uses Spring and Xalan libraries. I am using latest JNC to > compile my program on Windows into an exe. When I check the checkbox > "Compile complete jar", it gives me errors like "multiple definition > of...". > Example: > multiple definition of > `org::w3c::dom::xpath::XPathException::XPathException(short, > java::lang::String*)' > /lib/xalan-2.5.1-win.jar.o:xalan-2.5.1.jar:(.text+0x579520): first > defined here > /javanativecompiler-1.1.1/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.0/../../../libgcj.a(org-w3c.o): > In function > `ZN3org3w3c3dom6events14EventExceptionC1EsPN4java4lang6StringE':/usr/local/src/gcc/libjava/classpath/external/w3c_dom/org/w3c/dom/events/EventException.java:24: > multiple definition of `org::w3c::dom::xpath::XPathExpression::class$$' > If I do not check the Checkbox, the xalan libraries are not included in > my executable since they are invoked dynamically by Spring. > Can anyone please let me know how to resolve this issue. Is there a way > to mention the compiler to take one of the definitions (both are same) > but only exist in different jar files. > Thanks, > Kamesh > > > > iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 > by Business Today-Mercer Human Resource Consulting-TNS in a cross > industry survey of Best Companies to work for in India > ----------------------------------------------------------------DISCLAIMER--------------------------------------------------------- > Information transmitted by this EMAIL is proprietary to iGATE Group of > Companies and is intended for use only by the individual > or entity to whom it is addressed and may contain information that is > privileged, confidential, or exempt from disclosure under > applicable law. If you are not the intended recipient of this EMAIL > immediately notify the sender at iGATE or mai...@ig... > and delete this EMAIL including any attachments > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: Kameswara R. B. <B.K...@ig...> - 2010-06-10 17:31:56
|
Hi, My program uses Spring and Xalan libraries. I am using latest JNC to compile my program on Windows into an exe. When I check the checkbox "Compile complete jar", it gives me errors like "multiple definition of...". Example: multiple definition of `org::w3c::dom::xpath::XPathException::XPathException(short, java::lang::String*)' /lib/xalan-2.5.1-win.jar.o:xalan-2.5.1.jar:(.text+0x579520): first defined here /javanativecompiler-1.1.1/javanativecompiler-1.1.1/gcc-122233-win/bin/../lib/gcc/i686-pc-mingw32/4.3.0/../../../libgcj.a(org-w3c.o): In function `ZN3org3w3c3dom6events14EventExceptionC1EsPN4java4lang6StringE':/usr/local/src/gcc/libjava/classpath/external/w3c_dom/org/w3c/dom/events/EventException.java:24: multiple definition of `org::w3c::dom::xpath::XPathExpression::class$$' If I do not check the Checkbox, the xalan libraries are not included in my executable since they are invoked dynamically by Spring. Can anyone please let me know how to resolve this issue. Is there a way to mention the compiler to take one of the definitions (both are same) but only exist in different jar files. Thanks, Kamesh iGATE is Ranked No. 1 in DQ-IDC best IT employer survey and Ranked No.2 by Business Today-Mercer Human Resource Consulting-TNS in a cross industry survey of Best Companies to work for in India ----------------------------------------------------------------DISCLAIMER--------------------------------------------------------- Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mai...@ig... and delete this EMAIL including any attachments |
From: Keith B. <kei...@fl...> - 2009-12-03 12:42:25
|
Thanks very much for your time Marco, I'll update this thread when I do find whatever the solution is. It could well be simply switching to another parser! Keith |
From: Marco T. <ma...@mt...> - 2009-12-03 11:33:04
|
Keith Boynton wrote: > Indeed, so am I correct though that it is impossible to control the > order of the Custom GCJ Flags in JNC? I don't remember how I implemented it, sorry. So if the order in the GUI is not maintained in the compilation, then you could adapt the sources for the GUI frontend. Shouldn't be too hard... But I think you're trying to ride a dead horse here. You already have all objects in your binary. You have nothing else to add that might help... Hope that helps Marco |
From: Keith B. <kei...@fl...> - 2009-12-03 10:53:53
|
Indeed, so am I correct though that it is impossible to control the order of the Custom GCJ Flags in JNC? |
From: Marco T. <ma...@mt...> - 2009-12-03 10:04:25
|
Dear Keith Then the problem is more complicated and requires a closer look at the compilation and the GCJ source... So I'm afraid I can't help you since, as you already discovered, I discontinued JNC. Of course you could also try to use another xml library... Sorry for the bad news Marco Keith Boynton wrote: > Hi Marco, > > You're too fast at replying. Sorry I should have made myself more clear. > I have done your suggestion and that is the error that I get now I've > done as you said. > > Here's a dump of the options that give me this error: > > gcc-122233-win\bin\gcj > --main=com.flare.applications.FileSquirrel.App > -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:\JavaNC\projects\FileSquirrel\compiled\filesquirrel.exe > -s > -O2 > C:\JavaNC\projects\FileSquirrel\lib\* > -Wl,--allow-multiple-definition > -findirect-dispatch > -ljncTrial > -IC:\Users\Keith Boynton\Documents\EclipseWorkspace\File > Squirrel\bin\fileSquirrel.jar > -IC:\Users\Keith > Boynton\Documents\EclipseWorkspace\FlareSDK\bin\flaresdk.jar > -IC:\JavaNC\projects\FileSquirrel\jars\imap.jar > -IC:\JavaNC\projects\FileSquirrel\jars\smtp.jar > -IC:\JavaNC\projects\FileSquirrel\jars\dsn.jar > -IC:\JavaNC\projects\FileSquirrel\jars\pop3.jar > -IC:\JavaNC\projects\FileSquirrel\jars\commons-io-1.2.jar > -IC:\JavaNC\projects\FileSquirrel\jars\jaxen-1.1.jar > -IC:\JavaNC\projects\FileSquirrel\jars\mailapi.jar > -IC:\JavaNC\projects\FileSquirrel\jars\log4j-1.2.13.jar > -IC:\JavaNC\projects\FileSquirrel\jars\dom4j-1.6.1.jar > > @C:\Users\KEITHB~1\AppData\Local\Temp\JNCTempnmusjg.out\SourceListnmusjh.list > > > > Note. C:\JavaNC\projects\FileSquirrel\lib\* is the location where I > extracted the objects to (it was c:\temp\templib\* in our previous > discussions). > > Doing your suggestion did get me past the previous NoClassDefFound error > (org.xml.sax.EntityResolver) but now I'm battling with this one: > Exception in thread "main" java.lang.NoClassDefFoundError: > java.text.DecimalFormat > at gnu.xml.transform.Stylesheet.initDefaultDecimalFormat > > The GCJ folks reckon it was something to do with the properties objects > hence their suggestion: > http://gcc.gnu.org/ml/java/2009-11/msg00084.html > > I appreciate your time Marco, especially as I know you've discontinued > your work on JNC for now. > > Keith |
From: Keith B. <kei...@fl...> - 2009-12-03 09:57:12
|
Hi Marco, You're too fast at replying. Sorry I should have made myself more clear. I have done your suggestion and that is the error that I get now I've done as you said. Here's a dump of the options that give me this error: gcc-122233-win\bin\gcj --main=com.flare.applications.FileSquirrel.App -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:\JavaNC\projects\FileSquirrel\compiled\filesquirrel.exe -s -O2 C:\JavaNC\projects\FileSquirrel\lib\* -Wl,--allow-multiple-definition -findirect-dispatch -ljncTrial -IC:\Users\Keith Boynton\Documents\EclipseWorkspace\File Squirrel\bin\fileSquirrel.jar -IC:\Users\Keith Boynton\Documents\EclipseWorkspace\FlareSDK\bin\flaresdk.jar -IC:\JavaNC\projects\FileSquirrel\jars\imap.jar -IC:\JavaNC\projects\FileSquirrel\jars\smtp.jar -IC:\JavaNC\projects\FileSquirrel\jars\dsn.jar -IC:\JavaNC\projects\FileSquirrel\jars\pop3.jar -IC:\JavaNC\projects\FileSquirrel\jars\commons-io-1.2.jar -IC:\JavaNC\projects\FileSquirrel\jars\jaxen-1.1.jar -IC:\JavaNC\projects\FileSquirrel\jars\mailapi.jar -IC:\JavaNC\projects\FileSquirrel\jars\log4j-1.2.13.jar -IC:\JavaNC\projects\FileSquirrel\jars\dom4j-1.6.1.jar @C:\Users\KEITHB~1\AppData\Local\Temp\JNCTempnmusjg.out\SourceListnmusjh.list Note. C:\JavaNC\projects\FileSquirrel\lib\* is the location where I extracted the objects to (it was c:\temp\templib\* in our previous discussions). Doing your suggestion did get me past the previous NoClassDefFound error (org.xml.sax.EntityResolver) but now I'm battling with this one: Exception in thread "main" java.lang.NoClassDefFoundError: java.text.DecimalFormat at gnu.xml.transform.Stylesheet.initDefaultDecimalFormat The GCJ folks reckon it was something to do with the properties objects hence their suggestion: http://gcc.gnu.org/ml/java/2009-11/msg00084.html I appreciate your time Marco, especially as I know you've discontinued your work on JNC for now. Keith |
From: Marco T. <ma...@mt...> - 2009-12-03 09:31:39
|
Dear Keith Pleas read my previous mail again and do what I wrote there (extract libgcj.a (e.g. to "D:\only_libgcj_tmp") and add all objects to the compilation (flag "D:\only_libgcj_tmp\*")). This way - as already said - all libgcj objects will end up in your binary and you can test if it works. If it does, you can slowly remove the object you don't need (or the other way around). You seem to have made your live unnecessary complicated with the current problem :-( The solution to the xml problem already solved this... Ah yeah, if you're working on Linux, the "*" will not work in "D:\only_libgcj_tmp\*". So you might want to edit the JNC config file yourself and add all objects to it. Hope that helps Marco Keith Boynton wrote: > Hi Marco, > > That certainly does help, I'm a little further down the road and am > battling with the following error now. > > Exception in thread "main" java.lang.NoClassDefFoundError: > java.text.DecimalFormat > at gnu.xml.transform.Stylesheet.initDefaultDecimalFormat(win32.exe) > > I've asked a few questions on the java-gcc mailing list, they've been > very helpful and have suggested the following: > > #copy libgcj to a working dir (could be in a different location than > /usr/lib/ for you) > mkdir -p /tmp/mess_with_libgcj > cd /tmp/mess_with_libgcj > cp /usr/lib/libgcj.a . > > #extract all the object from this library > ar x libgcj.a > > #make a lib with only the properties objects > ar rvcs libgcj_properties.a *properties*.o > #do the (sometimes superfluous) blessing of the lib > ranlib libgcj_properties.a > > #copy the lib to the system lib dir > cp libgcj_properties.a /usr/lib/ > > #goto your source project and this time link-in those properties objects > with --whole-archive, this forces the linker to include them even if > they aren't statically referenced > cd <your source build-tree> > *gcj* -o <your prog> -Wl,--whole-archive -lgcj_properties > -Wl,--no-whole-archive -static-libgcj --main=<your main> > > > > Now, I've tried add the flags (-Wl,--whole-archive -lgcj_properties > -Wl,--no-whole-archive) to the Custom GCJ flags section. However I can't > seem to add them in the correct order. JNC seems to re-order them for me > and it ends up: > -Wl,--whole-archive -Wl,--no-whole-archive -lgcj_properties > > Is this a restriction or am I missing something? > > Keith |
From: Keith B. <kei...@fl...> - 2009-12-03 09:21:54
|
Hi Marco, That certainly does help, I'm a little further down the road and am battling with the following error now. Exception in thread "main" java.lang.NoClassDefFoundError: java.text.DecimalFormat at gnu.xml.transform.Stylesheet.initDefaultDecimalFormat(win32.exe) I've asked a few questions on the java-gcc mailing list, they've been very helpful and have suggested the following: #copy libgcj to a working dir (could be in a different location than /usr/lib/ for you) mkdir -p /tmp/mess_with_libgcj cd /tmp/mess_with_libgcj cp /usr/lib/libgcj.a . #extract all the object from this library ar x libgcj.a #make a lib with only the properties objects ar rvcs libgcj_properties.a *properties*.o #do the (sometimes superfluous) blessing of the lib ranlib libgcj_properties.a #copy the lib to the system lib dir cp libgcj_properties.a /usr/lib/ #goto your source project and this time link-in those properties objects with --whole-archive, this forces the linker to include them even if they aren't statically referenced cd <your source build-tree> *gcj* -o <your prog> -Wl,--whole-archive -lgcj_properties -Wl,--no-whole-archive -static-libgcj --main=<your main> Now, I've tried add the flags (-Wl,--whole-archive -lgcj_properties -Wl,--no-whole-archive) to the Custom GCJ flags section. However I can't seem to add them in the correct order. JNC seems to re-order them for me and it ends up: -Wl,--whole-archive -Wl,--no-whole-archive -lgcj_properties Is this a restriction or am I missing something? Keith |