Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] Java dependancy checking

Started by clum Jan 4, 2004 at 10:24 PM 4 replies 400+ views
Original Post
clum
clum
Hi, I don''t normally write large programs in Java, and even when I do, I usually use NetBeans, so I am unfamiliar with this topic. How do people which use javac from the command line handle file dependencies? The first thing that came to mind was a Makefile, but I noticed that GNU make (I''m using linux) doesn''t have any built-in rules for java files, so I''m not so sure. How do the few people that use command line compilation do so? The official zorx website
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
Raghar
Raghar
"How do people which use javac from the command line handle file dependencies?"


You push everything into one directory and compile. I didn''t have too much problems with it, yet. Makexxx are generaly harmfull
CaptainJester
CaptainJester
javac is a smart compiler. If it cannot find a class file for a dependency, it will compile the appropriate source file, if it is available and in the classpath. It cannot check out of date class files though.



First make it work, then make it fast. --Brian Kernighan

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities. We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)

Do not interrupt your enemy when he is making a mistake. - Napolean Bonaparte
"None of us learn in a vacuum; we all stand on the shoulders of giants such as Wirth and Knuth and thousands of others. Lend your shoulders to building the future!" - Michael Abrash[JavaGaming.org][The Java Tutorial][Slick][LWJGL][
clum
clum
In other words, I either recompile everything everytime, pay attention when I change things, or create my own Makefile?

The official zorx website
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.