请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
喝水的水(uid:1046320)
职业资格认证:尚未取得认证
  • 因业务需要,需要调用DLL文件,参考网上的文件与方法,写了如下代码:package com.fr.function;import com.fr.script.AbstractFunction;import com.sun.jna.Library;import com.sun.jna.Native;public class geth extends AbstractFunction {  public interface seuif97 extends Library { //cdecl call调用约定时为Library  seuif97 INSTANCE = (seuif97)Native.loadLibrary(System.getProperty("user.dir")+"/dll/SEUIF97.dll",seuif97.class);  public double seupt(double a,double b,int c);       } public Object run(Object args) {double S1=Double.parseDouble(args.toString());double S2=Double.parseDouble(args.toString());double h=seuif97.INSTANCE.seupt(S1,S2,4);return h;}public static void main(String args) throws Exception { Object s11=9.43; Object s21=533.08; double s1=Double.parseDouble(s11.toString()); double s2=Double.parseDouble(s21.toString()); try { double h=seuif97.INSTANCE.seupt(s1,s2,4); System.out.println(h); }catch(Exception e){  System.out.println( e.getMessage()); } }} 最后提示:java.lang.NoClassDefFoundError: Could not initialize class com.fr.function.seuif97 at com.fr.function.geth.run(geth.java:18) at com.fr.script.AbstractFunction.tryRun(AbstractFunction.java) at com.fr.script.AbstractFunction.evalExpression(AbstractFunction.java) at com.fr.parser.FunctionCall.eval(FunctionCall.java) at com.fr.script.Calculator.eval(Calculator.java) at com.fr.stable.script.Expression.eval(Expression.java:35) at com.fr.script.Calculator.evalString(Calculator.java) at com.fr.script.Calculator.eval(Calculator.java) at com.fr.script.Calculator.evalValue(Calculator.java) at com.fr.stable.AbstractFormulaProvider.evalValue(AbstractFormulaProvider.java) 求怎么处理?原贴:自定义函数中如何调用DLL文件?-帆软社区 (fanruan.com)

11

3

11

10

12
个人成就
内容被浏览15,101
加入社区3年108天
返回顶部