Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: deepak Newsgroups: comp.lang.java.programmer Subject: Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Date: Fri, 13 Apr 2012 07:45:27 -0700 (PDT) Organization: http://groups.google.com Lines: 24 Message-ID: <7597456.21.1334328327685.JavaMail.geo-discussion-forums@pbvs10> References: NNTP-Posting-Host: 59.177.32.174 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1334328442 8263 127.0.0.1 (13 Apr 2012 14:47:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 Apr 2012 14:47:22 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.177.32.174; posting-account=fLPAzAoAAABx8ISPAD0Fi3EnRc-iFCPT User-Agent: G2/1.0 X-Received-Bytes: 1878 Xref: csiph.com comp.lang.java.programmer:13522 Thanks a lot evrybody, java -cp D:\mail.jar;. SendMailTLSDFC Above command worked. Deepak :) On Tuesday, April 10, 2012 2:10:43 PM UTC+5:30, deepak wrote: > Hi, I have created a java file for sending a file to my mail. I am > using mail.jar file. I am able to create .class file properly. But am > unable to run this file using java command on command prompt. > javac -cp D:\mail.jar SendMailTLSDFC.java > above command is working properly. > It creates 2 class as mentioned below > SendMailTLSDFC$1.class > SendMailTLSDFC.class > > but when i am trying to run following command I am getting an error. > java -cp D:\mail.jar SendMailTLSDFC > Exception in thread "main" java.lang.NoClassDefFoundError: > SendMailTLSDFC > > Kindly help