[Gvsig_desarrolladores] Question about Building our first plugin in gvSIG2.2

Joaquin Jose del Cerro Murciano jjdelcerro en gvsig.org
Jue Mar 2 11:14:47 CET 2017


2017-03-02 10:22 GMT+01:00 yuxin Han <hanyuxinbnu en gmail.com>:

> Hello Joaquin, thank you very much for your response.
>
> I have put the jar package of  "org.gvsig.landregistryviewer" in the "org.
> gvsig.andami\gvSIG\extensiones". However, when I run Launcher.java, this
> function still can not show in the main window, and the error appears in
> the console as the following. Do you have any idea of how to solve this? By
> the way, the version of gvSIG I installed is 2.2.0.
>
>>

Hello Jenny.
A couple things.

The trunk of "org.gvsig.landregistryviewer" is updated to deploy on a gvSIG
2.3. In a 2.2 will not work. I advise you to work with the sources in the
tags:

http://devel.gvsig.org/svn/gvsig-plugintemplates/org.gvsig.landregistryviewer/tags/

Anyway my advice is that you use gvSIG 2.3.1, in a few months will be gvSIG
2.4. If you develop for 2.2 by the time you have done the development you
will go several versions from behind.

The other thing.
You should not have to copy anything by hand to any place. If you have a
gvSIG installed, and configured the deployment correctly, it would be
enough to do an "mvn install" of the project "org.gvsig.landregistryviewer"
so that everything is correctly deployed in the gvSIG distribution. If it
has not been deployed correctly, my advice is to review it and do not try
to copy things by hand. In

https://oscar9.github.io/gvsig_scripting/en/developers_quick_start/2.2/building_our_first_plugin.html#our-first-project

Comment the file ".gvsig-devel.properties" (and problems you can have with
the in windows).

Another very important thing is the version of "maven" that you are using.
I only tested it with a "maven" 3.0.5. With a more recent version I know
that it failed. I do not know the last ones.

There is a updated version of the document you have been following in:

http://downloads.gvsig.org/download/web/es/build/html/developers_quick_start/2.3/01_introduction.html

At the moment, it is only in Spanish, but you can try the google translator:

https://translate.google.es/translate?sl=es&tl=en&js=y&prev=_t&hl=es&ie=UTF-8&u=http%3A%2F%2Fdownloads.gvsig.org%2Fdownload%2Fweb%2Fes%2Fbuild%2Fhtml%2Fdevelopers_quick_start%2F2.3%2F01_introduction.html&edit-text=&act=url

If you try with version 2.3.1 of gvSIG and you tell me if it gives you a
problem.

a greeting
Joaquin



> Again, thank you very much for your time!
>
> Regards,
>
> Jenny
>
> 2017-03-02 16:52 GMT+08:00 Joaquin Jose del Cerro Murciano <jjdelcerro@
> gvsig.org>:
>
>>
>>
>> 2017-03-02 8:34 GMT+01:00 jenny_han <hanyuxinbnu en gmail.com>:
>>
>>> Hello,I followed the method in this website,
>>> https://oscar9.github.io/gvsig_scripting/en/developers_quick
>>> _start/2.2/building_our_first_plugin.html,
>>> and everything seemed to be okay. But when I run the
>>> org.gvsig.landregistryviewer.main.Main, many errors arise. I have no
>>> idea
>>> about how to solve it. Could you please enlighten me?
>>> <http://osgeo-org.1560.x6.nabble.com/file/n5310234/error.png>
>>> <http://osgeo-org.1560.x6.nabble.com/file/n5310234/9.png>
>>>
>>>
>> Hello Jenny.
>> I'm afraid the "org.gvsig.landregistryviewer.main" subproject of
>> "org.gvsig.landregistryviewer" has not been updated in the latest versions
>> of gvSIG. If you really want to do things with gvSIG, that project does not
>> need it. This subproject serves to test the swing and logic part without
>> having to run gvSIG for it. The important thing is to compile and properly
>> deploy the "org.gvsig.landregistryviewer.app.mainplugin" subproject on
>> the gvSIG installation. If so, you should see that on startup of gvSIG
>> automatically displays a view and loads a layer on it.
>>
>> I have in the list of things to do review "org.gvsig.landregistryviewer.main",
>> but I do not know when I might have time for it.
>>
>> a greeting
>> Joaquin
>>
>>
>>> Thank you!
>>> Jenny
>>>
>>>
>>>
>>> --
>>> View this message in context: http://osgeo-org.1560.x6.nabbl
>>> e.com/Question-about-Building-our-first-plugin-in-gvSIG2-2-t
>>> p5310234.html
>>> Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.
>>> _______________________________________________
>>> gvSIG_desarrolladores mailing list
>>> gvSIG_desarrolladores en listserv.gva.es
>>> Para ver histórico de mensajes, editar sus preferencias de usuario o
>>> darse de baja en esta lista, acuda a la siguiente dirección:
>>> https://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>>>
>>
>>
>>
>> --
>> --------------------------------------
>> Joaquin Jose del Cerro Murciano
>> Development and software arquitecture manager at gvSIG Team
>> jjdelcerro en gvsig.com
>> jjdelcerro en gvsig.org
>> gvSIG Association
>> www.gvsig.com
>> www.gvsig.org
>>
>> _______________________________________________
>> gvSIG_desarrolladores mailing list
>> gvSIG_desarrolladores en listserv.gva.es
>> Para ver histórico de mensajes, editar sus preferencias de usuario o
>> darse de baja en esta lista, acuda a la siguiente dirección:
>> https://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>>
>>
>
> _______________________________________________
> gvSIG_desarrolladores mailing list
> gvSIG_desarrolladores en listserv.gva.es
> Para ver histórico de mensajes, editar sus preferencias de usuario o darse
> de baja en esta lista, acuda a la siguiente dirección:
> https://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores
>
>


-- 
--------------------------------------
Joaquin Jose del Cerro Murciano
Development and software arquitecture manager at gvSIG Team
jjdelcerro en gvsig.com
jjdelcerro en gvsig.org
gvSIG Association
www.gvsig.com
www.gvsig.org
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listserv.gva.es/pipermail/gvsig_desarrolladores/attachments/20170302/9fc914f3/attachment.html>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: bug.png
Type: image/png
Size: 62917 bytes
Desc: no disponible
URL: <http://listserv.gva.es/pipermail/gvsig_desarrolladores/attachments/20170302/9fc914f3/attachment.png>


Más información sobre la lista de distribución gvSIG_desarrolladores