问一个关于jar的问题(急!!!)
在我现在做的程序中,文档中关于jar文件是这样写的:When you submit your assignment, each part (client and server)
must be executable using a command of this exact form:
java -jar <path_and_filename> [<mode>]
Your programs must not require use of command line arguments other than the single mode flag, which must be supported. Your programs must not require use of command line property specifications. All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.
The mode flag must be either "server", indicating the server program must run, "alone", indicating
standalone mode, or left out entirely, in which case the network client and gui must run.
我对jar文件不太熟,这个是怎麽实现的?那个suncertify.properties怎麽写呀?
还有,平时做关于RMI的程序时,client是连接本地server还是远端server一般是在用java命令指定。如果args.length==0则连接本地server;否则连接远端server,ip则在args[0]中。可在这种情况下,mode为"alone"则连接本地server;没有mode则只启动client,此时显然只有在GUI中输入ip,这样怎麽编程呢?