Article View: borland.public.jbuilder.java.swing
Article #606Re: JB2005, Windows ME & JVM 1.5
From: John McGrath [TeamB]
Date: Thu, 17 Mar 2005 02:20
Date: Thu, 17 Mar 2005 02:20
64 lines
4092 bytes
4092 bytes
On 3/16/2005 at 5:54:51 PM, David Bolsover wrote:
> Thanks again.. but I'm not sure what you did..
>
> > You should be able to construct a native executable yourself in
> > JBuilder 2005, using the JBuilder executable from JBuilder X. In
> > fact, as a simple test, you can just take the native executable you
> > built, and tack the JBuilder X launcher on to the front of it....
Are you talking about how I tacked the JBuilder launcher on to the front
of it? I am not sure if this is what you were referring to, since you
placed that quote after your comment.
Assuming that is it, I just concatenated the two files. I actually used
the "cat" command from the CygWin toolkit, but the plain old Windows COPY
command will do the same thing. I think the syntax is:
COPY JBuilder.exe + Native.exe NewNative.exe
In the above, JBuilder.exe is the JBuilder executable from the JBuilder X
/bin directory and Native.exe is the native executable that you generated
using JBuilder 2005. The resulting NewNative.exe should run on Windows ME.
Of course, you will probably want to do this differently in production,
since NewNative.exe will contain an copy of the JBuilder 2005 Java
launcher that is not used. You should be able to just create a JAR file
and and append it to the JBuilder X launcher. For example:
COPY JBuilder.exe + App.jar App.exe
With the above approach, you will also need to place the configuration
information in the ZIP comment of the JAR file. You can build a native
executable using the normal means and then examine the ZIP comment to see
what is needed.
Another approach is to package your files the same way that JBuilder is
packaged. Instead of appending the JAR file to the executable, you can
place the JAR file in the same directory as the executable, along with a
.config file. This would eliminate the need to set the ZIP comment for
the JAR file before you concatenate the file. It also eliminates the need
to have duplicates of all of your classes if you want to include both
Windows and command line versions of the program. This technique is
described here:
http://bdn.borland.com/article/0,1410,22496,00.html
It is important to note that if you build an executable using the JBuilder
launcher executable, there may be some licensing implications, even though
that is the same executable used by the native executable builder. Of
course, I am not a lawyer, nor do I speak for Borland, so you will want to
review the license issues yourself, with whatever legal help you feel is
necessary. There is an article on the Borland community site about using
the launcher:
http://community.borland.com/article/0,1410,27562,00.html
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<xn0dztyei856oss00c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!nntp.giganews.com!zen.net.uk!dedekind.zen.co.uk!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42305d69@newsgroups.borland.com> <xn0dzmx5hzeoju003@newsgroups.borland.com> <423421d5$1@newsgroups.borland.com> <xn0dzr0ot544akv00a@newsgroups.borland.com> <4238b930$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,6b7518741df38104 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: JB2005, Windows ME & JVM 1.5 Newsgroups: borland.public.jbuilder.java.swing References: <42305d69@newsgroups.borland.com> <xn0dzmx5hzeoju003@newsgroups.borland.com> <423421d5$1@newsgroups.borland.com> <xn0dzr0ot544akv00a@newsgroups.borland.com> <4238b930$1@newsgroups.borland.com> User-Agent: XanaNews/1.17.2.7 Message-ID: <xn0dztyei856oss00c@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:000002A0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 151.201.155.159 Date: 16 Mar 2005 18:20:09 -0800 X-Trace: newsgroups.borland.com 1111026009 151.201.155.159 (16 Mar 2005 18:20:09 -0800) Lines: 64 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!border2.nntp.ams.giganews.com!nntp.giganews.com!zen.net.uk!dedekind.zen.co.uk!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail