Skip to main content

Eclipse Java Compilation error in ocap-ri/branches/114/

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
4 replies [Last post]
pradeepngupta
Offline
Joined: 2011-07-03

Today, I have downloaded the ocap-ri source code for the branch 114. and created the eclipse project RI_Stack as per the wiki pages:

https://community.cablelabs.com/wiki/display/OCORI/Eclipse+Platform+Configuration

https://community.cablelabs.com/wiki/display/OCORI/Configuring+Eclipse+for+OCAP+stack+debugging

But I am getting the below compilation errors, however the build is successful.

Description Resource Path Location Type
MalformedPatternException cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 107 Java Problem
MalformedPatternException cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 150 Java Problem
MsmManager cannot be resolved to a type MultiScreenManager.java /RI_Stack/java/src/msm/org/ocap/ui line 1419 Java Problem
MsmManager cannot be resolved to a type MultiScreenManager.java /RI_Stack/java/src/msm/org/ocap/ui line 1419 Java Problem
MsmManager cannot be resolved to a type MultiScreenManager.java /RI_Stack/java/src/msm/org/ocap/ui line 1419 Java Problem
MsmManager cannot be resolved to a type MultiScreenManagerImpl.java /RI_Stack/java/src/msm/org/cablelabs/impl/ocap/ui line 73 Java Problem
Panel cannot be resolved to a type DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 47 Java Problem
Panel cannot be resolved to a type DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 101 Java Problem
Panel cannot be resolved to a type DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 107 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 52 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 67 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 75 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 103 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 118 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 119 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 148 Java Problem
Pattern cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 165 Java Problem
Perl5Compiler cannot be resolved LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 106 Java Problem
Perl5Compiler cannot be resolved LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 149 Java Problem
Perl5Compiler cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 102 Java Problem
Perl5Compiler cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 102 Java Problem
Perl5Compiler cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 146 Java Problem
Perl5Compiler cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 146 Java Problem
Perl5Matcher cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 56 Java Problem
Perl5Matcher cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 56 Java Problem
Perl5Matcher cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 119 Java Problem
Perl5Matcher cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 147 Java Problem
Perl5Matcher cannot be resolved to a type LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 147 Java Problem
Server cannot be resolved NetRecordingEntryImpl.java /RI_Stack/java/src/hn/org/cablelabs/impl/ocap/hn/upnp/srs line 372 Java Problem
Server cannot be resolved NetRecordingEntryImpl.java /RI_Stack/java/src/hn/org/cablelabs/impl/ocap/hn/upnp/srs line 400 Java Problem
The hierarchy of the type DefaultVirtualKeyboard is inconsistent DefaultVirtualKeyboard.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 51 Java Problem
The import org.apache.oro cannot be resolved LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 28 Java Problem
The import org.apache.oro cannot be resolved LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 29 Java Problem
The import org.apache.oro cannot be resolved LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 30 Java Problem
The import org.apache.oro cannot be resolved LikeRule.java /RI_Stack/java/src/base/org/apache/log4j/rule line 31 Java Problem
The import org.cablelabs.impl.manager.MsmManager cannot be resolved MultiScreenManager.java /RI_Stack/java/src/msm/org/ocap/ui line 51 Java Problem
The import org.cablelabs.impl.manager.MsmManager cannot be resolved MultiScreenManagerImpl.java /RI_Stack/java/src/msm/org/cablelabs/impl/ocap/ui line 55 Java Problem
The import org.cablelabs.impl.ocap.hn.upnp.server.facade.Server cannot be resolved NetRecordingEntryImpl.java /RI_Stack/java/src/hn/org/cablelabs/impl/ocap/hn/upnp/srs line 46 Java Problem
The method add(Container, String) is undefined for the type DefaultVirtualKeyboard DefaultVirtualKeyboard.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 117 Java Problem
The method add(Container, String) is undefined for the type DefaultVirtualKeyboard DefaultVirtualKeyboard.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 122 Java Problem
The method add(Container, String) is undefined for the type DefaultVirtualKeyboard DefaultVirtualKeyboard.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 127 Java Problem
The method addComponentListener(DBPanel.ResizeTracker) is undefined for the type DBPanel DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 58 Java Problem
The method addNetRecordingEntry(NetRecordingEntryLocal) in the type RecordingContentItemLocal is not applicable for the arguments (NetRecordingEntryImpl) NetRecordingEntryImpl.java /RI_Stack/java/src/hn/org/cablelabs/impl/ocap/hn/upnp/srs line 144 Java Problem
The method createImage(int, int) is undefined for the type DBPanel DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 141 Java Problem
The method getBackground() is undefined for the type DBPanel DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 99 Java Problem
The method getBackground() is undefined for the type DBPanel DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 105 Java Problem
The method getSize() is undefined for the type DBPanel DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 90 Java Problem
The method getSize() is undefined for the type DBPanel DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 140 Java Problem
The method getSize() is undefined for the type DBPanel.ResizeTracker DBPanel.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 161 Java Problem
The method setLayout(DefaultVirtualKeyboard.XBorderLayout) is undefined for the type DefaultVirtualKeyboard DefaultVirtualKeyboard.java /RI_Stack/java/src/base/org/cablelabs/impl/havi line 116 Java Problem
The type BeginningOfContentEvent is already defined BeginningOfContentEvent.java /RI_Stack/java/src/hn/org/ocap/shared/media line 41 Java Problem
The type EndOfContentEvent is already defined EndOfContentEvent.java /RI_Stack/java/src/hn/org/ocap/shared/media line 41 Java Problem

Please inform me if i have to ignore these compilation errors or is there steps missing in the wiki page?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
abhi_h
Offline
Joined: 2012-04-23

can you give me the link for downloading the complete OCAP-RI source?
I tried finding it, but didnt get any..

csweeney
Offline
Joined: 2009-04-11

You should really consider opening a new thread when you post - you run the risk of having no one notice...

Instructions for building the RI (which include how to download the source) are here:
https://community.cablelabs.com/wiki/display/OCORI/Quick+Start

The subversion repository is here:
https://community.cablelabs.com/svn/OCAPRI

scottdeboy
Offline
Joined: 2009-02-02

LikeRule is a recent addition to the source tree with the update to log4j. The class adds support for regular expression rules, which can be used by ExpressionFilter, etc. It has a dependency on the ORO library, so while the source file is included in the source tree, it is explicitly excluded from the build (not included in base.filelist).

If you build from ant you should not see this issue.

Scott

pradeepngupta
Offline
Joined: 2011-07-03

Ya, Scott. I am able to build it from ant. That's because LikeRule.java is not mentioned in base.filelist

Should you not delete this file at all, if not used or do you have any plan to include ORO library support in future?

Apart from LikeRule.java, other files are also giving the eclipse compilation errors but they are not included in the compilation filelist.

Pradeep