How to build jar file ?

M

moonhk

I have below CLASSPATH.

C:\Example\javaux\mail>set|grep -i class
CLASSPATH=.;
c:\program Files\notes\Notes.jar;
c:\Program Files\notes\data\domino\java\NCSO.jar;
C:\Program Files\Java\api\jaf-1.0.2\activation.jar;
C:\Program Files\Java\api\javamail-1.3.2\mail.jar;
c:\example\javaux\javaclass\lotus\domino\NCSO.jar

I want build New jar include ByteArrayDataSource how to process ?

org.apache.commons.mail
Class ByteArrayDataSource
java.lang.Object
org.apache.commons.mail.ByteArrayDataSource

All Implemented Interfaces:
javax.activation.DataSource


Below java program need ByteArrayDataSource class

C:\Example\javaux\mail>javac sendhtml.java
sendhtml.java:242: cannot resolve symbol
symbol : class ByteArrayDataSource
location: class sendhtml
new ByteArrayDataSource(sb.toString(), "text/html")));
^
1 error
 
J

Jack Vamvas

Make sure your files are compiled and use the "jar" command from your
command line
e.g jar -cvf myfile.jar .\org\*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top