Swing works on different platforms

I made Screen Recorder using Java Swing and Xuggler 5.4 . I developed it on Windows 8 64 bit. It works great for Windows. But on the client side, nothing works on Linux. I carefully searched, but did not get any solutions. I checked this thread , but it did not work for me.

Then I tried to create a simple transparent window in Linux, but it also does not work. I was unable to click the resize panel. I used the same JRE version (1.7) for both. Am I missing an understanding of Java Cross Platform Support regarding Swing? Please give me some advice ...

+1
java linux swing awt xuggler
source share
1 answer

I always thought registration was the best debugging tool at your disposal! Many times, java debuggers take you to an API where you don't have to go every time. The registering values โ€‹โ€‹of your variables and the general expressions "I got to this point" make life easier.

So, I suppose there are enough entries in your code. This may let you know what is going on in your client system. Are environment variables right? Do they indicate the correct Java versions that you need. If your code has specific screening requirements (plugins / modules / APIs), are they available on Linux m / c? Like @MadProgrammer, after all, Java needs to talk to its own graphical APIs to display your screen. I would try to debug it this way -

  • Check if my main screen is loaded or not (by disabling the screen capture function for a while).
  • if not, dig deeper.
  • Check if all the necessary components for screen capture (audio and video) are available.
  • Check if the code with the appropriate permissions is executed to control the h / w devices you may need.
0
source share

All Articles