?
Solved

How the hell do you print in Java?!!!

Posted on 1997-11-18
3
Medium Priority
?
195 Views
Last Modified: 2010-04-16
From everything I seen, I am under the impression that you can print from a java application (I'm not worried about printing from applets, yet). I have seen several examples of sample code from people who say the code will print something out to my printer, but NONE of them work. They won't even compile! Whats the deal? Does anyone know how to print? If so, could you please share your knowledge with me? It would be greatly appreciated.

Thanks.  
0
Comment
Question by:johnsm
[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
3 Comments
 
LVL 4

Accepted Solution

by:
russgold earned 400 total points
ID: 1230913
Java printing is a JDK 1.1 feature.  If the samples do not compile on your machine, you are almost certainly using a JDK 1.02 compiler.  Switch to a version of the compiler (and VM) which supports JDK 1.1 and you should find your sample code working just fine.
0
 
LVL 1

Author Comment

by:johnsm
ID: 1230914
I THOUGHT I had downloaded 1.1 only to find out I got 1.0.2. Apparently those bastards lied to me! I now KNOW I have 1.1.4.

Thanks for the insight.

0
 

Expert Comment

by:chocksr
ID: 1230915
Can anyone tell me how to do printing from an Applet?
0

Featured Post

Technology Partners: 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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 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