Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Custom App Tutorial

To Jody,

Thank you for your reply and sorry for the long time it has taken to get
back to you. I will follow up on the other issues I had next week.

After following the custom app tutorial, I had a custom app that worked fine
but did not load images. When checking the VM arguments, I saw that it was
shorter than the arguments for the udig.product. Unfortunately I did not
write down what the custom.product arguments were before I changed them (so
I do not know if they included -Dosgi.parentClassloader=ext).

Since the udig.product application works with images, I used its VM
arguments for the custom app and everything worked fine. Once things worked
I did not explore any further, and so do not know what
doNotLoadResourcesPlugin does.

Also note, I previously (11/23/2009,
http://lists.refractions.net/pipermail/udig-devel/2009-November/016520.html)
sent an email with some other errata in the custom app tutorial. I think
most of those have been fixed (but did not take detailed notes on my last
run through), but I still ran into the typo I described on page 19 in the
most recent custom app tutorial.

Rueben



> -----Original Message-----
> From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx
> [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jody
> Garnett
> Sent: Friday, May 07, 2010 7:42 PM
> To: User-friendly Desktop Internet GIS
> Subject: [udig-devel] Custom App Tutorial
>
>
> Yeah questions - I am going to make an RC3 next week so
> documentation changes / feedback is well timed.
>
> On 08/05/2010, at 7:41 AM, Rueben Schulz wrote:
>
> > Custom App tutorial (custom.product)
> > -------------------
> >
> > My first attempt at this (using 1.2 RC2 on windows) produced an
> application
> > that could not open images. It turned out I needed to change the Run
> > Configuration / Arguments / VM arguments to:
> >
> > -Xmx386M -Dosgi.parentClassloader=ext
> -Dorg.eclipse.emf.ecore.plugin.EcorePl
> > ugin.doNotLoadResourcesPlugin=true
> >
> > This is the same as for udig.product. I haven't done any
> further research as
> > to what the exact problem was (gdal libraries not being found
> presumably),
>
> I know about the -Dosgi.parentClassloader=ext one - we need that
> so that geotools can see the JRE extensions (Java Advanced
> Imaging and Java ImageIO). By default osgi is very protective and
> does not allow access to JRE extensions!
>
> I am not sure about the doNotLoadResourcesPlugin one? Where id
> you find that?
>
> Finally you should not have to change the arguments; it should be
> defined as part of your custom "product" as per the workbook
> instructions.
>
> One of the bonus workbook instructions describes how you should
> package a "jre" folder in your produced custom application (in
> order to not be effected by whatever java your user has installer).
>
> FInally we have move the Custom App Tutorial into the public svn:
> - http://svn.refractions.net/udig/docs/trunk/devel/
>
> Formally it was hiding with the commercial training materials in
> a private repository for academics or people taking a course.
>
> Jody
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>




Back to the top