Re: Java not running under Linux

From: Zak McGregor <zak(at)mighty(dot)co(dot)za>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Java not running under Linux
Date: 2003-08-28 02:40:24
Message-ID: 20030828044024.59a4f95d.zak@mighty.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Wed, 27 Aug 2003 22:22:58 -0400
Fernando Nasser <fnasser(at)redhat(dot)com> wrote:

> wsmeyer(at)ibest(dot)com(dot)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/
========================================================================

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Marcus Andree S. Magalhaes 2003-08-28 04:05:27 Re: Java not running under Linux
Previous Message Fernando Nasser 2003-08-28 02:22:58 Re: Java not running under Linux