在Mac上运行时如何在X11上显示Java Swing [英] How to display java swing on X11 when running on Mac

查看:223
本文介绍了在Mac上运行时如何在X11上显示Java Swing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很希望能够在Xvfb上运行我们的测试套件,以使旋转窗口不会在我的工作方式中不断弹出.不幸的是,我似乎找不到一种使java运行时使用DISPLAY环境变量中指定的显示的方法.我想这是因为Mac JDK硬性使用了(非基于X的)Mac显示器.

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.

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

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

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

Thanks in advance for any help you can give! Matt

推荐答案

我不知道是否有办法让Apple的JDK使用X11,但是还有使用

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.

这篇关于在Mac上运行时如何在X11上显示Java Swing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆