File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Network or classroom stand-a-lones Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Network or classroom stand-a-lones" Watch "Network or classroom stand-a-lones" New topic

Network or classroom stand-a-lones

Robert Crouch

Joined: Jun 06, 2004
Posts: 5
We are setting up to teach Intro JAVA and have to make a decision about whether or not to network the computers in the lab. PRO-- file sharing and printing-- CONS - classpath problems ( like always) ----

I have fears that once I get configured into the school system's network - nothing can be changed. So I might not be able to alter the autoexec . bat file to allow for a change in classpath - or does someone have a network solution?

C++ was taught using stand alone computers and floppy disks for backups. Network would make several things easier - but perhaps at the risk of not being able to configure the language to run at all?!!!

All suggestions will be appreciated.
Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
(Assuming Windows) - why not just make a convention of having three standard .bat files in each folder (with one folder per class project):

1. env.bat: Sets PATH, CLASSPATH, etc
2. c.bat: Compiles
3. r.bat: Executes

Furthermore, I'd suggest that "env.bat" define the following three environment variables:

set JAVA_ROOT=c:\...
set CLASSPATH=.;%JAVA_ROOT%\lib;...

That way, students would typically only have to change one line ("set JAVA_ROOT") in one file (env.bat) for the entire session (a "session" being either in the classroom, or at home).

Just a thought .. PSM

Paul M. Santa Maria, SCJP
I agree. Here's the link:
subject: Network or classroom stand-a-lones
It's not a secret anymore!