Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / September 2004

Tip: Looking for answers? Try searching our database.

java, X, and VNC

Thread view: 
sinister - 24 Sep 2004 22:19 GMT
A colleague of mine was running a java application on a Solaris box.  (Call
that box A.)

AFAICT, she rlogin'ed to Solaris box B from Solaris box A to run it.

Now I've encouraged her to switch to VNC.  So she connects to A via VNC.

Now when she rlogin's from A to B, and tries to run the java application, it
fails.  I did "xhost +" on A and "setenv DISPLAY A:#" on B (where # is the
VNC server number), which works for all X apps I've used, and that doesn't
work either.

I've never used a java app though so I might be missing something.

-S
Steve W. Jackson - 25 Sep 2004 16:39 GMT
>:A colleague of mine was running a java application on a Solaris box.  (Call
>:that box A.)
[quoted text clipped - 11 lines]
>:
>:-S

So far as I'm aware, VNC doesn't actually involve logging in to the
"remote" system.  I use it from home over VPN to a Linux system on my
company's private network, which requires logging in at first (I use
ssh, but other methods work) to launch the VNC server session; then
afterwards, you simply connect to that session and it behaves pretty
much as if you're actually logged on to that machine directly with a
graphical interface.

I develop and maintain a Java app my company sells, and I test it on the
Linux platform this way all the time without issue.  VNC, if memory
serves, uses HTTP for its data exchanges between the viewer and server
apps, but otherwise the system you're "viewing" is more or less unaware
that the user it remote.  This is not a Java issue.  It works for me as
it should, with no Java code that has any inkling of its surroundings.

The point of all this is to say that I obviously don't know precisely
what her issue might be, but it shouldn't be related to setting the
DISPLAY variable or using xhost+ or any of those things.  Perhaps her
actual connection method is at fault (you mention rlogin).  The key for
me has always been that I initially connect via ssh, then start the VNC
server on my Linux box, then log off.  Next, I simply connect to that
existing VNC session from some VNC viewer app (most always from my
company XP laptop, but sometimes via other systems).

Lotsa luck.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.