dcsimg
problem printing java program on linux
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   amit_daundkar
Posted On:   Thursday, February 19, 2009 05:14 AM

hi, i have a java code in windows like: public static void main(String[]a) { PrintWriter out = new PrintWriter("LPT"); out.write ("This is Demo Print"); } this works fine in wondows. but now when i use linux fedora9, and i am changing the statement to: PrintWriter out = new PrintWriter("/dev/lp0"); but this does not work. "parallel:/dev/lp0" also does not work. please tell me what path shall i give to the PrintWriter object.do i need to make any change in any file? please reply.    More>>

hi,
i have a java code in windows like:

public static void main(String[]a)
{
PrintWriter out = new PrintWriter("LPT");
out.write ("This is Demo Print");
}
this works fine in wondows.

but now when i use linux fedora9, and i am changing the statement to:
PrintWriter out = new PrintWriter("/dev/lp0");
but this does not work.

"parallel:/dev/lp0" also does not work.

please tell me what path shall i give to the PrintWriter object.do i need to make any change in any file?

please reply.

   <<Less
About | Sitemap | Contact