Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.FileNotFoundException LPT1  RSS feed

 
Rolando Ochoa
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.io.FileNotFoundException: LPT1: (El sistema no puede hallar el archivo especificado)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
at java.io.FileOutputStream.<init>(FileOutputStream.java:76)
at com.estrellablanca.utils.printer.Impresor.<init>(Impresor.java:20)

Some body can help me with this problem, I did this test in MS-dos command line DIR>LPT1:, and after 9 times it send error ==>all instances are in use, so the problem is about configuration or something like that of the LPT1 port.

Thanks in advances.
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to use the Java Communications API to access the printer port.
 
Rolando Ochoa
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joe, I will do a test!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!