title: Call Java from Javascript JSNI
body: <p>I am using SmartGWT and I wish to access <code>com.smartgwt.client.Version</code> from JavaScript. In Firefox's Web Console, I have tried:</p>
  
  <p><code>frames[0].$entry(Lcom_smartgwt_client_Version::getVersion()));</code></p>
  
  <p>and</p>
  
  <p><code>frames[0].$entry(@com.smartgwt.client.Version.getVersion());</code></p>
  
  <p>and </p>
  
  <p><code>frames[0].$entry(@com.smartgwt.client.Version::getVersion());</code></p>
  
  <p>and</p>
  
  <p><code>frames[0].$entry(@com.smartgwt.client.Version::getVersion()());</code></p>
  
  <p>But all of them return a syntax error. </p>
  
  <p>SmartGWT is deployed with my WAR and I can see other SmartGWT classes listed when I do just <code>frames[0]</code>.</p>
  
  <p>What is the right syntax to call this static Java method?</p>