I am using a Java-based application (a .jar file) to access a website for online discussion. And recently I've experienced some weird difference between running the application by double-clicking (on both Mac and Ubuntu) and running java -jar client.jar
from Terminal. When I open the client by double-clicking, it will not allow me to log in, while everything works fine if I run it from Terminal.
I know the description might be too vague, but I just wonder whether there is any general difference between these two ways of running .jar file. Thanks!
My Java environment is shown below:
$ java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)