Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #13502

Re: Exception in thread "main" java.lang.NoClassDefFoundError: SendMailTLSDFC

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 <lewbloch@gmail.com>
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> (permalink)
References <cc382f4c-8985-491e-ac7e-f4c71e07bd71@9g2000yqp.googlegroups.com> <5669729.293.1334143190239.JavaMail.geo-discussion-forums@pbtr10> <b1d3ae88-4c36-45d0-b7ae-eccf0c8b2aef@db5g2000vbb.googlegroups.com> <jm5deq$59h$1@speranza.aioe.org>
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 <jm5deq$59h$1@speranza.aioe.org>
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

Show key headers only | View raw


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

<http://docs.oracle.com/javase/7/docs/technotes/tools/windows/classpath.html>

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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