![Page 1: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/1.jpg)
CPSC 233Run graphical Java programs remotely
on Mac and Windows
![Page 2: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/2.jpg)
Simple Example
• Hello GUI can run locally.
![Page 3: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/3.jpg)
Simple Example
• Hello GUI cannot run on cpsc server when remote access.
![Page 4: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/4.jpg)
Install Xquartz on MAC
• Click go-utilities-X11
• Press continue, as X11 is no longer included with OS X, go to XQuartz project: http://xquartz.macosforge.org
• Download XQuartz-2.7.7.dmg
• Install
![Page 5: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/5.jpg)
Run Xquartz on MAC
• Go to utility-terminal
• ssh –X to cpsc server: -X to enable display forwarding
![Page 6: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/6.jpg)
Install Xming onWindows
• Download and run the current setup executable available at the SourceForge page for Xming. http://sourceforge.net/projects/xming/files/Xming-mesa/6.9.0.31/Xming-mesa-6-9-0-31-setup.exe/download
• Install Xming
![Page 7: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/7.jpg)
Install Xming onWindows
![Page 8: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/8.jpg)
Variable Assignment• you should see the following dialog indicating successful
installation of Xming. You are now equipped to view X11-based graphical applications remotely. Click [Finish].
![Page 9: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/9.jpg)
PuTTY SSH
• In the PuTTY configuration window, select "Connection->SSH->X11" and make sure the Enable X11 forwarding box is checked, then return to the Session category and click [Open] when you are ready to connect to the specified machine:
![Page 10: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/10.jpg)
SSH Secure Shell Client
• Select the menu option "Edit->Settings" as shown below:
![Page 11: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/11.jpg)
SSH Secure Shell Client
• Select the option "Profile Settings->Connection->Tunneling" and make sure the "Tunnel X11 connections" box is checked, then click [OK]. This should then be set for future uses of SSH Secure Shell Client.
![Page 12: CPSC 233 Run graphical Java programs remotely on Mac and Windows](https://reader030.vdocuments.net/reader030/viewer/2022032414/56649eeb5503460f94bfc1e3/html5/thumbnails/12.jpg)
Run graphical Java programs remotely
• Double Click Xming
• Run ssh secure file Transfer or Putty
• Connect to cpsc sever and run helloWorld class