Can I use JAVAC to compile a project with multiple files and directories?

后端 未结 4 2098
难免孤独
难免孤独 2020-12-18 00:23

I\'m working on a very large project that has associated class files in multiple directories, all stemming from the root dir \\src.

I\'m trying to compile a file in

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-18 00:45

    I'm a little unclear on your specific requirements, but what your asking is almost certainly possible. You might want to take a look at the javac options, and see what you can find that will help you.

    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#options

    For example, for the external .jars you need, those need to be included in your classpath using the -classpath option.

提交回复
热议问题