How I can get the vaadin version from my API?

I search for
Application.getVersion()
, or
this.getProperty(“version”)
in an inherited class of
Application
(
java.lang.NullPointerException
) without no more success.

How can I know the version of vaadin I’m working on?

Thanks in advance,
cl-r

The current Vaadin version can be found in constant
com.vaadin.terminal.gwt.server.ApplicationServlet.VERSION

Have the similar problem. Get vaadin plugin for netbeans and also want to know version, but doesn’t have terminal library. Tried to use several methods:
com.vaadin.server.VaadinServlet.getCurrent().getServletName() - return name
com.vaadin.server.VaadinServlet.getCurrent().getServletInfo() - return nothing

How i can get version in that case?
13240.png

Hi,

my previous advice was for Vaadin 6.

For Vaadin 7, you should use the static methods found in
com.vaadin.shared.Version
class.