473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

package javax.mail.* and javax.activation.* doesn't exist

1
I have dowloaded mail.jar and activaton.jar and installed.when i compile my programme i got the error javax.mail. doesn't exist.
so please anyone can tell me how to make known this packages to the netbeans IDE
thanks
Aug 1 '08 #1
5 6536
JosAH
11,448 Expert 8TB
I have dowloaded mail.jar and activaton.jar and installed.when i compile my programme i got the error javax.mail. doesn't exist.
so please anyone can tell me how to make known this packages to the netbeans IDE
thanks
You haven't installed it properly then; all 'javax' packages are extension packages
and can be stored in the jreXXX/lib/ext/ directory (XXX is the version of your JRE).
The activation package is a member of the core distribution so you don't need
to install it separately unless you run a very old Java version.

kind regards,

Jos
Aug 1 '08 #2
blazedaces
284 100+
Have you added the jar files to the class path? What do you mean you've "installed" them?

-blazed
Aug 1 '08 #3
JosAH
11,448 Expert 8TB
Have you added the jar files to the class path? What do you mean you've "installed" them?
There is no need to add .jar files to the classpath variable when the jars are stored
in the lib/ext directory. The javax packages belong in there; they can possibly
make it to the core set or are removed from the extension mechanism.

kind regards,

Jos
Aug 1 '08 #4
blazedaces
284 100+
There is no need to add .jar files to the classpath variable when the jars are stored
in the lib/ext directory. The javax packages belong in there; they can possibly
make it to the core set or are removed from the extension mechanism.

kind regards,

Jos
Wow that might have made my life a little bit easier when I was trying to write a mailing program earlier this week and needed to get those jars to work...

-blazed
Aug 1 '08 #5
JosAH
11,448 Expert 8TB
Wow that might have made my life a little bit easier when I was trying to write a mailing program earlier this week and needed to get those jars to work...
Sure, anything in the javax.* packages is an extension and belongs in that ext
directory but don't put your own jars in there alhough it works. Your own jars
might conflict with the 'extensions'. It's a Sun trick and us mere mortals are
supposed to stay out of there.

kind regards,

Jos
Aug 1 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Nicolas Fleury | last post by:
Hi, How can I know if a system command doesn't exist? All the ways I have tried behave like if the system command was existing but returning one. I don't want to sound provocative, but open in...
3
by: AJ | last post by:
Hello, I was wondering if it is possible to create a file if it doean't exist. I am using fstream and writing in and out a binary file. I check to see if the file is opened. if it doesn't get...
4
by: Rush | last post by:
If i create a new StreamReader object, based on a filename that does not exist, the SR correctly raises an exception that the file doesn't exist. Great! I love it. BUT....then SR proceeds to...
4
by: Mike | last post by:
Hi I've written my first asp.net page below. It queries an Access database with one table consisting of two columns - a username and a server name. The users enter their login name and the page...
1
by: UJ | last post by:
What do you do if the configuration file for you configuration block doesn't exist? There doesn't seem to be an easy way to create the file. I could just create the file but that implies I know the...
4
by: norm4h8 | last post by:
Hi everyone! I have a problem with trying to open a file in C. The following line in my code is suppoed to open a specified file if it exists and create a new one with this name if one doesn't...
1
by: H5N1 | last post by:
hi there the topic says it all. I have a outer join select statement in tableadapter that populates GridView, I want to make it updatetable, so I need to provide an update command for table...
2
by: vdanvoye | last post by:
Some tables in my database cannot be opened anymore (in design or view mode). Those tables do exist though: they are listed when I run the query 'show tables' but when I try to open them, I get "1146...
2
by: Perl Beginner | last post by:
Hello all, I am new at VB6, but the more i learn, the more i love it! But i do have a question. I've created a form, the user has to choose an excel file from a list that they want to open, when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.