Presenting Mathematical Concepts on the World Wide Web
Java: A Very Basic Introduction

Using Java

The easiest way to take advantage of Java in your own web pages is to include pre-existing applets. There are many freely-distributed, general-purpose applets available.

Set up a Java Capable Browser

Set Up Your Environment Variables

You can view Java applets, using a Java-enabled browser, without really doing anything special. If you want to develop your own applets, however, you need to pay attention to a few extra details. For example, you must have certain environment variables set correctly. Those having an account at the Center might issue the following commands (they could go in one's .cshrc file, for example):

setenv CLASSPATH .:/u/java/classes.mips/:/u/java/classes.mips/java/:/u/java/classes.mips/sun/
setenv PATH ${PATH}:/u/java/bin

You will probably have to do the appropriate, equivalent thing at your site. Your local sysadmin will have to help you with the details if you're not sure yourself; or that person may have set your system up such that the environment gets set for this automatically. The various online resources give more information on this; it's just mentioned here as a reminder to get this in place before you try to resolve any other problems.

Include Applets in your Pages


Next: Writing Java
Back: Understanding Java
Up: Java: An Very Basic Introduction


Presenting Mathematical Concepts on the World Wide Web. Copyright © 1997 by Carol Scheftic. All rights reserved. (This section was originally copyrighted in 1996 by The Geometry Center and is re-used here with permission.) Please send comments on this page, or requests for permission to re-use material from this page, to: scheftic@geom.umn.edu
Page established 1-Jun-97; last updated Friday, 25-Jul-1997 00:14:32 CDT.