Re: [jnc-users] JNC hangs
Status: Beta
Brought to you by:
soapy
From: Harpal G. <har...@ho...> - 2007-02-18 05:51:55
|
>From: Marco Trudel <mt...@gm...> >To: "A mailing list for general questions and discussions." ><jav...@li...>, har...@ho... >Subject: Re: [jnc-users] JNC hangs >Date: Thu, 15 Feb 2007 08:01:50 +0100 > >Harpal Grover wrote: >>I downloaded the latest JNC, 1.1, and attempted to compile my java app to >>a native app. The compilation started, but after awhile stopped working >>and JNC just hung, with the following log output: > >Did you mix .java and .class source files? >Does it work with JNC 1.0? Yes the files were mixed. Eclipse defaults to this :( I am not going to try compiling with JNC 1.0, since I do not believe it supports Java 1.5 features > >A "java_parse_file, at java/jcf-parse.c:1947" error was recently fixed in >GCJ. It might be the one you run into (unless you're compiling .java and >.class files at the same time). Yes this seems to have been the issue indeed. Thanks for the tip. I cleaned my source of any class files before I ran JNC and this time it worked! > > >BTW: Adding the custom "-w" flag would suppress all Java warnings you're >seeing. Thanks again for the tip. Now I have another question for everyone. Has anyone attempted to compile a java database with JNC 1.1? I have successfully compiled both HSQLDB 1.8.7 and H2 1.0. But when my native app loads with HSQLDB, I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: org.hsqldb.Trace at org.hsqldb.Trace.error(App.exe) at gnu.java.lang.MainThread.call_main(App.exe) at org.hsqldb.DatabaseManager.getDatabase(App.exe) at org.hsqldb.DatabaseManager.newSession(App.exe) at org.hsqldb.jdbc.jdbcConnection.<init>(App.exe) at java.sql.DriverManager.getConnection(App.exe) at com.sportscash.database.H2.DAO.createConnection(App.exe) at foo.foo.foo.<init>(App.exe) at App.<init>(App.exe) When I try with H2, I get a file locking error. I did not run into these issues when using gcj 4.02. Thanks for any possible help! Harpal _________________________________________________________________ Find out the restaurants participating in Winterlicious http://local.live.com/default.aspx?v=2&cp=43.658648~-79.383962&style=r&lvl=15&tilt=-90&dir=0&alt=-1000&scene=3702663&cid=7ABE80D1746919B4!1329 >From January 26 to February 8, 2007 |