[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 1997-11-18
3
Medium Priority
?
198 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.
Suggested Courses

649 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