?
Solved

java problem

Posted on 2002-06-05
15
Medium Priority
?
233 Views
Last Modified: 2010-03-31
hi,
C:\>javac PrintExample.java
PrintExample.java:2: package javax.print not exist
import javax.print.*;
^
PrintExample.java:3: package javax.print.attribute not exist
import javax.print.attribute.*;
^

how can I solve this problem?

Thanks.
Stanley
0
Comment
Question by:klnhk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 3
  • +1
15 Comments
 
LVL 9

Expert Comment

by:Ovi
ID: 7055719
what JDK are you using ?
0
 
LVL 9

Expert Comment

by:Ovi
ID: 7055721
there is only java.awt.print
0
 
LVL 92

Expert Comment

by:objects
ID: 7055737
Try removing those two lines as they are invalid.

Can you post the complete code.
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 35

Accepted Solution

by:
girionis earned 200 total points
ID: 7055758
 Download the latest JDK1.4 Java 2 Platform Standard Edition and try again. I think the javax.print package is available only in the latest edition.

  As Ovi pointed out it would also help us if you tell us what version of JDK you are using.

  Hope it helps.
0
 
LVL 3

Expert Comment

by:oraelbis
ID: 7056535
I check my JDK1.3.1 for javax.print package, and not find it there. On Sun web site, here is links only from 1.4.0 version. Qirionis give right answer.
0
 
LVL 35

Expert Comment

by:girionis
ID: 7056770
 oraelbis if you think my comment was of use and help to you, you could award the points to me :-)
0
 
LVL 9

Expert Comment

by:Ovi
ID: 7058598
I use JDK1.4 and there is no trace of javax.print package. Take a look again ...
0
 
LVL 9

Expert Comment

by:Ovi
ID: 7058603
... perhaps as a separate jar file ? Please post the link from Sun.
0
 
LVL 9

Expert Comment

by:Ovi
ID: 7058610
Indeed there is such a package, but I cannot access'it&use'it.
0
 
LVL 35

Expert Comment

by:girionis
ID: 7058716
I did not know it existed too until oraelbis posted the question and had a look at Sun's site. I do not know if it offers any special features that the java.awt.print does not offer but I guess since it's there it has to offer something new.
0
 
LVL 35

Expert Comment

by:girionis
ID: 7058718
>I did not know it existed too until oraelbis posted the question and had a look at Sun's site

  Sorry I meant when klnhk posted his original question. I got confused who asked it. My apologies again.
0
 
LVL 9

Expert Comment

by:Ovi
ID: 7058822
It exist but I don't know why it cannot be used (imported).
0
 
LVL 92

Expert Comment

by:objects
ID: 7058834
I'm guessing cause Stanley's not using 1.4.
0
 
LVL 92

Expert Comment

by:objects
ID: 7058836
0
 
LVL 35

Expert Comment

by:girionis
ID: 8834010
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to girionis

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question