Plugin development with Eclipse

42 views
Skip to first unread message

Maxime HEBRARD

unread,
Dec 14, 2011, 5:50:18 AM12/14/11
to savant-c...@googlegroups.com
Hi.
I try to develop a Savant plugin referes to this aim :
https://groups.google.com/forum/#!topic/savant-community/xkMOJAEsGSU

For my java programming I use Eclipse, so I import demo project in this soft.

In my java Project I have src folder with my main class and savant.amino folder with the demo classes

in Amino plugin.java there are :
import savant.api.data.DataFormat;
import savant.api.event.PluginEvent;
import savant.api.event.TrackEvent;
import savant.api.util.Listener;
import savant.api.util.PluginUtils;
and some others

When I copy/past import lines in my Class import cannot be resolve !
even the two classes are in the same project with the same buildpath !

Can you help me please ?

MH


Eric J. M. Smith

unread,
Dec 14, 2011, 8:48:37 AM12/14/11
to maxime....@gmail.com, savant-c...@googlegroups.com

On 14-Dec-2011, at 05:50 , Maxime HEBRARD wrote:

> In my java Project I have src folder with my main class and savant.amino folder with the demo classes
>
> in Amino plugin.java there are :
> import savant.api.data.DataFormat;
> import savant.api.event.PluginEvent;
> import savant.api.event.TrackEvent;
> import savant.api.util.Listener;
> import savant.api.util.PluginUtils;
> and some others
>
> When I copy/past import lines in my Class import cannot be resolve !
> even the two classes are in the same project with the same buildpath !
>
> Can you help me please ?

Hi Maxime,

Is your Eclipse project including the Savant.jar library? That might explain the missing imports.

Eric Smith
Tarkvara Design Inc.

Maxime HEBRARD

unread,
Dec 15, 2011, 5:41:55 AM12/15/11
to Savant Community
yes Savant.jar is included.
mysteriously, it works before save and reboot eclipse, maybe a
actualisation problem.

so I can start development :)

I m some problem to export my project in jar. maybe I miss some files
to include in the jar ...
When i load my jar in Savant v1.6.1, it pop NoClassDefFoundError:
savant/api/util/Listener

Eric J. M. Smith

unread,
Dec 15, 2011, 9:16:21 AM12/15/11
to maxime....@gmail.com, Savant Community

On 15-Dec-2011, at 05:41 , Maxime HEBRARD wrote:

> yes Savant.jar is included.
> mysteriously, it works before save and reboot eclipse, maybe a
> actualisation problem.
>
> so I can start development :)
>
> I m some problem to export my project in jar. maybe I miss some files
> to include in the jar ...
> When i load my jar in Savant v1.6.1, it pop NoClassDefFoundError:
> savant/api/util/Listener

Hi Maxime,

It sounds like you compiled your plugin using the Savant.jar from the 2.0.0-alpha SDK and are trying to run the plugin in 1.6.1. We haven't officially released 2.0.0, but if you want to test your plugin inside the Savant application, you can replace your application's existing Savant.jar with the copy from the SDK.

Hope that helps,

Reply all
Reply to author
Forward
0 new messages