[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

jikes and dependencies with javac



Two queries:

I just installed jikes. It doesn't work; it can't find any files
in /usr/share/java/repository/lang (which doesn't exist; only
the repository does). Question -- which package do I need to
install to fix this, and why doesn't jikes depend on it?

Second question: I'm using jdk1.1.7 and having problems with
dependencies with javac. It looks a lot smarter than it really is!
It seems that if I have three files, class1.java which uses class2.java
which uses class3.java, and I "javac class1.java", it compiles all 3.

If I then change class3.java, and re-run "javac class1.java",
it doesn't rebuild class3. Is there a fix to this?

Unfortunately it's a uni assignment and we don't have any compiler
except jdk available officially, so even though I have the others
at home, I won't in the end. I wrote a moderately complicated
Makefile to handle this, but that means explicitly naming all
dependencies.

Alternatively, can I tell javac not to do any internal dependencies,
so I must name them all? Otherwise things can fail silently.
I was changing one source file tonight, recompiling the main class,
and not seeing my changes.

thanks,

Hamish
-- 
Hamish Moffatt VK3SB. CCs of replies on mailing lists are welcome.


Reply to: