473,761 Members | 9,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't find javax.* and other "extra" packages

I'm using JDK 1.4.1 for Java 2. According to the API docs, I can use javax
packages, but when I add:

import javax.crypto;

I get an error that it can't find the package. Is there some special way to
get javax packages? According to a web page at Sun, the crypto is supposed
to be included with 1.4. (That's how they write it -- no 1.4.1 or 1.4.2,
just written as 1.4.)

And, along with this, I've found references to a java.mail API. I can't
find anything like that documented in the JDK references. Where can I find
this package? It would be a huge help to have that instead of having to
write my own POP3/SMTP routines.

Thanks for any help!

Hal
Jul 17 '05 #1
1 6564
Chris wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hal Vaughan wrote:
I'm using JDK 1.4.1 for Java 2. According to the API docs, I can
use javax packages, but when I add:

import javax.crypto; [snip]

Hi,
Maybe you want:

import javax.crypto.*;

which will import all the classes inside the package. You can't just
import a package on its own.


Okay. The error message said, "package javax does not exist" so I thought
it refered specifically to javax, but once I fixed it like you suggested,
it worked fine. (I had also seen some documentation that indicated
javax.crypto was a package all by itself.)

Thanks. It works fine now!

Hal
- --
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/Mo4HwxczzJRavJY RAr9sAKCzvX9QEd D4dGBJ1+NeNyJ3g fr6UgCdGElf
VjAiHjh+79MOhab 1klcvMy4=
=A7Sj
-----END PGP SIGNATURE-----


Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
2053
by: juglesh | last post by:
"$string = isset($xyz) ? $xyz : "something else";" Hello, someone gave code like this in another thread. I understand (by inference) what it does, but have not found any documentation on this type of syntax. Any one have links to this shortuct(?) syntax and other types of
0
1827
by: lars | last post by:
I'm starting to use xcode on OS X to try out some sample programs in Java. How do I deal with extra packages? e.g. package je3.xml; I've downloaded, package je3.xml from the Java Examples in a Nutshell site, but cannot figure out how to get xcode to find the package or into which directory it should go. -Lars
12
1408
by: Erik Johnson | last post by:
I am wanting to generate dynamic graphs for our website and would rather not invest the time in developing the code to draw these starting from graphics primitives. I am looking for something that is... "fairly robust" but our needs are relatively modest: X-Y scatter plots w/ data point symbols, multiple data set X-Y line plots, bar charts, etc. Preferably this would come from a company that can provide support & decent documentation,...
38
3895
by: Jack Klein | last post by:
Many people, including me, like having hard copy books at hand, along with electronic editions. When I first heard of this book several months ago, I pre-ordered a copy. It arrived from Bookpool today. The book is an impressive hard cover, printed in large and very readable type. The first section is the rationale, about 212 pages with its own
1
1283
by: soalvajavab1 | last post by:
I export an access table using Oracle ODBC driver to Oracle schema, it add character " to table name and all its column names like this "ff_to_oracle" ( ID VARCHAR2(20), "empid" VARCHAR2(20), "empname" VARCHAR2(50), "empdept" VARCHAR2(20), "create_date" DATE
2
1680
by: Dmenace | last post by:
Microsoft blows my mind sometimes, what the hell were they thinking? Oh, wait they weren't, that's right. Anyway, I've got a Setup and Deployment added to my project, and it does everything I want it to, with 1 exception. I have created the infamous fonts folder in order for it to install fonts, but it's only putting shortcuts to them in the fonts folder under the windows directory. Why is this? With only shortcuts to them, I can not use...
3
1783
by: donllll | last post by:
Hello, I am coding an web service factory application. In service implementation code I am trying to pass a domain and user to a stored procedure on a SQL Server 2005 Database. The problem is I cannot get c# to NOT add the extra "\" cmd.CommandText = @"exec dbo.spWorldClockGetTimezones DS\john.doe"; I tried even hardcoding to get the process to work - in the above example I am still seeing "...DS\\xxxx.xxx" when I click on the...
12
1423
by: kimiraikkonen | last post by:
Hi, I have small project which opens text files via inside the project but i want to associate this app for every text file. To have a test, if i right click on a text file -then "open with" -my application... but my app's text area(textbox,where the text data is loaded into. ) is opened blank, nothing is displayed except a general view of my project app How can i make "open with" association to display text with my project properly?
3
1327
by: james | last post by:
Hi all, I recently updated os x from python 2.4 to 2.5 (from python.org) and in doing so I lost my old python path entries. Python 2.4 was installed using fink. Now when I do: import sys print sys.path my old site-packages directory is not within it (the 2.4 one).
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9923
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
8813
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
7358
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
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5266
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
3911
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
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
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.