[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /var/jenkins_home/workspace/IPPC-ALL-TEST/ippc-common/src/main/java/com/iscas/ippc/common/utils/ImgUtil.java:[4,16] cannot find symbol symbol: class BASE64Encoder location: package sun.misc [ERROR] /var/jenkins_home/workspace/IPPC-ALL-TEST/ippc-common/src/main/java/com/iscas/ippc/common/dao/CommonDao.java:[15,24] package javax.annotation does not exist
时间: 2023-07-11 08:55:40 浏览: 64
这是一个编译错误,第一个错误提示是找不到BASE64Encoder类,第二个错误提示是缺少javax.annotation包。针对第一个错误,可以尝试使用java.util.Base64类代替sun.misc.BASE64Encoder类。针对第二个错误,需要在项目的pom.xml文件中添加javax.annotation依赖,或者手动将javax.annotation.jar文件加入到项目的classpath中。
相关问题
ora-24344: success with compilation error
ORA-24344是Oracle数据库中的错误代码,表示编译成功但存在错误。这通常意味着在编译过程中发现了语法错误或其他问题,需要进一步检查和修复代码。建议查看相关日志和错误信息,以便更好地理解和解决问题。
cython recompile with -fPIC
To recompile a Cython module with the `-fPIC` flag, you can follow these steps:
1. Open your Cython source file (with the `.pyx` extension) in a text editor.
2. Add the following line at the top of your file to include the necessary Cython directives:
```python
# cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True
```
3. Next, compile your Cython module using the following command:
```
cython --cplus -3 -f -w --fast-fail your_module.pyx
```
Here, `your_module.pyx` should be replaced with the name of your Cython source file.
The options used in this command are as follows:
- `--cplus`: Generate C++ code instead of C code.
- `-3`: Enable Python 3 syntax.
- `-f`: Include the `-fPIC` flag during compilation.
- `-w`: Disable all warning messages.
- `--fast-fail`: Abort compilation on the first error encountered.
4. After compilation, you can build the shared object file (`.so`) using a C++ compiler. For example, if you have `g++` installed, you can use the following command:
```
g++ -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python3.8 -o your_module.so your_module.cpp
```
Make sure to replace `your_module.so` with the desired name for your shared object file.
Now you should have a recompiled Cython module with the `-fPIC` flag enabled.