473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

setting up classroom lab


I have inherited the responsibility of setting up a college lab for java
classes. I know next to nothing about java and have a few questions;

Our current configuration is;
Windows 2000 / XP lab machines with J2SE 1.4.2

Redhat 8.0 server with J2SE 1.4.2

Students telnet into the Redhat server and use PICO to create their scripts.
My question is;

If the student programs are designed to display GUI type boxes would this be
possible via telnet?

From my limited experience with Linux I would think they would need XWindows
access to do this.

???

Thanks,
-Giles


Jul 17 '05 #1
12 2200
glh-usenet wrote:
Students telnet into the Redhat server and use PICO to create their scripts.
For one thing, you don't write "scripts" in Java. You should double-
check to be sure you know whether the labs are for Java (in which it is
possible to write applets, applications, servlets, midlets, and more...)
or JavaScript (a completely different language used to write scripts for
web pages). If it's Java, and not JavaScript, then read on.
My question is;

If the student programs are designed to display GUI type boxes would this be
possible via telnet?

From my limited experience with Linux I would think they would need XWindows
access to do this.


Right. GUI programming is not possible via telnet, but it should be
possible if an X server is running on the Windows client machine,
assuming they have their DISPLAY environment variable set correctly if
they telnet to the RedHat machine.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Jul 17 '05 #2

"Chris Smith" <cd*****@twu.net> wrote in message
news:MP************************@news.pop4.net...
glh-usenet wrote:
Students telnet into the Redhat server and use PICO to create their scripts.

You should double-
check to be sure you know whether the labs are for Java (in which it is
possible to write applets, applications, servlets, midlets, and more...)
or JavaScript
Thanks for the quick reply Chris. I will check with regards to Java versus
Javascript.
From my limited experience with Linux I would think they would need XWindows access to do this.


Right. GUI programming is not possible via telnet, but it should be
possible if an X server is running on the Windows client machine,
assuming they have their DISPLAY environment variable set correctly if
they telnet to the RedHat machine.


By X server do you mean something like VNC?
Thanks again!
-Giles
Jul 17 '05 #3
In article <46******************************@news.teranews.co m>, glh-
us****@comcast.net enlightened us with...

Right. GUI programming is not possible via telnet, but it should be
possible if an X server is running on the Windows client machine,
assuming they have their DISPLAY environment variable set correctly if
they telnet to the RedHat machine.


By X server do you mean something like VNC?


We use Hummingbird Exceed for X-Windows here.

An X-Server is a server (program) that tells Windows how to make windows
unix-style (or linux style). It translates things as appropriate and has
to run on the client machine. My Windows box has Hummingbird installed
and it can telnet, ftp, and do x-windows sessions. I telnet to the unix
server, set my DISPLAY environment variable (in the telnet session), and
run any program that uses a unix GUI and the x-windows client will make
the GUI run on my Windows box.
I can also set up a simple x-windows session in Hummingbird itself with
no need for a separate telnet window.

--
--
~kaeli~
All I ask is the chance to prove that money cannot make me
happy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 17 '05 #4

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
An X-Server is a server (program) that tells Windows how to make windows
unix-style (or linux style). It translates things as appropriate and has
to run on the client machine.

^^^^^^^^^^^
Thanks for the reply.
I think I am confused with some concepts here. If it is running on the
client machine then why is it call a server?

The component of Hummingbird (or any other X-Windows program) that runs on
the Windows box is considered the client piece, correct?
And the component that runs on the Linux box is the server?

Thanks again,
-Giles
Jul 17 '05 #5
glh-usenet wrote:
"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...

An X-Server is a server (program) that tells Windows how to make windows
unix-style (or linux style). It translates things as appropriate and has
to run on the client machine.


^^^^^^^^^^^
Thanks for the reply.
I think I am confused with some concepts here. If it is running on the
client machine then why is it call a server?

The component of Hummingbird (or any other X-Windows program) that runs on
the Windows box is considered the client piece, correct?
And the component that runs on the Linux box is the server?


No.
In X terminology, the machine with a screen and keyboard is the X-server,
think of it as the display server. The machine running the program (Red Hat
in your case) is then the client. The client program connects to the X
server.

I think it harks back to the days when the big mainframe was in charge of
everything and the displays were subservient devices on the end of
cluster controllers.

P.S.
Rather than setting the DISPLAY variable in your telnet session, which is
a right royal PITA to remember every time, using "ssh -X hostname" instead
of "telnet hostname" sets it all up for you.

Is there any reason why they can't use the local java installation rather
than write it on the server?

Have a look at BlueJ (http://www.bluej.org). Its a java IDE specially
written for teaching.

Steve
Jul 17 '05 #6
In article <34******************************@news.teranews.co m>, glh-
us****@comcast.net enlightened us with...

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
An X-Server is a server (program) that tells Windows how to make windows
unix-style (or linux style). It translates things as appropriate and has
to run on the client machine.

^^^^^^^^^^^
Thanks for the reply.
I think I am confused with some concepts here. If it is running on the
client machine then why is it call a server?


For the same reason IIS (or Apache) running on my local machine testing
my local html documents is still a server. :)
Or php running on my machine testing my php documents is still a server.
It serves up the php documents - the client is simply on the same
machine as the server runs on. The client in these cases would be a
browser.

I also have an SQL server installed on my local machine. A server merely
takes requests from a client and does something with them. The server
and the client can be, and often are for development, on the same
machine.

In the case of x-windows, the request (that is, something sends data to
something else and expects something to be done with that data) comes
from the unix box, so the real paradigm is that the unix machine is the
client for the x-windows server. For ease of discussion, we often call
the machine doing the telnet session the client and the machine that is
connected to is the server, but sometimes this is not entirely accurate.

HTH

--
--
~kaeli~
A man needs a mistress... just to break the monogamy.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 17 '05 #7

"Chris Smith" <cd*****@twu.net> wrote in message
news:MP************************@news.pop4.net...
Right. GUI programming is not possible via telnet, but it should be
possible if an X server is running on the Windows client machine,
assuming they have their DISPLAY environment variable set correctly if
they telnet to the RedHat machine.


If I understand you correctly as long as an X server is running on the
Windows machines they can telnet and execute their GUI java programs?

Where does appletviewer come in to play with this?

Thanks,
-Giles
Jul 17 '05 #8
In article <8e******************************@news.teranews.co m>, glh-
us****@comcast.net enlightened us with...

"Chris Smith" <cd*****@twu.net> wrote in message
news:MP************************@news.pop4.net...
Right. GUI programming is not possible via telnet, but it should be
possible if an X server is running on the Windows client machine,
assuming they have their DISPLAY environment variable set correctly if
they telnet to the RedHat machine.
If I understand you correctly as long as an X server is running on the
Windows machines they can telnet and execute their GUI java programs?


Security allowing, yes.
Note that some machines will not allow telnet sessions.
Where does appletviewer come in to play with this?


appletviewer is for applets. Applets are used in a browser environment,
such as IE or Netscape. appletviewer simulates a browser for people who
can't, for some odd reason, test their applets in an actual browser.
I myself have never found reason to use it.

A GUI java application using the normal swing or AWT classes does not
use appletviewer.

--
--
~kaeli~
Synonym: the word you use in place of a word you can't
spell.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 17 '05 #9
glh-usenet wrote:
If I understand you correctly as long as an X server is running on the
Windows machines they can telnet and execute their GUI java programs?
Yes, assuming the X server is set up to allow it.
Where does appletviewer come in to play with this?


Well, I'm not sure it does. I suppose that appletviewer is one example
of a GUI application that could be run that way.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Jul 17 '05 #10

"Chris Smith" <cd*****@twu.net> wrote in message
news:MP************************@news.pop4.net...
glh-usenet wrote:
If I understand you correctly as long as an X server is running on the
Windows machines they can telnet and execute their GUI java programs?


Yes, assuming the X server is set up to allow it.


Ok, now I am making definite progress. I will look more into finding an X
Server for Windows that can accomplish this.

Thanks so much Chris, Kaeli and Steve!!!

-Giles
Jul 17 '05 #11
Tom
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. ..
<much snipped>
appletviewer is for applets. Applets are used in a browser environment,
such as IE or Netscape. appletviewer simulates a browser for people who
can't, for some odd reason, test their applets in an actual browser.
I myself have never found reason to use it.


One reason for using appletviewer is that browsers cache data. If you
make a change in your applet, simply refreshing the page will usually
not show the changes because the browser will see that the file is
already in the cache and retrieve the cached file instead of
"downloading" the new one. The appletviewer will show the changes
more reliably. That said, it is still adviseable to open applets in
an actual browser occasionally.

<snipped>
Jul 17 '05 #12
I believe it was glh-usenet who said...

"Chris Smith" <cd*****@twu.net> wrote in message
news:MP************************@news.pop4.net...
glh-usenet wrote:
> If I understand you correctly as long as an X server is running on the
> Windows machines they can telnet and execute their GUI java programs?


Yes, assuming the X server is set up to allow it.


Ok, now I am making definite progress. I will look more into finding an X
Server for Windows that can accomplish this.


http://x.cygwin.com
Jul 17 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Niyazi | last post by:
Hi, We have and IBM AS400 and I belive the reional setting is Turkish. The IBM Client-Access for Windows that install in our PC (WIN XP SP2) set to Turkish characters. Now my PC has English...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
0
by: Shravan | last post by:
Hi, I have a Windows Forms Custom DataGrid, which is put in a usercontrol, which on setting DataSource is setting focus to grid. The call stack for setting the focus is as follows. This is not...
2
by: '[] WiRaN | last post by:
I all, I need a classroom equivalent the "Class List" of c++, necessary to recoup given of some hands tanks, Bruno
2
by: junlia | last post by:
Hi All, I am working on a project that acts as a bridge. It does some checking with post xml data, and then redirects the request to an appropriate page. However, we find that depends on the...
1
by: Dachshund Digital | last post by:
I know there must be a way to do this... in .NET 2.0? I have a situation where I know the name of the setting, and want to pass it into a function, and set or get the corresponding setting. ...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
6
by: metaperl | last post by:
I would like to check the setting of this variable in our MS-SQL 2000 database. Also, is there info on what the default value of this variable is?
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.