Ubuntu Forums Archive Viewer

need helps to compile and run java

Archived thread 1026437 from Packaging and Compiling Programs. Markdown source: Packaging_and_Compiling_Programs/thread_1026437_need_helps_to_compile_and_run_java.md

Original URL About this archive
#1

my file name sam.java

it shows follwing error, while compile this program [B] javac sam.java javac: file not found: sam.java Usage: javac <options> <source files> use -help for a list of possible options [/B] [COLOR="Red"] what will i do?[/COLOR]

#2

do cat sam.java if you can see the file contents, the command you typed should work.