Re: [jnc-users] Problem getting JNC to work
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2008-07-23 05:44:00
|
Hello Mike Mike Rerick wrote: > Marco, > > I am having problems getting JNC to build an exe. I have downloaded the > GUI frontend and the Windows gcc compiler on the JNC download page. > > I unzipped the front end into a folder then unzipped the gcc-122233-win > zip into the front end GUI’s folder (so I have > …\JavaNaticeCompiler-1.1.1\gcc-122233-win\...) So far so good... > I have Sun’s JDK 1.6.0_06 installed. Does not matter. JNC is a stand-alone compiler. It does not need an installed JDK. > I copied gcj.exe from the > gcc-122233-win\bin folder to the <JDK>\bin folder. I copied > gcc-122233-win\lib\ libgcj.spec to the folder containing the > JavaNativeCompiler executable. I pointed the front end to the classes > folder where my compiled test class resides. I set the java.library.path > to ‘.’. I set the following gcj option: --classpath= > <path-to-JDK>\jre\lib; > <path-to>\JavaNativeCompiler-1.1.1\gcc-122233-win\lib. (I have tried > this with Sun’s JDK 1.5.0_16 with the same lack of success) What? What are you trying to do? Why? Undo all these and just start JNC from the JavaNaticeCompiler-1.1.1 directory. > I also added <path-to>\gcc-122233-win\bin, > <path-to>\gcc-122233-win\libexec\gcc\i686-pc-mingw32\4.3.0 and > <path-to>\gcc-122233-win\i686-pc-mingw32\bin to my Path environmental > variable. > > > > I’m getting the following errors when I try to compile: > > Test.java:0: error: cannot find file for class java.lang.Object > > Test.java:0: error: cannot find file for class java.lang.Object > > Test.java: In class 'com.iws.Test.bcc.Test: > > Test.java: In constructor '()': > > Test.java:12: error: cannot find file for class java.lang.Object > > Test.java:12: error: class 'java.lang.Object' has no method > named '<init>' matching signature '()V' > > Test.java:12: confused by earlier errors, bailing out And what did you expect when using the wrong library? Marco > Here is the project file: > > dir=C:\MasterBuild-Dev\BuildControlCenter\build\classes > > mainClass=com.iws.Test.bcc.Test#C:\MasterBuild-Dev\BuildControlCenter\build\classes > > javaLibPath=. > > useCni=true > > compileWindows=true > > windowsFile=C:\MasterBuild-Dev\BuildControlCenter\Test.exe > > compileLinux=false > > linuxFile=C:\MasterBuild-Dev\BuildControlCenter\Test.lin > > omitStripping=false > > omitPacking=false > > disableOptimisation=false > > iconFile=null > > useIcon=false > > hideConsole=false > > gcjFlag=--classpath=C:\Dev\Java\jdk1.6.0_06\jre\lib;C:\Dev\Java\NativeCompiler\JavaNativeCompiler-1.1.1\gcc-122233-win\lib,false > > showCommands=true > > excludeGui=true > > excludeJce=true > > addGnuRegex=false > > dontCacheJars=false > > beepWhenDone=false > > > > > > > > Here is the Test class code, which compiles in NetBeans with no problems: > > /* > > * This is the test class. > > */ > > > > package com.iws.Test.bcc; > > > > /** > > * > > * @author */ > > public class Test { > > public Test() { > > } > > > > > > /** > > * Runs the Test > > * @param args > > */ > > public static void main(String[] args) { > > if(args.length == 0) { > > usage(); > > System.exit(0); > > } > > } > > > > public static void usage() { > > System.out.println(); > > System.out.println(); > > System.out.println("Usage:"); > > System.out.println(" Test params"); > > System.out.println(" where params are command"); > > System.out.println(" line parameters"); > > System.out.println(); > > System.out.println(); > > } > > } > > > > Any help would be greatly appreciated. > > > > Thanks! > > > > Mike Rerick > > Sr. Software Engineer – Professional Services > > <blocked::http://www.iwsinc.com/>** > > > > 9200 S.E. Sunnybrook Blvd., Suite 170 > > Clackamas, OR 97015 > > Phone: (503) 353-8068 Fax: (503) 353-8065 > > > > > > The information contained in this transmission contains potentially > privileged, export controlled and/or confidential information of > Imageware Systems, Inc. or its customers or partners. It is intended > only to be read by the person(s) named above and for no other purpose. > You are hereby notified that any dissemination, distribution, > duplication of this communication or use of its contents for any purpose > not authorized expressly by Imageware Systems, Inc. is strictly > prohibited and could lead to both civil and/or criminal penalties. If > you are not the intended recipient, you are prohibited to review the > contents herein and please contact the sender by reply e-mail and > destroy all copies of the original message. To reply to our e-mail > administrator directly, please send an e-mail to ema...@iw... > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |