Re: Java not running under Linux - Mailing list pgsql-jdbc

From Zak McGregor
Subject Re: Java not running under Linux
Date
Msg-id 20030828044024.59a4f95d.zak@mighty.co.za
Whole thread Raw
In response to Re: Java not running under Linux  (Fernando Nasser <fnasser@redhat.com>)
List pgsql-jdbc
On Wed, 27 Aug 2003 22:22:58 -0400
Fernando Nasser <fnasser@redhat.com> wrote:

> wsmeyer@ibest.com.br wrote:> Hi,
> >
> >    I'm having problem  running  java on Linux. The source code is compiled
> >    ok, but when I try to run it with  "java filename" the follow error
> >    message appear:
> >
> >     " Exception in thread main java.lang.NoClassDefFoundError "

Try chopping the .class off the filename bit. In other words if your class is in
the file MyClass.class, run it with "java MyClass" instead of "java
MyClass.class"

HTH

Ciao

Zak

--
========================================================================
http://www.carfolio.com/        Searchable database of 10 000+ car specs
Auctioning motoring-related items at eBay? http://www.carfolio.com/ebay/
========================================================================

pgsql-jdbc by date:

Previous
From: Joseph Shraibman
Date:
Subject: Re: FATAL: Socket command type A unknown
Next
From: "Marcus Andree S. Magalhaes"
Date:
Subject: Re: Java not running under Linux