473,770 Members | 5,299 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

package javax.mail.* and javax.activatio n.* doesn't exist

1 New Member
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 6683
JosAH
11,448 Recognized Expert MVP
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 Contributor
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 Recognized Expert MVP
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 Contributor
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 Recognized Expert MVP
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
2041
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 Perl returns an error in a command doesn't exist, so I'm sure we could have an exception in the same case for popen in Python? Thx and Regards, Nicolas
3
1818
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 opened, i want to create the file. I was wondering if this can be done. This is the code i have for opening the file: fstream rfile("names.db", ios::binary| ios::in | ios::out); if ( !rfile ) { cerr << "Could not open file 'names.db'\n"; }
4
7132
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 create a zero length file using the incorrect filename parameter!! WTF??? Is this supposed to be a feature??? Creating a file as a result of an exception? Isn't there a flag for this?
4
1234
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 queries the database and then directs them to the correct server. This works fine as long as their name actually exists in the database. If it doesn't the the page fails at the server = dataSet.Tables(0).Rows(0).Item(0).ToString()
1
1547
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 name of the file which I can't figure out how to do unless I read in my app config file and parse through the setting. TIA - Jeff.
4
39126
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 exist: if ((shfd = open(argv, O_CREAT | O_RDWR, 0644)) < 0) my_error("open failed");
1
5143
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 adapter. the problem is that not all rows in gridview exist in database (since it's an outer join) so I want to UPDATE statement to insert the row if it doesn't exist.
2
1482
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 table XXX doesn't exist". Did this happen to anyone else? If so, is there a way to recover those tables? Mysql v5.0.27 Server: Apache/2.2.3 running on Sun Thanks for any tips! Vincent
2
1409
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 they highlight the file name, the directory path shows up in another label box; then the user clicks the Open button to actually open the excel file for viewing. But what if the file doesn't exist yet? How do i add to my IF/Then statement a...
0
9591
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10053
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10001
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.