Re: [javaCompiler-users] eclipse plug-in
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2007-01-30 10:43:51
|
M. Bashir Al-Noimi wrote: > Marco Trudel wrote: > >> M. Bashir Al-Noimi wrote: >> >>> Hi there ;-) >>> >>> >>> Is there anybody can make a version of javaCompiler into eclipse >>> plug-in? >>> >> >> What would be the purpose? That Java applications can directly be >> compiled to native? >> > I think it's better to add an menu item as additional building option. Sure. Click on the "External tools" toolbar item, then "External tools..." and add AutoCompiler. Then you have your menu item (although it's in the toolbar). >> I think a eclipse plug-in would be like shooting a fly with a tank. Just >> create the complete project with the JNC gui and save a project file. >> Then run "AutoCompiler projectFile" as a custom command in eclipse... >> > Honestly, i couldn't understand you well! > what is *JNC*? did you mean *java native compiler*? Yes. Firstly my project was called "JavaCompiler". But that was a poor name. So I renamed it to "NativeJ" only to find out that this name was already taken by a similar product and this immediately lead to confusion. So I renamed it one last time to JNC (stands for JavaNativeCompiler). > what is *AutoCompiler projectFile*? AutoCompiler(.exe) is an application delivered with my GUI frontend. When you create a project in the GUI, you can save it to a project file and reuse it later. But you can also directly run a compilation from that project file by giving it to AutoCompiler.exe: > cd c:\path\to\JNC > AutoCompiler d:\path\to\the\project.jnc And it will compile it just as if you opened the project file in the GUI, pressed a couple of times next and then "compile". It's a Question in the FAQ after all... > I think it isn't practical to use javaCompiler with command line, Yes, you can't do that because it doesn't make sense... You just can automatically compile a project that you created. This way you can include native compilation into ant scripts, as eclipse command or whatever you wish... > cuz if > anybody want to use command line he can use gcj/gcc without needed to > javaCompiler! (i was using command line, but when i found javaCompiler > with its good GUI wizard i throw command line to the trash). No, it's not as easy as it sounds. Ever tried to create an archive out of a jar? Things like that and others are very complicated when trying to run them with GCJ manually. That's why I wrote my GUI. Marco |