Not sure what you are trying to do there (never bothered to learn Java so I may not understand your code correctly). But all your code seems able to do (other than display some messages with the port read bits) is write all eight data bits high on the parallel printer port interface (lpt1:write(255);).
Now what that does (or you expect it to do) depends on how the "LEDs" are connected. You gave no clue, so there no way to determine what that command will do. But from the parallel port adapters point of view that command will: Set the output of the Open Collector outputs "high" which will allow them to float "open" to a state if an external current source pulls them to that state.
Now if you had done a (lpt1.write(0);) the result from the parallel port adapters point of view would be: Set the output of the Open Collector outputs "low" which will pull their output line to "ground" reference and sink up to 24ma of current to the ground reference (before burning out).
So to understand what is wrong, we need to understand how you have the LEDs hooked up in relation to your external current source. Note that the parallel interface only provides a "ground" reference pin and Open Collector outputs that can pull the data lines to the "ground" reference. It at no point can provide a current source (voltage) for operating devices such as LEDs. For example if you connected a resistor and LED in series between one of the data pins and the ground pin, it would do nothing, regardless of what your program did.
If however, you had a suitable current source (battery) with its negative side connected to the "ground" pin through a suitable low value resistor to prevent damage should there be a short, and a LED in series with a suitable resistor to limit the current to a maximum of 24ma or much less, with one end connected to a port pin and the other connected to the current source rail (positive side of battery), then when a ONE or high bit is written to the parallel port the LED would be OFF, and when a ZERO or low bit is written to the parallel port the LED, having a current sink, would come on.
There are of course other ways to wire this with Open Collector outputs, so how it works depends on the exact hardware design of your LEDs and associated resistors and current source.