Operating System - HP-UX
1837231 Members
2178 Online
110115 Solutions
New Discussion

Must be a separator on rules

 
Nameesh
Frequent Advisor

Must be a separator on rules

Hi,

I am trying to compile few javat files on unix nd I am gettin gthe following error :

Make : Must be a separator on rule line 11:Stop

Please suggest the reason and possible solution.

Regards,
Nameesh.
2 REPLIES 2
Elmar P. Kolkman
Honored Contributor

Re: Must be a separator on rules

Might be the files are in a wrong format. Do:
cat -tv
and look at the end of the lines. If there is a ^M there, you need to convert these 'DOS' files to 'unix' files:
for i in *
do
mv $i $i.bck
dos2unix $i.bck >$i
done

Then retry your command.

If that is not the case, look at line 11 of the file it complains about and see if there is anything strange there. If you don't see anything strange, try posting more info, for instance this 11th line and versions of your java compiler...
Every problem has at least one solution. Only some solutions are harder to find.
Edgar Matzinger
Advisor

Re: Must be a separator on rules

Hi Nameesh,

a rule in a has the following format:

tst.o:tst.j
java tst.j

Either in your case tst.o does not have a
following colon. Or your java command has no
preceeding character.

HTH, Edgar.