devilhimself
Programmer
I have a makefile which on successful make should create the class files of the appropriate Java source code.
When I give 'make -f applet.mak' following at the Linux prompt, I get the following message:
: No such file or directoryrc/web/applet/AppletProxy.java: line 1: /*
/home/vivarkey/102000/wtg/src/web/applet/AppletProxy.java: line 2: syntax error near unexpected token `('
/home/vivarkey/102000/wtg/src/web/applet/AppletProxy.java: line 2: ` * Copyright (c) 1998-1999 by 'XYZ Corporation. All rights reserved.
make: *** [/home/vivarkey/Build102000/release/lib/web/applet/AppletProxy.class] Error 2
It actually reads the commenst in the Java source code and then throws up errors.
Please advise on how to make the compile successful.
The following is the makefile I have.
#Start of applet.mak--------------------------->
include globals.mak
CMDLINE= -d $(CLASSDIR) $(JAVACFLAGS) -classpath $(CLASSPATH)
PACKAGE=web/applet
SOURCEDIR=$(SRCHOME)/$(PACKAGE)
TARGETDIR=$(CLASSDIR)/$(PACKAGE)
.SUFFIXES: .java .class
CLASSES = \
$(TARGETDIR)/AppletProxy.class \
$(TARGETDIR)/DBConnection.class \
all: bin $(CLASSES)
$(TARGETDIR)/%.class : $(SOURCEDIR)/%.java
javac $(CMDLINE) $?
clean:
rm -f $(TARGETDIR)/*.class
bin:
if [ ! -d $(TARGETDIR) ]; then
mkdir $(TARGETDIR);
fi
#<----------------------Finish
When I give 'make -f applet.mak' following at the Linux prompt, I get the following message:
: No such file or directoryrc/web/applet/AppletProxy.java: line 1: /*
/home/vivarkey/102000/wtg/src/web/applet/AppletProxy.java: line 2: syntax error near unexpected token `('
/home/vivarkey/102000/wtg/src/web/applet/AppletProxy.java: line 2: ` * Copyright (c) 1998-1999 by 'XYZ Corporation. All rights reserved.
make: *** [/home/vivarkey/Build102000/release/lib/web/applet/AppletProxy.class] Error 2
It actually reads the commenst in the Java source code and then throws up errors.
Please advise on how to make the compile successful.
The following is the makefile I have.
#Start of applet.mak--------------------------->
include globals.mak
CMDLINE= -d $(CLASSDIR) $(JAVACFLAGS) -classpath $(CLASSPATH)
PACKAGE=web/applet
SOURCEDIR=$(SRCHOME)/$(PACKAGE)
TARGETDIR=$(CLASSDIR)/$(PACKAGE)
.SUFFIXES: .java .class
CLASSES = \
$(TARGETDIR)/AppletProxy.class \
$(TARGETDIR)/DBConnection.class \
all: bin $(CLASSES)
$(TARGETDIR)/%.class : $(SOURCEDIR)/%.java
javac $(CMDLINE) $?
clean:
rm -f $(TARGETDIR)/*.class
bin:
if [ ! -d $(TARGETDIR) ]; then
mkdir $(TARGETDIR);
fi
#<----------------------Finish