Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

How to build jar file  ?

Thread view: 
moonhk - 11 Aug 2006 07:05 GMT
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
Jack Vamvas - 11 Aug 2006 10:11 GMT
Make sure your files are compiled and use  the "jar" command from your
command line
e.g  jar -cvf myfile.jar .\org\*
----
Jack Vamvas
___________________________________
Receive free SQL tips - www.ciquery.com/sqlserver.htm
___________________________________

> I have below CLASSPATH.
>
[quoted text clipped - 25 lines]
>                     ^
> 1 error


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.