Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Date: Thu, 12 Apr 2012 10:47:01 -0700 (PDT) Organization: http://groups.google.com Lines: 23 Message-ID: <2761302.422.1334252821970.JavaMail.geo-discussion-forums@pbje9> References: <5669729.293.1334143190239.JavaMail.geo-discussion-forums@pbtr10> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1334260773 14963 127.0.0.1 (12 Apr 2012 19:59:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Apr 2012 19:59:33 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 1833 Xref: csiph.com comp.lang.java.programmer:13502 GGolf wrote: > Paul Cager wrote: >> deepak wrote: >>> I tried . also and I got the result as shown below. >>> D:\project>java . SendMailTLSDFC >>> Exception in thread "main" java.lang.NoClassDefFoundError: / >> >> You need >> >> java -cp . SendMailTLSDFC >> >> Otherwise the java command assumes "." is the name of the class you >> are trying to run. > > To the OP: You'll need mail.jar on the classpath too, so the command > will be: > > java -cp D:\mail.jar;. SendMailTLSDFC -- Lew