0

我一直在遇到这样的错误:

annotations are not sopported -in source 1.4

然后查看了我的jdk版本,我看到了1.4。为了增加 jdk 兼容性版本,我不得不将 java se 版本从 CVM_JDK 更改为 1.6.0_24(默认)。

尽管注释错误消失了,但出现了两个错误,如下所示:

Error(3,32):  package oracle.adfmf.application does not exist
Error(43,47):  cannot find symbol

说这条线;

public class LifeCycleListenerImpl implements LifeCycleListener
{
  public LifeCycleListenerImpl()
 {
  }

 /**
  * The start method will be called at the start of the application.
   * 
    ...

和,

import oracle.adfmf.application.LifeCycleListener;

我将如何为两者做正确的事情?哪个jdk版本提供了这个?

4

1 回答 1

-1

编辑 (2016):这仅对 JDeveloper 11.1.2.3.0 中的 ADF Mobile 有效

编辑(2018):修复不是更改 JDK 版本,因为它不受支持

我假设您在谈论 ADF Mobile?如果是这样,当前 JavaVM 是基于 JavaME CDC 规范,并且基于 Java 1.4。更改 JDK 只会破坏事情。

于 2013-07-20T17:52:47.573 回答