Main-Class manifest in max.jar
Hi,
I'm trying to compile through javac a java file adding the libraries NetUtil.jar, max.jar and a personal jar package.
A simple ant buildfile does the work, but when trying to compile with javac it gives the error:
"Failed to load Main-Class manifest attribute from
.. max.jar"
the directory contains:
myClass.java max.jar NetUtil.jar myPackage.jar
the command line compile instructions I give are:
javac -classpath .max.jar;.NetUtil.jar;.myPackage.jar myClass.java
I attach the rar of the directory.
Thanks for helping
Tom
Hi tommaso,
(In case anyone else wants to unpack rar files in OS X:
http://unrarx.sourceforge.net/)
> the directory contains:
> myClass.java max.jar NetUtil.jar myPackage.jar
Here's what I see:
CMMax.class NetUtil.jar cm.jar
CMMax.java build.xml max.jar
This doesn't match the command you told us about. Can you please send
exactly the command you are trying to compile with?
Thanks,
Ben
I'm getting the following error messages when trying to send email
via net.mail.send:
javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for
MIME type text/plain; charset=us-ascii
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at net.mail.send.deliver(send.java:71)
Caused by: javax.activation.UnsupportedDataTypeException: no object
DCH for MIME type text/plain; charset=us-ascii
at javax.activation.ObjectDataContentHandler.writeTo
(DataHandler.java:885)
at javax.activation.DataHandler.writeTo(DataHandler.java:316)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
... 3 more
exception: MessagingException
I just downloaded and installed the most recent jars (javamail-1.4
and jaf-1.1).
Georg
On 28 Apr 2007, at 11:10, Georg Hajdu wrote:
> javax.activation.UnsupportedDataTypeException: no object DCH for
> MIME type text/plain; charset=us-ascii
A quick bit of Googling throws up this:
It might be a contender...
Nick Rothwell / Cassiel.com Limited
www.cassiel.com
www.myspace.com/cassieldotcom
www.loadbang.net