Re: [javaCompiler-users] javaCompiler-users Digest, Vol 3, Issue 4
Status: Beta
Brought to you by:
soapy
|
From: Marco T. <mt...@gm...> - 2006-08-22 06:17:09
|
Hello Eric
Eric Yoon wrote:
> Oops. I used an absolute path when loading an icon for the shell. That
> is why it did not work on the other computers.
Something similar happened to me once too. I was also tempted to claim
the executable, but it looks like I learnt from it and was able to help
you pretty quickly :-)
> This brings me another question. How do I set a relative path within
> SWT? It did not work as it worked in Swing.
>
> I am sorry to ask a plain SWT question on javaCompiler mailing list.
Yes, please do not ask SWT questions here. But when I'm already on it:
Relative paths have nothing to do with the GUI framework. Thus this
works equivalent in SWT as in Swing. I guess you assume a wrong current
working directory. Try: System.out.println(new File("."));
> Thank you for your quick answer. It was a great help.
You're welcome...
Marco
> On 8/21/06, *jav...@li...
> <mailto:jav...@li...>* <
> jav...@li...
> <mailto:jav...@li...>> wrote:
>
> Send javaCompiler-users mailing list submissions to
> jav...@li...
> <mailto:jav...@li...>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/javacompiler-users
> or, via email, send a message with subject or body 'help' to
> jav...@li...
> <mailto:jav...@li...>
>
> You can reach the person managing the list at
> jav...@li...
> <mailto:jav...@li...>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of javaCompiler-users digest..."
>
>
>
> Today's Topics:
>
> 1. Compiled executable file won't start on some computer.
> (Eric Yoon)
> 2. Re: Compiled executable file won't start on some computer.
> (Marco Trudel)
>
>
>
> ---------- Forwarded message ----------
> From: "Eric Yoon" <bg...@gm... <mailto:bg...@gm...>>
> To: jav...@li...
> <mailto:jav...@li...>
> Date: Mon, 21 Aug 2006 11:17:25 -0400
> Subject: [javaCompiler-users] Compiled executable file won't start
> on some computer.
> Hello, I am a novice Java user.
>
> I created a small program using SWT.
>
> I compiled it with javaCompiler. There was no error in compilation.
> The compiled exe file worked fine on my computer.
>
> Now I copied the exe file and swt dll file to another computer; it
> does not work. When I double click it, nothing happens.
>
> The difference, I can think of as the cause of the trouble, between
> my computer and the troubling computer is
> My computer has JDK and ecilpse installed
> The troubling computer has JRE; no eclipse or JDK
>
> More weird thing is that another program, an old version actually, I
> had written before this program runs on the troubling computer.
>
> What could cause a compiled program not to run on certain computers?
>
> I would be grateful to receive an answer.
>
> Thank you
>
>
> Sincerely,
>
>
> ---------- Forwarded message ----------
> From: Marco Trudel <mt...@gm... <mailto:mt...@gm...>>
> To: "A mailing list for general questions and discussions." <
> jav...@li...
> <mailto:jav...@li...>>
> Date: Mon, 21 Aug 2006 17:32:21 +0200
> Subject: Re: [javaCompiler-users] Compiled executable file won't
> start on some computer.
> Hello Eric
>
> It doesn't mather if the second computer has a JRE, JDK, eclipse or
> whatever installed. None of them is used.
>
> To me, this sounds more like an application bug from your side. Have you
> tried to enable the console and checked for any exceptions?
>
>
> regards
> Marco
>
>
> Eric Yoon wrote:
> > Hello, I am a novice Java user.
> >
> > I created a small program using SWT.
> >
> > I compiled it with javaCompiler. There was no error in
> compilation. The
> > compiled exe file worked fine on my computer.
> >
> > Now I copied the exe file and swt dll file to another computer;
> it does
> > not work. When I double click it, nothing happens.
> >
> > The difference, I can think of as the cause of the trouble,
> between my
> > computer and the troubling computer is
> > My computer has JDK and ecilpse installed
> > The troubling computer has JRE; no eclipse or JDK
> >
> > More weird thing is that another program, an old version
> actually, I had
> > written before this program runs on the troubling computer.
> >
> > What could cause a compiled program not to run on certain computers?
> >
> > I would be grateful to receive an answer.
> >
> > Thank you
> >
> >
> > Sincerely,
> >
> >
> >
> ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
>
> > Using Tomcat but need to do more? Need to support web services,
> security?
> > Get stuff done quickly with pre-integrated technology to make
> your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > javaCompiler-users mailing list
> > jav...@li...
> <mailto:jav...@li...>
> > https://lists.sourceforge.net/lists/listinfo/javacompiler-users
> <https://lists.sourceforge.net/lists/listinfo/javacompiler-users>
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>
> _______________________________________________
> javaCompiler-users mailing list
> jav...@li...
> <mailto:jav...@li...>
> https://lists.sourceforge.net/lists/listinfo/javacompiler-users
> <https://lists.sourceforge.net/lists/listinfo/javacompiler-users>
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> javaCompiler-users mailing list
> jav...@li...
> https://lists.sourceforge.net/lists/listinfo/javacompiler-users
|