Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13468
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | deepak <deepak.vaswani@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC |
| Date | Wed, 11 Apr 2012 04:19:50 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 31 |
| Message-ID | <5669729.293.1334143190239.JavaMail.geo-discussion-forums@pbtr10> (permalink) |
| References | <cc382f4c-8985-491e-ac7e-f4c71e07bd71@9g2000yqp.googlegroups.com> |
| NNTP-Posting-Host | 120.59.29.62 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1334143553 22810 127.0.0.1 (11 Apr 2012 11:25:53 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 11 Apr 2012 11:25:53 +0000 (UTC) |
| In-Reply-To | <cc382f4c-8985-491e-ac7e-f4c71e07bd71@9g2000yqp.googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=120.59.29.62; posting-account=fLPAzAoAAABx8ISPAD0Fi3EnRc-iFCPT |
| User-Agent | G2/1.0 |
| X-Received-Bytes | 2140 |
| Xref | csiph.com comp.lang.java.programmer:13468 |
Show key headers only | View raw
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 Hi, Thanks so much for your reply GGolf and Lew. GGolf, I tried . also and I got the result as shown below. D:\project>java . SendMailTLSDFC Exception in thread "main" java.lang.NoClassDefFoundError: / Lew, I had used packages but i just removed it from the current file before posting the question here just reduce the complexities. Kindly help
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC deepak <deepak.vaswani@gmail.com> - 2012-04-10 01:40 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC GGolf <invalid@invalid.com> - 2012-04-10 18:56 +0530
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Lew <lewbloch@gmail.com> - 2012-04-10 10:16 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Roedy Green <see_website@mindprod.com.invalid> - 2012-04-29 07:52 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC deepak <deepak.vaswani@gmail.com> - 2012-04-11 04:19 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Paul Cager <paul.cager@googlemail.com> - 2012-04-11 05:44 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Lew <noone@lewscanon.com> - 2012-04-11 08:11 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC GGolf <invalid@invalid.com> - 2012-04-12 07:38 +0530
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Lew <lewbloch@gmail.com> - 2012-04-12 10:47 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC deepak <deepak.vaswani@gmail.com> - 2012-04-13 07:45 -0700
Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC Lew <lewbloch@gmail.com> - 2012-04-13 10:24 -0700
csiph-web