posted 6 years ago
I didn't see anything obviously wrong with your code, except that it was missing code tags, which I've added for you. Your issue is probably with the javax.media packages, not anything I/O based. Let's try it in Other JSE/JEE APIs.
Something you could try is find some demo code and see if you can get that working locally. The Oracle site is a good place to start looking: http://www.oracle.com/technetwork/java/javase/tech/index-jsp-140239.html
Another good idea is to provide more details about what's not working. Does it crash, print a stack trace, or fail silently? How far does it get before failing? Stuff like that makes it easier for us to diagnose the problem.
Something you could try is find some demo code and see if you can get that working locally. The Oracle site is a good place to start looking: http://www.oracle.com/technetwork/java/javase/tech/index-jsp-140239.html
Another good idea is to provide more details about what's not working. Does it crash, print a stack trace, or fail silently? How far does it get before failing? Stuff like that makes it easier for us to diagnose the problem.
