如何在Mac上运行时在X11上显示java swing

时间:2022-12-26 02:40:09

I would really like to be able to run our test suite on Xvfb so that swing windows don't keep popping up in the way of my work. Unfortunately I cannot seem to find a way to get the java runtime to use the display specified in the DISPLAY environment variable. I suppose this is because the Mac JDK is hardwired to use the (non-X-based) Mac display.

我真的希望能够在Xvfb上运行我们的测试套件,以便摆动窗口不会像我的工作方式一样弹出。不幸的是,我似乎找不到让java运行时使用DISPLAY环境变量中指定的显示的方法。我想这是因为Mac JDK硬连线使用(非基于X的)Mac显示器。

I can't find any switches for the java command that say to use X either.

我找不到任何说使用X的java命令的开关。

Thanks in advance for any help you can give! Matt

在此先感谢您提供任何帮助!马特

1 个解决方案

#1


I don't know if there is a way to get Apple's JDK to use X11, but there is the alternative of using SoyLatte, which is a Mac Java implementation that only works with X11.

我不知道是否有办法让Apple的JDK使用X11,但是可以选择使用SoyLatte,这是一个仅适用于X11的Mac Java实现。

#1


I don't know if there is a way to get Apple's JDK to use X11, but there is the alternative of using SoyLatte, which is a Mac Java implementation that only works with X11.

我不知道是否有办法让Apple的JDK使用X11,但是可以选择使用SoyLatte,这是一个仅适用于X11的Mac Java实现。