473,405 Members | 2,310 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,405 software developers and data experts.

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 6539
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/Mo4HwxczzJRavJYRAr9sAKCzvX9QEdD4dGBJ1+NeNyJ3gfr6Ug CdGElf
VjAiHjh+79MOhab1klcvMy4=
=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
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...
0
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...
12
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...
38
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...
1
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" ...
2
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...
3
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...
12
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...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
0
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...

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.