Various problems on Linux machines

I made a game in Java using NetBeans 5.0. It works fine on my computer, and a few other people's, but I recently found out from a Linux user that it has two problems on that OS:

The file extension capitalization, which doesn't normally matter, was causing it not to find certain files (using the constructor of an ImageIcon).

and second

The keyboard did nothing. Mouse actions worked, but not the keyboard, so the game was unplayable.

For keyboard input I used addKeyListener and in the keyPressed and keyReleased events I store a boolean to a position in an array corresponding to the key that was pressed. In some cases I also perform a special action in addition to storing the boolean.

publicvoid keyPressed(KeyEvent e)

{

int key = e.getKeyCode();// Determines the key that was pressed

kpd[key] =true;// Stores the value in the array

/* More stuff here */

}

and I had a similar section with false instead of true for the keyReleased event.

Why is it not working?

[1326 byte] By [Aken_Boscha] at [2007-11-26 14:29:00]
# 1

I think it would be helpful if you found out what Java version the Linux user is running. It could be the stupid fake Java (gjc).

At any rate if it's working on one and not another (the keyboard part anyway) then it sounds like a bug and some version information would be good for starters.

As far as the filenames go you should always assume in Java that everything is case-sensitive. That will protect you from future issues.

cotton.ma at 2007-7-8 2:23:12 > top of Java-index,Other Topics,Java Game Development...