任性的键盘 2015-04-19 08:14 采纳率: 0%
浏览 4924

matlab m文件构建成Java 报错不知道是什么错误

m文件内容是:
function [sum] = oper(a,b);
sum = a + b;
end
出错的错误是:

正在构造 Javadoc 信息...
标准 Doclet 版本 1.8.0_40
正在构建所有程序包和类的树...
正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\oper\Class1.html...
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1.java:110: 警告: args没有 @param
public static void main (String[] args)
^
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1.java:60: 警告: com.mathworks.toolbox.javabuilder.MWException没有 @throws
public Class1() throws MWException
^
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1.java:89: 警告: com.mathworks.toolbox.javabuilder.MWException没有 @throws
public Class1(MWComponentOptions componentOptions) throws MWException
^
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1.java:78: 警告: com.mathworks.toolbox.javabuilder.MWException没有 @throws
public Class1(String pathToComponent) throws MWException
^
正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\oper\Class1Remote.html...
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1Remote.java:59: 错误: 找不到引用
* @throws java.jmi.RemoteException An error has occurred during the function call or
^
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1Remote.java:62: 警告: java.rmi.RemoteException没有 @throws
public Object[] oper(int nargout, Object... rhs) throws RemoteException;
^
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\Class1Remote.java:65: 警告: java.rmi.RemoteException没有 @throws
void dispose() throws RemoteException;
^
正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\oper\OperMCRFactory.html...
正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\oper\package-frame.html...
正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\oper\package-summary.html...
C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\package-info.java:8: 警告:

标记为空

  • ^ C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\package-info.java:15: 错误: 意外的结束标记:

  • ^ C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\package-info.java:21: 警告:

    标记为空

  • ^ C:\Users\Administrator\Documents\MATLAB\oper\for_testing\oper\package-info.java:27: 错误: 意外的结束标记:

  • ^ 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\oper\package-tree.html... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\constant-values.html... 正在构建所有程序包和类的索引... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\overview-tree.html... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\index-all.html... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\deprecated-list.html... 正在构建所有类的索引... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\allclasses-frame.html... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\allclasses-noframe.html... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\index.html... 正在生成C:\Users\Administrator\Documents\MATLAB\oper\for_testing\doc\html\help-doc.html... 3 个错误 8 个警告 Error: An error occurred while shelling out to javadoc (error code = 1). Unable to build executable.
  • 写回答

2条回答 默认 最新

  • qq_20725635 2015-08-20 02:16
    关注

    我也遇到了相同的问题,据说是JDK版本太高了,换成1.7或者1.6,还没有进行实验验证。

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料