Re: Quickstart.java

10 messages Options
Embed this post
Permalink
mbedward

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
Hi Darmawan,

I'm cc-ing this reply to the geotools user list. Please join us there if you're not already a member.

I'm not sure if you're the same person that I just replied to on the list, but in case you're not here's the answer...

You are missing the GeoTools snapshot repository from your pom.xml. At
this stage (prior to the upcoming 2.6 milestone release, 2.6-M3) the
example will only work with the development build of the library but this isn't mentioned on the page.

If you add this to your repositories section you should have more luck.

<repository>
   <id>geotools-dev</id>
   <name>OSGeo snapshot repository</name>
   <snapshots>
       <enabled>true</enabled>
   </snapshots>
   <url>http://repo.osgeo.org/</url>
<repository>

I'm sorry about the confusion caused by the example pages being a bit ahead of the code release. On the other hand it's really nice to know that they're attracting readers :-) 

Please let us know how you go.

Michael



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett-2

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
Michael can we change the example page to say 2.6-SNAPSHOT until we
get a release candidate up? Also if Darmawan would be interested in a
quickstart PDF we are still accepting volunteerrs to review prior to
the conference.

Jody

On Thu, Oct 1, 2009 at 1:23 PM, Michael Bedward
<[hidden email]> wrote:

> Hi Darmawan,
> I'm cc-ing this reply to the geotools user list. Please join us there if
> you're not already a member.
> I'm not sure if you're the same person that I just replied to on the list,
> but in case you're not here's the answer...
> You are missing the GeoTools snapshot repository from your pom.xml. At
> this stage (prior to the upcoming 2.6 milestone release, 2.6-M3) the
> example will only work with the development build of the library but this
> isn't mentioned on the page.
> If you add this to your repositories section you should have more luck.
>
> <repository>
>    <id>geotools-dev</id>
>    <name>OSGeo snapshot repository</name>
>    <snapshots>
>        <enabled>true</enabled>
>    </snapshots>
>    <url>http://repo.osgeo.org/</url>
> <repository>
>
> I'm sorry about the confusion caused by the example pages being a bit ahead
> of the code release. On the other hand it's really nice to know that they're
> attracting readers :-)
> Please let us know how you go.
>
> Michael
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Geotools-gt2-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
2009/10/1 Jody Garnett wrote:
> Michael can we change the example page to say 2.6-SNAPSHOT until we
> get a release candidate up?

Yes - it's starting to look like a good idea isn't it :-)

I'll fix the page now but there seems to be a lag again in changes
making it onto the site. My edits of last night are not there yet.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett-2

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
In reply to this post by mbedward
Some javascript/style in this post has been disabled (why?)
Mr Sutanto:

Please join us on the geotools user list; if you would like to continue to work wtih a developer directly a range of organisations offer support contracts.

For more information visit out wiki at:

You will find that Mr Bedward's instructions will allow you to download a SNAPSHOT release; I am also releasing a 2.6-M3 which should help.

Jody

On 01/10/2009, at 8:14 PM, Darmawan Sutanto wrote:

Jody, I sent you this email too
hope you can help me solving this >.<
thx so much

--- On Thu, 10/1/09, Darmawan Sutanto <[hidden email]> wrote:

From: Darmawan Sutanto <[hidden email]>
Subject: Re: Quickstart.java
To: "Michael Bedward" <[hidden email]>
Date: Thursday, October 1, 2009, 5:12 AM

Thx Michael. but my program is still error >.<
would you like to try my source?? I really need this
i'm using geotools 2.6-M2 right now
i sent you this email again to give you my source

--- On Wed, 9/30/09, Michael Bedward <[hidden email]> wrote:

From: Michael Bedward <[hidden email]>
Subject: Re: Quickstart.java
To: "Darmawan Sutanto" <[hidden email]>
Cc: "geotools users" <[hidden email]>
Date: Wednesday, September 30, 2009, 10:23 PM

Hi Darmawan,

I'm cc-ing this reply to the geotools user list. Please join us there if you're not already a member.

I'm not sure if you're the same person that I just replied to on the list, but in case you're not here's the answer...

You are missing the GeoTools snapshot repository from your pom.xml. At
this stage (prior to the upcoming 2.6 milestone release, 2.6-M3) the
example will only work with the development build of the library but this isn't mentioned on the page.

If you add this to your repositories section you should have more luck.

<repository>
   <id>geotools-dev</id>
   <name>OSGeo snapshot repository</name>
   <snapshots>
       <enabled>true</enabled>
   </snapshots>
   <url>http://repo.osgeo.org/</url>
<repository>

I'm sorry about the confusion caused by the example pages being a bit ahead of the code release. On the other hand it's really nice to know that they're attracting readers :-) 

Please let us know how you go.

Michael




<cobacoba.rar><building log.txt>


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett-2

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
In reply to this post by mbedward
Some javascript/style in this post has been disabled (why?)
Nightly releases are made to a maven repository (http://download.osgeo.org/webdav/geotools/org/geotools/)
You can download the files by hand - but there is no nightly download bundle.

I just made a release for 2.6-M3 which you can download from source forge; link is on the website.

Jody

On 01/10/2009, at 11:58 PM, Darmawan Sutanto wrote:

ok then jody. I'll give feedback for it.
can you give me the link where to download geotools 2.6-snapshot too?
my netbeans not always download it automatically

--- On Thu, 10/1/09, Jody Garnett <[hidden email]> wrote:

From: Jody Garnett <[hidden email]>
Subject: Re: Quickstart.java
To: "Darmawan Sutanto" <[hidden email]>
Date: Thursday, October 1, 2009, 8:42 AM

netbeans has maven integration and will download it for you.

I have a "quickstart" I am doing for a lab; if you would be willing to send feedback I can try sending you a pdf.

Jody



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jody Garnett-2
Thx Jody. I can run quickstart now
but there is other problem. why can't I open any shapefiles??
I try to choose some of my shapefiles and the result is same,same error
this is the error log
Exception in thread "main" java.lang.NoClassDefFoundError: net/miginfocom/swing/MigLayout
        at org.geotools.swing.JMapFrame.initComponents(JMapFrame.java:262)
        at org.geotools.swing.JMapFrame.showMap(JMapFrame.java:119)
        at com.mycompany.cobacoba.Quickstart.main(Quickstart.java:43)
Caused by: java.lang.ClassNotFoundException: net.miginfocom.swing.MigLayout
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 3 more

Jody Garnett-2 wrote:
Mr Sutanto:

Please join us on the geotools user list; if you would like to  
continue to work wtih a developer directly a range of organisations  
offer support contracts.

For more information visit out wiki at:
- http://docs.codehaus.org/display/GEOTDOC/10+Communication+and+Support

You will find that Mr Bedward's instructions will allow you to  
download a SNAPSHOT release; I am also releasing a 2.6-M3 which should  
help.

Jody

On 01/10/2009, at 8:14 PM, Darmawan Sutanto wrote:

> Jody, I sent you this email too
> hope you can help me solving this >.<
> thx so much
>
> --- On Thu, 10/1/09, Darmawan Sutanto  
> <iam_untouchable2003@yahoo.com> wrote:
>
> From: Darmawan Sutanto <iam_untouchable2003@yahoo.com>
> Subject: Re: Quickstart.java
> To: "Michael Bedward" <michael.bedward@gmail.com>
> Date: Thursday, October 1, 2009, 5:12 AM
>
> Thx Michael. but my program is still error >.<
> would you like to try my source?? I really need this
> i'm using geotools 2.6-M2 right now
> i sent you this email again to give you my source
>
> --- On Wed, 9/30/09, Michael Bedward <michael.bedward@gmail.com>  
> wrote:
>
> From: Michael Bedward <michael.bedward@gmail.com>
> Subject: Re: Quickstart.java
> To: "Darmawan Sutanto" <iam_untouchable2003@yahoo.com>
> Cc: "geotools users" <geotools-gt2-users@lists.sourceforge.net>
> Date: Wednesday, September 30, 2009, 10:23 PM
>
> Hi Darmawan,
>
> I'm cc-ing this reply to the geotools user list. Please join us  
> there if you're not already a member.
>
> I'm not sure if you're the same person that I just replied to on the  
> list, but in case you're not here's the answer...
>
> You are missing the GeoTools snapshot repository from your pom.xml. At
> this stage (prior to the upcoming 2.6 milestone release, 2.6-M3) the
> example will only work with the development build of the library but  
> this isn't mentioned on the page.
>
> If you add this to your repositories section you should have more  
> luck.
>
> <repository>
>    <id>geotools-dev</id>
>    <name>OSGeo snapshot repository</name>
>    <snapshots>
>        <enabled>true</enabled>
>    </snapshots>
>    <url>http://repo.osgeo.org/</url>
> <repository>
>
> I'm sorry about the confusion caused by the example pages being a  
> bit ahead of the code release. On the other hand it's really nice to  
> know that they're attracting readers :-)
>
> Please let us know how you go.
>
> Michael
>
>
>
>
> <cobacoba.rar><building log.txt>


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
Hello,

It seems that the MigLayout library is missing from your system. The
module gt-swing depends on this library so Maven should have been
downloaded it for you when you built the Quickstart application.  I'm
a bit puzzled why this didn't happen.

I'm assuming that you did use Maven to build the application rather
than installing the GeoTools jars manually.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
so what do you think I should do Michael??
the first time I used Maven is when I'm using geotools

Scanning for projects...
artifact org.codehaus.mevenide:netbeans-run-plugin: checking for updates from maven2-repository.dev.java.net
artifact org.codehaus.mevenide:netbeans-run-plugin: checking for updates from osgeo
artifact org.codehaus.mevenide:netbeans-run-plugin: checking for updates from geotools-dev
[WARN]repository metadata for: 'artifact org.codehaus.mevenide:netbeans-run-plugin' could not be retrieved from repository: geotools-dev due to an error: Error transferring file
Repository 'geotools-dev' will be blacklisted
----------------------------------------------------------------------------
Building cobacoba
   task-segment: [package, org.codehaus.mevenide:netbeans-run-plugin:RELEASE:run-jar]
----------------------------------------------------------------------------
project-execute
artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from netbeansIDE-repo-internal
Ignoring available plugin update: 2.4 as it requires Maven version 2.0.6
Ignoring available plugin update: 2.3 as it requires Maven version 2.0.6
artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from netbeansIDE-repo-internal
artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from maven2-repository.dev.java.net
artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from osgeo
artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from netbeansIDE-repo-internal
Ignoring available plugin update: 2.4.3 as it requires Maven version 2.0.6
artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from netbeansIDE-repo-internal
Ignoring available plugin update: 2.2 as it requires Maven version 2.0.6
artifact org.apache.maven.plugins:maven-assembly-plugin: checking for updates from netbeansIDE-repo-internal
Ignoring available plugin update: 2.2-beta-4 as it requires Maven version 2.0.6
Ignoring available plugin update: 2.2-beta-3 as it requires Maven version 2.0.6
Ignoring available plugin update: 2.2-beta-2 as it requires Maven version 2.0.6
[resources:resources]
Using default encoding to copy filtered resources.
[WARN]Overriding profile: 'null' (source: pom) with new instance from source: pom
[WARN]Overriding profile: 'null' (source: pom) with new instance from source: pom
[WARN]Overriding profile: 'null' (source: pom) with new instance from source: pom
[compiler:compile]
Nothing to compile - all classes are up to date
[resources:testResources]
Using default encoding to copy filtered resources.
[compiler:testCompile]
Nothing to compile - all classes are up to date
[surefire:test]
Surefire report directory: D:\geotools bean\cobacoba\target\surefire-reports
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.mycompany.cobacoba.AppTest
Results :
[jar:jar]
Building jar: D:\geotools bean\cobacoba\target\cobacoba-1.0-SNAPSHOT.jar
Preparing assembly:directory
----------------------------------------------------------------------------
Building cobacoba
----------------------------------------------------------------------------
[WARN]Removing: directory from forked lifecycle, to prevent recursive invocation.
[resources:resources]
Using default encoding to copy filtered resources.
[compiler:compile]
Nothing to compile - all classes are up to date
[resources:testResources]
Using default encoding to copy filtered resources.
[compiler:testCompile]
Nothing to compile - all classes are up to date
[surefire:test]
Surefire report directory: D:\geotools bean\cobacoba\target\surefire-reports
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.mycompany.cobacoba.AppTest
Results :
[jar:jar]
Building jar: D:\geotools bean\cobacoba\target\cobacoba-1.0-SNAPSHOT.jar
[WARN]DEPRECATED [descriptor]: Please use descriptors instead
[assembly:directory {execution: nb}]
Processing DependencySet (output=lib)
Copying 45 files to D:\geotools bean\cobacoba\target\executable-netbeans.dir
[netbeans-run:run-jar]
Executing "'C:\Program Files\Java\jdk1.6.0_16\bin\java.exe' -jar 'D:\geotools bean\cobacoba\target\executable-netbeans.dir\cobacoba-1.0-SNAPSHOT.jar' " in directory D:\geotools bean\cobacoba\target\executable-netbeans.dir
Exited with return code 0
------------------------------------------------------------------------
BUILD SUCCESSFUL
------------------------------------------------------------------------
Total time: 32 seconds
Finished at: Fri Oct 02 07:32:09 ICT 2009
Final Memory: 57M/88M
------------------------------------------------------------------------

Darmawan
mbedward wrote:
Hello,

It seems that the MigLayout library is missing from your system. The
module gt-swing depends on this library so Maven should have been
downloaded it for you when you built the Quickstart application.  I'm
a bit puzzled why this didn't happen.

I'm assuming that you did use Maven to build the application rather
than installing the GeoTools jars manually.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
In reply to this post by mbedward
2009/10/2 Darmawan Sutanto wrote:
>
> so what do you think I should do Michael??
> the first time I used Maven is when I'm using geotools

No worries - maven can be quite overwhelming for new users with its
seemingly endless downloads and output.

I see you're using maven from within Netbeans but it looks like you
have either an old version of the IDE or of the Mevenide plugin.  If
that's right are you able to upgrade to the current version of
Netbeans (6.7.1)?

Also, please send your current pom.xml file to the list. I, or someone
else here, might spot a problem in the file.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Quickstart.java

Reply Threaded More More options
Print post
Permalink
As a test, I just deleted the miglayout library from my system and
then built the application from within Netbeans. Maven downloaded and
installed the library...

Downloading: http://repo1.maven.org/maven2/com/miglayout/miglayout/3.7/miglayout-3.7-swing.jar
73K downloaded  (miglayout-3.7-swing.jar)

The file was retrieved from the default maven repository (ie. a site
that you do not have to specify in your pom.xml file).  Normally, you
would expect to see a similar line of output when you build quickstart
on your system.

Occasionally, a maven build will hit an internet traffic jam or
temporarily unavailable resource. But we'll wait to see your pom.xml
file first.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users