![]() |
Distributed Systems Lab 2003 |
||||||||||||||||||||||||||||
|
![]() |
Machine EnvironmentOperating SystemIn the lab, we run Linux (Redhat 7.x) on PC machines. Some more information on how to use Linux can be found in the Linux tutorial . In your home directory, you'll find the project structure for the DSG lab as described in the task description overview . The ShareMe library is available in the /opt/DSLAB2003 directory. The Java installation (JDK 1.4.1) is found in /opt/jdk/ , Jakarta Ant is located in /opt/jakarta-ant/ . Neither ShareMe nor Ant libraries are included in your classpath by default. Actually, you do not even need them if you use the supplied build.xml file for Jakarta-Ant (see the Linux Tutorial for more information about this Makefile replacement. If you decide to nevertheless use makefiles or other tools, it is your responsability to set the environment variables properly (see the sample below and the Linux tutorial how to do that). Here is a excerpt of a startup script for the lab if you do not use the supplied build.xml file: # set internal variables for later use setenv JAVA_HOME /opt/jdk setenv JIKES_HOME /opt/jikes setenv ANT_HOME /opt/jakarta-ant # set the path to executables setenv PATH ${PATH}:${JAVA_HOME}/bin:${JIKES_HOME}/bin:${ANT_HOME}/bin # set the CLASSPATH setenv CLASSPATH .:${CLASSPATH}:${ANT_HOME}/lib/ant.jar setenv CLASSPATH .:${CLASSPATH}:${HOME}/lib/ShareMe.jar:${HOME}/classes # set the JIKESPATH setenv JIKESPATH ${JAVA_HOME}/jre/lib/rt.jar:${CLASSPATH} ToolsIn the lab, we use JDK 1.4.1 in /opt/jdk/ . All necessary commands (java, javac, ant, ...) are available via the /usr/local/bin directory which is already included in your PATH . Additionally, we support 'jikes' - a faster Java compiler from IBM - which is also included in your PATH . If you decide to use jikes independently of our build.xml file, you have to set another environment variable called JIKESPATH (see above). This has to be initialized with the same value as your classpath and the special Java rt.jar library which resides in /opt/jdk/jre/lib/rt.jar . For the CORBA part of the lab, we use the ORB which comes with the Java development kit and use it as described in the task descriptions and certification authority sections. No environment settings are necessary for CORBA. Hint: If you do not use the provided build.xml file, ensure to use javac instead of jikes for the CORBA parts of lab 3. jikes will not compile the generated source files! You can use the editor of your choice on the lab machines (vi, emacs, xedit, ...). A link to an Emacs beginner's tutorial is found in the Linux tutorial section Lab machinesThis section lists the names of the server and workstation machines available in the lab. Recall that you can use some of them (see below) remotely (via SSH2) even if the lab is closed in the evening or during holidays. Server machines
Workstation machines
|
![]() |
||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||
Powered by MyXML |
Last update on:
2003-03-13
© 2001 Distributed Systems Group |