Rick Rothweiler wrote:

> Hi All:
>                 I am fairley new to java,  and receintly wrote a very
> simple program  in a windows IDE.  I tried to run the .class file on my
>
> linux machine with no luck.  Both systems have jdk 1.2.2.  My linux
> machine says "Exception in thread "main"
>
> java.lang.NoClassDefFoundError:  First_tst/class.     Any Ideas.

Rick,

Leave off the '.class' extension when invoking from the command line. I.e.
invoke as:

    java First_tst

not as:    java First_tst.class

See the JDK1.2.2 docs for additional details. You won't find Linux
specific docs in the core docs, but just follow the Solaris thread for
command line tools, environment etc as the same options would apply to the
corresponding Linux versions.

--
David Marshall       mailto:[EMAIL PROTECTED]
VM Systems, Inc.           http://www.vmguys.com




----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to