maurice,

I suggest that you download nmake.exe.  Use your favorite search engine to find
it.  Place it in a directory in your PATH.  You can set your PATH environment
variable by right clicking on the 'My computer' icon and selecting the
environment tab of the system properties dialog.

Then you can use make files to compile and set your classpath.  This will give
you a lot more flexibility then hardcoding your CLASSPATH environment variable,
which you can do in the same manner as setting you PATH variable.
Below is a sample.  Place it in a file named Makefile.  Then you can compile by
entering "nmake MyClass.class" at the command prompt from the directory that
contains MyClass.java and Makefile.

Use this in the Makefile:

JAVAHOME = c:\java\jdk1.2
JAVAC = $(JAVAHOME)\bin\javac.exe
#  Include you CLASSPATH below be sure
#  that '-classpath' starts the entry and that ';'
#  seperates each directory
CLASSPATH = -classpath
.;c:\java\jdk1.2\jre\lib\dt.jar;c:\java\JSDK2.0\lib\jsdk.jar
JFLAGS = -g -deprecation
.SUFFIXES: .java .class

.java.class:
 $(JAVAC) $(JFLAGS) $(CLASSPATH) $*.java

CLASSES = AClass.class \
                     AnotherClass.class \
                     YetAnotherClass.class

## Include custom targets below this line ##

# The 'all' target below will compile all of the classes listed in the CLASSES
var from above (nmake all)
all:: $(CLASSES)

# Another useful target
clean::
    @del /s *.class

## End of Makefile

Hope this helps to answer your question.

Trevor

maurice munoz wrote:

> Maybe someone can  help me with this simple task
> I just bought a new workstation NT4.0(x86), now I am having
> trouble...

<snip>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to