From: Weigang G. <go...@ho...> - 2004-01-18 21:58:28
|
<html><div style='background-color:'><DIV class=RTE> <P>Hi, </P> <P>I have a simple hellow world program. It accepts a command line argument , which indicate a file name, say file1. The compilation is ok, but when I run it like:</P> <P>>java main file1</P> <P>It reported FileNotFoundException. But I did put the file1 in the same directory with the main class. Why Dr.Java can't find it?</P> <P> </P> <P>Any suggestion is welcomed.</P> <P> </P> <P>Thanks.</P> <P>Michael<BR></P> <P><BR> </P></DIV></div><br clear=all><hr>Add photos to your messages with <a href="http://g.msn.com/8HMBEN/2749??PS=">MSN 8. </a> Get 2 months FREE*.</html> |