javacompiler-users Mailing List for javaCompiler (Page 10)
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: Marco T. <mt...@gm...> - 2006-10-11 07:33:32
|
M. Bashir Al-Noimi wrote: > Marco Trudel wrote: >> Stupid question: Did you update the SWT version from javaCompiler too? >> If not, there you have the problem.. >> > SWT version 3.235 How do you compile? Unmanaged project? Managed project? How did you replace SWT in javaCompiler if you use a managed project? >>> For that i suggest to do that in the next version of javaCompiler : >>> include standard manifest file into this path javaCompiler\ressources, >>> when the user want to build Win32 app javaCompiler copy this standard >>> file to the path of compiled app and then rename manifest file to the >>> app name. >>> >> Nope, SWT is doing this already ;-) >> You just have to be really 100% absolutely sure you use SWT 3.2... >> Really completely fully fully 100% completly sure... Fully... > maybe i'm sleepy ... SWT did nothing i've version 3.235 ! >:o Not even when running from java? It definitely does some ugly things for me. As I said, there might be different influences by manifests and the SWT one doesn't do enough for you. But it definitely does something for me... Marco |
From: Lei W. <la...@ho...> - 2006-10-11 07:20:12
|
>Yes, he removed AWT/Swing. But what he did doesn't work with gcj 4.2. If >I've some time left, I'll try to do it myself... I'm really interested >how much the binaries will shrink... 0.5mb? 1mb? That would be great... on Mohan's 4.02 build, that would cut the exe size for almost 10M uncompressed. it is a significant 'improvement'. |
From: M. B. Al-N. <ha...@ce...> - 2006-10-10 21:58:48
|
Marco Trudel wrote: > Stupid question: Did you update the SWT version from javaCompiler too? > If not, there you have the problem.. > SWT version 3.235 >> For that i suggest to do that in the next version of javaCompiler : >> include standard manifest file into this path javaCompiler\ressources, >> when the user want to build Win32 app javaCompiler copy this standard >> file to the path of compiled app and then rename manifest file to the >> app name. >> > > Nope, SWT is doing this already ;-) > You just have to be really 100% absolutely sure you use SWT 3.2... > Really completely fully fully 100% completly sure... Fully... maybe i'm sleepy ... SWT did nothing i've version 3.235 ! >:o |
From: Marco T. <mt...@gm...> - 2006-10-10 21:14:20
|
M. Bashir Al-Noimi wrote: > Marco Trudel wrote: >> Check that thread: >> http://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg05063.html >> > this thread talking about eclipse not about native things ! :-\ There's no difference in this case my friend. >> I don't know what a manifest is doing exactly. > manifest do great appearance for Win32 apps jut like GTK+ in Linux > >> Are there different >> settings possible? If yes, then the SWT manifest doesn't exactly do what >> you want, you'll have to handle that yourself. >> If no, then you're not using SWT 3.2 ;-) > I'm sure that I'm using latest SWT version cuz I've downloaded it form > 10 minutes ! :-P Stupid question: Did you update the SWT version from javaCompiler too? If not, there you have the problem... > i think you couldn't understand what i mean, so in the attachment file a > small swt project i've compiled it by javaCompiler it shown what > manifest doing . the result so different (ugly appearance without manifest). I think you don't understand that javaCompiler doesn't do anything else than use SWT 3.139. > For that i suggest to do that in the next version of javaCompiler : > include standard manifest file into this path javaCompiler\ressources, > when the user want to build Win32 app javaCompiler copy this standard > file to the path of compiled app and then rename manifest file to the > app name. Nope, SWT is doing this already ;-) You just have to be really 100% absolutely sure you use SWT 3.2... Really completely fully fully 100% completly sure... Fully... Marco |
From: M. B. Al-N. <ha...@ce...> - 2006-10-10 21:03:35
|
Marco Trudel wrote: > > Check that thread: > http://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg05063.html > this thread talking about eclipse not about native things ! :-\ > > I don't know what a manifest is doing exactly. manifest do great appearance for Win32 apps jut like GTK+ in Linux > Are there different > settings possible? If yes, then the SWT manifest doesn't exactly do what > you want, you'll have to handle that yourself. > If no, then you're not using SWT 3.2 ;-) I'm sure that I'm using latest SWT version cuz I've downloaded it form 10 minutes ! :-P i think you couldn't understand what i mean, so in the attachment file a small swt project i've compiled it by javaCompiler it shown what manifest doing . the result so different (ugly appearance without manifest). For that i suggest to do that in the next version of javaCompiler : include standard manifest file into this path javaCompiler\ressources, when the user want to build Win32 app javaCompiler copy this standard file to the path of compiled app and then rename manifest file to the app name. |
From: Marco T. <mt...@gm...> - 2006-10-10 09:54:10
|
M. Bashir Al-Noimi wrote: > Marco Trudel wrote: >> - SWT applications: Are forced to use the manifest since v3.2 by SWT >> > no i don't think that ! I'm using swt 3.2, all the apps need manifest to > take the new style. Check that thread: http://dev.eclipse.org/mhonarc/lists/platform-swt-dev/msg05063.html >> So I think this is currently more a SWT than a javaCompiler concern. But >> you're welcome to tell me the opposite... > i've tested all the cases for swt gui i got the same result ... all the > apps need manifest swt didn't force any app to take the new style of > appearance . I don't know what a manifest is doing exactly. Are there different settings possible? If yes, then the SWT manifest doesn't exactly do what you want, you'll have to handle that yourself. If no, then you're not using SWT 3.2 ;-) Marco |
From: M. B. Al-N. <ha...@ce...> - 2006-10-10 09:42:15
|
Marco Trudel wrote: > - SWT applications: Are forced to use the manifest since v3.2 by SWT > no i don't think that ! I'm using swt 3.2, all the apps need manifest to take the new style. > So I think this is currently more a SWT than a javaCompiler concern. But > you're welcome to tell me the opposite... i've tested all the cases for swt gui i got the same result ... all the apps need manifest swt didn't force any app to take the new style of appearance . |
From: Marco T. <mt...@gm...> - 2006-10-10 06:44:35
|
M. Bashir Al-Noimi wrote: > i suggest to add manifest file for each compiled exe by javaCompiler > ;-) , what's your opinion ? In my understanding there are these four possibilities: - Console applications: doesn't need a manifest - SWT applications: Are forced to use the manifest since v3.2 by SWT - AWT/Swing applications: Currently uses swingWT which uses SWT, so see above - AWT/Swing with classpath: will use GTK, so no need for a manifest (I'm not sure on that one) So I think this is currently more a SWT than a javaCompiler concern. But you're welcome to tell me the opposite... Marco > look at the attached pics they shown before adding manifest and after > adding manifest file. the difference was so big, exe app with manifest > has good appearance . > > in the second attached you can see an example for manifest file written > for VLC media player. we can do like it for any app generated by > javaCompiler . > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > <?xml version="1.0" encoding="UTF-8" standalone="yes"?> > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> > <assemblyIdentity > version="1.0.0.0" > processorArchitecture="X86" > name="VideoLAN.VLC" > type="win32" > /> > <description>see http://www.videolan.org/</description> > <dependency> > <dependentAssembly> > <assemblyIdentity > type="win32" > name="Microsoft.Windows.Common-Controls" > version="6.0.0.0" > processorArchitecture="X86" > publicKeyToken="6595b64144ccf1df" > language="*" > /> > </dependentAssembly> > </dependency> > </assembly> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: M. B. Al-N. <ha...@ce...> - 2006-10-09 23:02:41
|
i suggest to add manifest file for each compiled exe by javaCompiler ;-) , what's your opinion ? look at the attached pics they shown before adding manifest and after adding manifest file. the difference was so big, exe app with manifest has good appearance . in the second attached you can see an example for manifest file written for VLC media player. we can do like it for any app generated by javaCompiler . -- Best Regards =D8=AA=D8=AD=D9=8A=D8=A7=D8=AA=D9=8A Muhammad Bashir Al-Noimi =D9=85=D8=AD=D9=85=D8=AF =D8=A8=D8=B4=D9=8A=D8=B1= =D8=A7=D9=84=D9=86=D8=B9=D9=8A=D9=85=D9=8A =D9=85=D8=AF=D9=88=D9=86=D8=AA=D9=8A My Blog http://www.hali-sy.net/bashir |
From: Marco T. <mt...@gm...> - 2006-09-28 15:07:16
|
Jim Kay wrote: > Marco > > Great work - really appreciated! > I have just discovered you fantastic program; please keep updating it. > > The only thing I don't understand is why doesn't gnu-classpath (i.e. > swing/awt) work on win32, I thought that this was one of their goals and > that this was possible using gtk widgets (or something)? I don't know if it's possible at all. A main GNU classpath developer told me that no one tried so far. I heard something that someone built the QT peer once for windows, but I'm only interested in GTK. Anyway, the problem is more that we use GCJ, not GNU classpath. GCJ currently lacks active windows or static build maintainers. That's why GNU classpath AWT/Swing doesn't event work for static compiled GCJ on linux. Recently I managed to get it working anyway, so JavaCompiler 0.9 will at least provide GNU classpath AWT/Swing for linux. As for windows, it is pretty high on my todo list, but - for my own needs - there are more important things like serialisation and javax.crypto to get working right now. But you're invited to provide the cross-compiling steps to build the gtkpeer for windows ;-) Marco |
From: Jim K. <Ka...@In...> - 2006-09-28 09:18:48
|
Marco Great work - really appreciated! I have just discovered you fantastic program; please keep updating it. The only thing I don't understand is why doesn't gnu-classpath (i.e. swing/= awt) work on win32, I thought that this was one of their goals and that thi= s was possible using gtk widgets (or something)? Jim=20 Jim Kay=20 Senior Engineer=20 Interfleet Technology Ltd=20 email: ka...@in...=20 tel: +44 (0) 1332 223229=20 fax: +44 (0) 1332 223181=20 mobile: +44 (0) 7715 536828=20 web: www.interfleet-technology.com=20 Interfleet Technology Ltd=20 Interfleet House=20 Pride Parkway=20 Derby=20 DE24 8HX=20 Interfleet Technology 1996 - A Decade of Success - 2006 ********************************************************************** Please click on this link for details of Interfleet Technology's email Disclaimer http://www.interfleet-technology.com/disclaimer. If you require a text file containing the disclaimer, please email =20 in...@in... Interfleet Technology Ltd Registered Office: Interfleet House, Pride Parkway, Derby DE24 8HX UK Tel: +44 (0) 1332 223000 Fax: +44 (0) 1332 223001 ********************************************************************** |
From: Carsten C. <sp...@te...> - 2006-09-26 08:29:58
|
> Add the attached jar... > I really have to upload it ;-) Thank you very much, working :-) Yeah, an upload to the website would be nice. thanx Carsten |
From: Marco T. <mt...@gm...> - 2006-09-26 08:18:12
|
Carsten Clementschitsch wrote: > Hi, > > i refer to the known bug about regular expressions or the String.split > function. > > "uses of regexp (e.g. String.split()) classes will fail with: > java.util.MissingResourceException: Bundle gnu/regexp/MessagesBundle not found > Check this site for a workaround: http://lists.debian.org/debian-gcc/2005/09/msg00141.html > (you might put the gnu/regexp/MessagesBundle into a jar and add it to the project. > this way, it will be builtin)." > > My problem is, what exactly have i do to built this jar with the > MessagesBundle within? Add the attached jar... I really have to upload it ;-) Marco |
From: Carsten C. <sp...@te...> - 2006-09-26 08:06:09
|
Hi, i refer to the known bug about regular expressions or the String.split function. "uses of regexp (e.g. String.split()) classes will fail with: java.util.MissingResourceException: Bundle gnu/regexp/MessagesBundle not found Check this site for a workaround: http://lists.debian.org/debian-gcc/2005/09/msg00141.html (you might put the gnu/regexp/MessagesBundle into a jar and add it to the project. this way, it will be builtin)." My problem is, what exactly have i do to built this jar with the MessagesBundle within? > What is "split"? > Basic answer: put all things that you need at runtime into the final > executable... thanx Carsten |
From: Marco T. <mt...@gm...> - 2006-09-26 07:31:47
|
Carsten Clementschitsch wrote: > hi, > > can some explain to me, what exactly i have to do, to get split working. > Don't know exactly what i have to put into the jar to get it working. What is "split"? Basic answer: put all things that you need at runtime into the final executable... Marco |
From: Carsten C. <sp...@te...> - 2006-09-25 23:15:33
|
hi, can some explain to me, what exactly i have to do, to get split working. Don't know exactly what i have to put into the jar to get it working. thanx Carsten -- Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/ |
From: Marco T. <mt...@gm...> - 2006-09-25 07:13:00
|
Cyber Legionnaire wrote: > I tried compiling the tests that come with the javaCompiler package and > I get the same problem :( > > I have the latest JDK and downloaded javaCompiler-0.8.zip. I've > configured javaCompiler to use my javac.exe. > > Anything else? One other thing: JavaCompiler is written in Java and compiled with JavaCompiler itself. So basically it really should work... Marco > Marco Trudel wrote: >> Cyber Legionnaire wrote: >>> Hi, >>> >>> 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. >>> >>> Is this something common? >> No... Never seen that myself... >> >> >>> I am missing something. >> Probably ;-) >> Remove all your code and restore it step by step. This way you can track >> down what causes it to exit... >> >> Or another idea; if you created a GUI app, enable the console and check >> for exceptions... >> >> >> Marco >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> javaCompiler-users mailing list >> jav...@li... >> https://lists.sourceforge.net/lists/listinfo/javacompiler-users >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: Marco T. <mt...@gm...> - 2006-09-24 09:22:15
|
Cyber Legionnaire wrote: > I tried compiling the tests that come with the javaCompiler package and > I get the same problem :( Which test? What settings did you use to compile them? What happens on a simple "hello world" program? > I have the latest JDK and downloaded javaCompiler-0.8.zip. I've > configured javaCompiler to use my javac.exe. JDK doesn't matter; javac is only needed if you enable java 1.5 preprocessing. You really shouldn't use that if it looks like JavaCompiler doesn't work at all... > Anything else? Yeah, what operating system do you use? Do you have anything unusual? What size have the compiled executables? Have you changed something on JavaCompiler? ... Please try a simple "hello world" program first. This way we can find out if it's a problem with JavaCompiler or if there's an operating error. Marco > > > Marco Trudel wrote: >> Cyber Legionnaire wrote: >>> Hi, >>> >>> 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. >>> >>> Is this something common? >> No... Never seen that myself... >> >> >>> I am missing something. >> Probably ;-) >> Remove all your code and restore it step by step. This way you can track >> down what causes it to exit... >> >> Or another idea; if you created a GUI app, enable the console and check >> for exceptions... >> >> >> Marco >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> javaCompiler-users mailing list >> jav...@li... >> https://lists.sourceforge.net/lists/listinfo/javacompiler-users >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: Cyber L. <cyb...@gm...> - 2006-09-24 00:47:43
|
I tried compiling the tests that come with the javaCompiler package and I get the same problem :( I have the latest JDK and downloaded javaCompiler-0.8.zip. I've configured javaCompiler to use my javac.exe. Anything else? Marco Trudel wrote: > Cyber Legionnaire wrote: >> Hi, >> >> 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. >> >> Is this something common? > > No... Never seen that myself... > > >> I am missing something. > > Probably ;-) > Remove all your code and restore it step by step. This way you can track > down what causes it to exit... > > Or another idea; if you created a GUI app, enable the console and check > for exceptions... > > > Marco > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > |
From: Marco T. <mt...@gm...> - 2006-09-24 00:25:58
|
Cyber Legionnaire wrote: > Hi, > > 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. > > Is this something common? No... Never seen that myself... > I am missing something. Probably ;-) Remove all your code and restore it step by step. This way you can track down what causes it to exit... Or another idea; if you created a GUI app, enable the console and check for exceptions... Marco |
From: Cyber L. <cyb...@gm...> - 2006-09-24 00:20:50
|
Hi, 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. Is this something common? I am missing something. Thanks for you time. |
From: Marco T. <mt...@gm...> - 2006-09-22 17:48:09
|
Joe Osborne wrote: >> You have to debug that... Start with a simple frame >> that will show and >> add your code step by step. Do the same with >> libraries. This way, you >> will find out what causes the problem. >> >> Marco >> > You mean with gdb? No. I think I explained pretty good what I mean, didn't I? Read again: Start with a simple frame that will show and add your code step by step. Do the same with libraries. This way, you will find out what causes the problem. > Dear Marco > I know that in C programming there are compile time > errors and runtime errors. But after building a > functional Java program that has no errors during > interpreting byte code in a JVM, I really assumed that > after compiling it to native code it would be free of > runtime errors. Why? Java is huge! There will most probably always be some incompatibilities. Not even java is fully compatible with java ;-) But there is no runtime error, or - at least - you can't know for sure. You have to find out why it just dies quietly... I usually do that the explained way... The output you see is some information about swingWT. You can turn that off (check the swingWT homepage on how to do that). Marco |
From: Joe O. <joe...@ya...> - 2006-09-22 15:01:50
|
> You have to debug that... Start with a simple frame > that will show and > add your code step by step. Do the same with > libraries. This way, you > will find out what causes the problem. > > Marco > You mean with gdb? Dear Marco I know that in C programming there are compile time errors and runtime errors. But after building a functional Java program that has no errors during interpreting byte code in a JVM, I really assumed that after compiling it to native code it would be free of runtime errors. I am surprised and I wouldn't know where to begin. I read about gdb and cygwin and it looks like a mixture of linux and assembly language to me and based on what I can find it doesn't look promising if I go down that road. I can't see the end of the tunnel so I will give up at least for now. I'm going overseas for 2 weeks and may look into it again when I come back. Many thanks for your kind help. Have a nice weekend and Prost! Joe ____________________________________________________ On Yahoo!7 Photos: Unlimited free storage keep all your photos in one place! http://au.photos.yahoo.com |
From: Marco T. <mt...@gm...> - 2006-09-22 06:50:26
|
Joe Osborne wrote: > Dear Marco > > <snip> > > I have dealt with all "symbol not found" errors by > changing the methods or removing them if they could be > made redundant. I have successfully compiled a 6 Mb > file after stripping and compression. > > <snip> > > After doubleclicking this file I get the following on > the console and the executable stops. It doesn't hang. > It simply stops, just like a pause of some kind, with > a blinking cursor at the end. cpu usage is zero. What > is happening? I got the same result on W2k and > Win98se. It appears as though the executable thinks it > has finished it's work. > > This is the console output: > > ******* > > This is SwingWT (http://swingwt.sourceforge.net) > Version: 0.87 (020605)[SWT win32 3139] > Copyright(c)2003-2005, R.Rawson-Tetley and other > contributors. > > This library is distributed in the hope that it will > be useful, > but WITHOUT ANY WARRANTY; without even the implied > warranty of > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > See the GNU > Lesser General Public Licence for more details. > > ******** > > Do you have any ideas? Ich verstehe nur Bahnhof. :) You have to debug that... Start with a simple frame that will show and add your code step by step. Do the same with libraries. This way, you will find out what causes the problem. Marco |
From: Joe O. <joe...@ya...> - 2006-09-22 06:43:06
|
Dear Marco > An example: > > You want to do: aJButton.setBackground(Color.RED); > But swingWT doesn't have this method. So you > download the swingWT > source, go to the JButton source file and add the > method: > > public void setBackground(Color c) > { > privateButton.setBackground(new > Color(Display.getCurrent(), c.getRed(), > c.getGreen(), c.getBlue()); > } > > While now privateButton is a > org.eclipse.swt.widgets.Button and Color is > a org.eclipse.swt.graphics.Color. As I said, you > fake the AWT/Swing API > to the outside and map that internally to SWT. > > When you have done that, compile swingWT to a jar > and overwrite the one > from JavaCompiler. > Thanks for that example. It has cleared up a lot for me. I see it now. I can do that. Hopefully there won't be too many methods or classes that are not mapped. I only had 16 errors and several were repeated occurrences. > > No, you have to do a lot more and need deep > AWT/Swing&SWT knowledge to > get swingWT working for your needs. > > I have dealt with all "symbol not found" errors by changing the methods or removing them if they could be made redundant. I have successfully compiled a 6 Mb file after stripping and compression. creating JFrame1-win.exe - compiling sources for Java 1.5 preprocessing Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. - Java 1.5 file (*.class) preprocessing [RetroWeaver] Processing 87 classe(s) [RetroWeaver] 87 classe(s) weaved. - Java 1.5 preprocessing: jxl.jar [RetroWeaver] Processing 482 classe(s) [RetroWeaver] 482 classe(s) weaved. - processing jxl.jar-weaved.jar - main compilation step - packing executable done *********** After doubleclicking this file I get the following on the console and the executable stops. It doesn't hang. It simply stops, just like a pause of some kind, with a blinking cursor at the end. cpu usage is zero. What is happening? I got the same result on W2k and Win98se. It appears as though the executable thinks it has finished it's work. This is the console output: ******* This is SwingWT (http://swingwt.sourceforge.net) Version: 0.87 (020605)[SWT win32 3139] Copyright(c)2003-2005, R.Rawson-Tetley and other contributors. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public Licence for more details. ******** Do you have any ideas? Ich verstehe nur Bahnhof. :) Regards Joe ____________________________________________________ On Yahoo!7 360° new features: Blog polls, visitor stats custom themes and more! http://www.yahoo7.com.au/360 |