[jnc-users] JNC version 1.1.1 only works with version 1.1 backend
Status: Beta
Brought to you by:
soapy
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 |