Solved

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

Posted on 1997-11-18
3
189 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 100 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

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…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

695 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