java - Error given only in terminal? -


i have rock paper scissors program done, , when run in eclipse compiles fine , game plays okay. although, when compile in terminal (using ubuntu) following error:

xx@xx:~/dropbox$ cd t* xx@xxxx:~/dropbox/xx$ ls rpsgame.java rpsplayer.java rpstournament.java xx@xx:~/dropbox/xxxx$ javac rpstournament error: class names, 'rpstournament', accepted if annotation processing explicitly requested 1 error xx@choloboy:~/dropbox/xx$

any idea mean?

you need include file extension ".java" on command line when compiling.

to compile use:

javac rpstournament.java

to run use:

java rpstournament


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -