judge运行报空指针
doublexiaofeng opened this issue · comments
doublexiaofeng commented
有个小问题想请教一下,我是直接在idea运行该项目,当调用native方法---
public native Map<String, Object> getRuntimeResult(String commandLine,String systemUsername, String systemPassword, String inputFilePath,String outputFilePath, int timeLimit, int memoryLimit);
时会报空指针错误,这是什么原因呢,万分感谢
Haozhe Xie commented
你构建C++了吗?翻一下历史的issue,你应该可以找到答案。
doublexiaofeng commented
Haozhe Xie commented
烦请您好好看一下README。如何构建C++的库写的很清楚了。
感谢!
doublexiaofeng commented
Haozhe Xie commented
Refer to #72
doublexiaofeng commented
不好意思,我在#72并未能找到适合自己的解决办法,我不是很清楚自己是在哪个部分出错导致空指针异常,您能解释一下吗?万分感谢!
Haozhe Xie commented
你手动执行一下:
mkdir target\cpp
make
可以解决吗?
doublexiaofeng commented
Haozhe Xie commented
你这错误信息都不给全。根据你给的信息我无法给出建议。
另外,现在的代码是可以通过AppVeyor的持续集成测试的,请知悉。
doublexiaofeng commented
Haozhe Xie commented
Please refer to libusb/libusb#21