Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im working on a project with lots of classes and I use the JDK. A recompile from scratch takes forever when I do it a class at a time. How do I recompile everything?

0
Posted

Im working on a project with lots of classes and I use the JDK. A recompile from scratch takes forever when I do it a class at a time. How do I recompile everything?

0

Another way is where “tip.java” is a class “at the tip of the iceberg”, i.e. that depends on (uses) all the other classes. Typically, this may be your main class. However, “-depend” is known to be buggy and cannot be relied upon. It also doesn’t issue compile commands in parallel to make use of multi-processor systems. Without the “-depend” option, the standard “javac files” doesn’t look beyond the immediately adjacent dependencies to find classes lower down the hierarchy where the source has changed. The -depend options searches recursively for depending classes and recompiles it. This option doesn’t help when you have dynamically loaded classes whose names cannot be determined by the compiler from the dependency graph. E.g. you use something like The author of the code using those classes should make sure that those classes are mentioned in a Makefile. • (Sect. 4) Why do I get the java.lang.UnsatisfiedLinkError when I run my program containing Native Method invocations?

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.