[udig-devel] Turning the SDK into an EXE

Jesse Eichar jeichar at refractions.net
Tue Sep 25 06:58:54 PDT 2007


So here's another strategy since you're having so much difficulty.   
This is a hack and should be used only if you're on a deadline

1. Export your plugins.
2. Get a uDig
3. Add the plugins to the uDig.
4. Go into the plugins directory of uDig
5. Unpack net.refractions.udig_1.1.0
6.  Replace splash.bmp with your splash screen,
7.  Update the plugin.properties so it has you're product's name,  
provider name and about text
8.  jar it back up.

now you can run the nsis script to build your .exe.

For the product:
Change the produce from plugins -> features
go to configuration tab
add net.refraction.udig
	org.eclipse.rcp
	org.eclipse.rcp.nl (for translations)

Export that.  It should export fine.

Make sure you do a synchronize and run before exporting to test.

Jesse


On Sep 25, 2007, at 6:09 AM, Andy Cox wrote:

> Jesse,
>
>
>
> Thanks for the update, unfortunately I’m still not having much joy  
> with this. I now have the following in eclipse:
>
>
>
> <image001.jpg>
>
>
>
> If I clean the project I don’t get any errors, and I can launch as  
> an Eclipse application. However, when I goto Eclipse Product export  
> wizard I end up with only the following on disk:
>
>
>
>
>
> <image003.jpg>
>
>
>
> If I put this into the win-installer directory as
>
>
>
> <image006.jpg>
>
>
>
> And then run the script I get an error on line 100
>
>
>
> Error in script "C:\Program Files\NSIS\win-installer 
> \uDigInstallScript.nsi" on line 100 -- aborting creation process
>
>
>
> Please can you help or alternatively is there a way to create a jar  
> file instead that I can launch from the command line or from an  
> applet?
>
>
>
> Cheers
>
> Andy
>
>
>
> From: udig-devel-bounces at lists.refractions.net [mailto:udig-devel- 
> bounces at lists.refractions.net] On Behalf Of Jesse Eichar
> Sent: 24 September 2007 16:04
> To: User-friendly Desktop Internet GIS
> Subject: Re: [udig-devel] Turning the SDK into an EXE
>
>
>
> I'd suggest making you're own product class.  You can do it one of  
> two ways.  The easiest is to create a running product in eclipse  
> then go through the wizard.  It will create the product from the  
> run configuration.  Otherwise you can go to the subversion page and  
> just straight up copy the product.
>
>
>
> Once you have it exported make sure you have updated the scripts  
> because I have updated them so they work on Vista and XP  
> correctly.  Then GO!!!.
>
>
>
> I have recently realized (I've been working on this too) is that  
> you need the following folders:
>
>
>
> eclipse -- This is actually uDig exported but the root folder has  
> to stay eclipse for the script
>
>             - jre
>
>             - icons (I don't remember what this has to be.  Maybe  
> uDig icons.)
>
>
>
> I think that's it.  Put the NSIS script in the same directory as  
> the eclipse folder and run it.
>
>
>
> jesse
>
>
>
>
>
>
>
> On Sep 24, 2007, at 5:30 AM, Andy Cox wrote:
>
>
>
>
> Jesse,
>
>
>
> I haven't had chance to look at this for a week or so but I have  
> now setup eclipse to run with the SDK rather than the trunk. It all  
> works from within eclipse with the following on disk.
>
>
>
> <image001.jpg>
>
>
>
> I would like to export as per
>
>
>
> http://udig.refractions.net/confluence/display/UDIG/Export+Product 
> +procedure
>
>
>
> however, now I am using the SDK I don’t have net.refractions.udig/ 
> udig.product listed in the eclipse table of contents.
>
>
>
> My eclipse TOC looks like this (please ignore red cross and it does  
> work fine):
>
>
>
> <image004.jpg>
>
>
>
> How do I export so I can add the export to my win-installer  
> directory and then run the uDigInstallScript.nsi script
>
>
> Thanks
>
> Andy
>
>
>
> -----Original Message-----
> From: udig-devel-bounces at lists.refractions.net [mailto:udig-devel- 
> bounces at lists.refractions.net] On Behalf Of Jesse Eichar
> Sent: 12 September 2007 16:58
> To: User-friendly Desktop Internet GIS
> Subject: Re: [udig-devel] Turning the SDK into an EXE
>
>
>
> HI Andy.  I see that you have uDig trunk  I do hope that was
>
> intended.  I have had exported successfully from the SDK a number of
>
> times I'm worried that you are asking for a bunch of unnecessary pain.
>
>
>
> uDig 1.1 (which is what the SDK is released from) is located at:
>
>
>
> http://svn.geotools.org/udig/branches/1.1.x/udig
>
>
>
> Then you can do the steps listed in the instruction and you shouldn't
>
> have a problem exporting and everything else.
>
>
>
> Jesse
>
>
>
> On Sep 12, 2007, at 2:40 AM, Andy Cox wrote:
>
>
>
> > Adrian,
>
> >
>
> > Thanks for the reply. I have tried a few times and I still seem  
> to be
>
> > getting errors reported but most of the files seem to have been
>
> > downloaded
>
> > except:
>
> >
>
> > Error opening connection java.io.FileNotFoundException:
>
> > http://lists.refractions.net/m2/org/opengis/geoapi/2.1-SNAPSHOT/
>
> > geoapi-2.1-2
>
> > 0070721.014742-37 jar
>
> >
>
> > However, there appears to be an error in the file name e.g. a space
>
> > before
>
> > the .jar. I have gone to the link and managed to download manually.
>
> >
>
> > Now the only error being reported is in the SLDValidator.java class
>
> > for the
>
> > SAXParser of the Xerces library which does not appear to have been
>
> > downloaded. Do you know where I can download this manually from?
>
> >
>
> > Thanks
>
> > Andy
>
> >
>
> > -----Original Message-----
>
> > From: Adrian Custer [mailto:acuster at gmail.com]
>
> > Sent: 12 September 2007 09:26
>
> > To: User-friendly Desktop Internet GIS
>
> > Cc: Andy Cox
>
> > Subject: RE: [udig-devel] Turning the SDK into an EXE
>
> >
>
> > On Wed, 2007-09-12 at 09:09 +0100, Andy Cox wrote:
>
> >> I am having problems downloading all the
>
> >> JARs when performing the Project -> Clean step under the "Your  
> first
>
> > build"
>
> >> heading of the 2nd link.
>
> >>
>
> >> Attached is a log. Do you know why it fails to download so many
>
> >> JARs ?
>
> >>
>
> > Hey Andy,
>
> >
>
> > Since this is maven stuff, you may need to try repeatedly to be
>
> > able to
>
> > get all the files off the network. Maven regularly fails to get all
>
> > the
>
> > files. Try a few times and then again after a bit for the network to
>
> > shuffle a bit---it requires just the right magical settings. If it
>
> > still
>
> > doesn't work after that then it's a real issue rather than a
>
> > network/server availability thing.
>
> >
>
> > --adrian
>
> >
>
> >
>
> > _______________________________________________
>
> > User-friendly Desktop Internet GIS (uDig)
>
> > http://udig.refractions.net
>
> > http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>
> _______________________________________________
>
> User-friendly Desktop Internet GIS (uDig)
>
> http://udig.refractions.net
>
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
> <image001.jpg><image004.jpg>
>
> _______________________________________________
>
> User-friendly Desktop Internet GIS (uDig)
>
> http://udig.refractions.net
>
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>
> <image001.jpg><image003.jpg><image006.jpg>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20070925/0f34ea36/attachment-0001.html


More information about the udig-devel mailing list