Call Java from Javascript JSNI
问题 I am using SmartGWT and I wish to access com.smartgwt.client.Version from JavaScript. In Firefox's Web Console, I have tried: frames[0].$entry(Lcom_smartgwt_client_Version::getVersion())); and frames[0].$entry(@com.smartgwt.client.Version.getVersion()); and frames[0].$entry(@com.smartgwt.client.Version::getVersion()); and frames[0].$entry(@com.smartgwt.client.Version::getVersion()()); But all of them return a syntax error. SmartGWT is deployed with my WAR and I can see other SmartGWT classes