Java:我如何编译整个目录结构的代码?

编程入门 行业动态 更新时间:2024-10-17 20:31:20
本文介绍了Java:我如何编译整个目录结构的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

用例很简单。我得到了使用Eclipse创建的源文件。因此,有一个深层目录结构,其中任何Java类可以引用同一个,子,兄弟或父文件夹中的另一个Java类。

The use case is simple. I got the source files that were created using Eclipse. So, there is a deep directory structure, where any Java class could be referring to another Java class in the same, child, sibling or parent folder.

如何使用javac从终端编译整个事物?

How do I compile this whole thing from the terminal using javac ?

推荐答案

您必须知道所有目录,或者能够使用通配符。

You have to know all the directories, or be able to use wildcard ..

javac dir1/*.java dir2/*.java dir3/dir4/*.java dir3/dir5/*.java dir6/*src/*.java

更多推荐

Java:我如何编译整个目录结构的代码?

本文发布于:2023-11-01 01:58:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547920.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:结构   代码   目录   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!