mathApplet.getGreeting is not a function (in Firefox). This does not works in Chrome too. This is my first time I'm dealing with Java so I could miss something important. I'm using Intellij Idea.
actually, there were two errors - first, I forgot to place .jnlp file on the right place, and second (this is pretty strange), which I got after modifying code a bit -
document.writeln("...") before invocation of applet's function causes applet not to work.