Kevin White wrote:
> 
> Ok, I'm really stupid.  Please don't flame me for how stupid I was.  I
> was writing a Makefile and testing it....
>
> First problem: the cd apparently doesn't work in the make file, so it
> actually removed my java source files from where I really, _really_
> didn't want them removed.

Make executes each command line in its own subshell. You ran the "cd"
command in a shell. Then you ran the "rm" in another shell. And so on.
If you want commands that change the shell environment (such as changing
current directory) to affect later commands, you need to combine them in
the same line, using the ";" separator. For example:

        cd jar; rm com/kevinsworld/linux/devices/*.java


> Second problem. I was stupid and didn't think to copy my source files
> elsewhere.  This is a relatively small project I was just working on and
> hadn't backed up yet.  (I already admitted to stupidity).  Can I
> disassemble my java .class files to get something to work from to
> recreate the source?

There are decompilers around. You might try mocha... it's free. Look for
it in finer Java emporiums.

Nathan


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to