我在iReport上做了报告,在本地它正常运行,因为我有操作系统微软,但是当我在Linux上运行我的项目时,报告显示了一个错误
HTTP Status 500 - Font 'Arial' is not available to the JVM. See the Javadoc for more details.
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Arial' is not available to the JVM. See the Javadoc for more
有没有什么C++编译时间宏可以用来检测代码是在哪个操作系统上编译的。我基本上只想在Win7上支持某些函数。所以我很有兴趣做这样的事情
#if <os_macro> = WIN7
// This function would do something valid only on Win7 builds.
bool myfunction {
// do something here
}
#else
// This function would typically return false, since its not supported on OS be