任性的键盘 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,还没有进行实验验证。

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!