Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now