English 中文(简体)
调试 Java 的制作文件
原标题:Debug a makefile in Java

我不知道如何解决项目建设过程中出现的错误。 是否有处理建议? 语言是 Java 。

make[1]: *** No rule to make target `org/zeromq/ZMQ$Context.class , needed by `all .  Stop.

以下建议从 make -d 获得此输出 :

Considering target file `org/zeromq/ZMQ$Context.class .
File `org/zeromq/ZMQ$Context.class  does not exist.
Looking for an implicit rule for `org/zeromq/ZMQ$Context.class .
Trying pattern rule with stem `ZMQ$Context.class .
Trying implicit prerequisite `org/zeromq/ZMQ$Context.class.cpp .
Trying pattern rule with stem `ZMQ$Context.class .
Trying implicit prerequisite `org/zeromq/ZMQ$Context.class.o .
Trying pattern rule with stem `ZMQ$Context.class .
Trying implicit prerequisite `org/zeromq/ZMQ$Context.class,v .
...
Must remake target `org/zeromq/ZMQ$Context.class .
make[1]: *** No rule to make target `org/zeromq/ZMQ$Context.class , needed by `all .  Stop.

所以,看起来在 中查看 s 定义的 make还不够聪明。 这与我版本的 make 或图书馆所有者给我的 Make 文件有问题吗?

最佳回答

当然有一个简短的问题。答案可以是 man make

您会发现 - d 选项, 用于通用调试生成动词, 甚至 - debug=FLAG , 以将输出减到更少的杂念调试级别 。

在您的具体情况下, 尝试找到生成 org/ zeromq/ ZMQ$Context. class 所需的源文件, 而 Makefile 规则可能不够聪明, 无法猜测它必须从 org/zeromq/ ZMQ.java 中编译 。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签