You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by "Dale LaBossiere (JIRA)" <ji...@apache.org> on 2016/12/13 14:15:59 UTC
[jira] [Closed] (EDGENT-320) Errors in Apache Edgent sample
programs..
[ https://issues.apache.org/jira/browse/EDGENT-320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dale LaBossiere closed EDGENT-320.
----------------------------------
Resolution: Not A Problem
When building any application that uses Edgent, the classpath must include the appropriate Edgent runtime jars.
See "Building Applications" at the bottom of http://edgent.incubator.apache.org/javadoc/latest/index.html
Two notes regarding that version of the page: The edgent.providers.iot.jar is another provider jar. (From the error messages it appears that you've modified HelloEdgent to use the IoT provider).
The slf4j jar reference should be <edgent-target>/ext/slf4j-jdk14-1.7.12.jar
> Errors in Apache Edgent sample programs..
> -----------------------------------------
>
> Key: EDGENT-320
> URL: https://issues.apache.org/jira/browse/EDGENT-320
> Project: Edgent
> Issue Type: Bug
> Components: Samples
> Affects Versions: Apache Edgent 1.0.0
> Reporter: vanagapandu shankarrao
> Fix For: Apache Edgent 1.0.0
>
>
> [root@localhost incubator-edgent-apache-edgent-1.0.0RC1]# cd java_applications/
> [root@localhost java_applications]# javac HelloEdgent.java
> HelloEdgent.java:2: error: package org.apache.edgent.providers does not exist
> import org.apache.edgent.providers.iot;
> ^
> HelloEdgent.java:3: error: package org.apache.edgent.providers.direct does not exist
> import org.apache.edgent.providers.direct.DirectProvider;
> ^
> HelloEdgent.java:4: error: package org.apache.edgent.topology does not exist
> import org.apache.edgent.topology.TStream;
> ^
> HelloEdgent.java:5: error: package org.apache.edgent.topology does not exist
> import org.apache.edgent.topology.Topology;
> ^
> HelloEdgent.java:20: error: cannot find symbol
> DirectProvider dp = new DirectProvider();
> ^
> symbol: class DirectProvider
> location: class HelloEdgent
> HelloEdgent.java:20: error: cannot find symbol
> DirectProvider dp = new DirectProvider();
> ^
> symbol: class DirectProvider
> location: class HelloEdgent
> HelloEdgent.java:22: error: cannot find symbol
> Topology top = dp.newTopology();
> ^
> symbol: class Topology
> location: class HelloEdgent
> HelloEdgent.java:24: error: cannot find symbol
> TStream<String> helloStream = top.strings("Hello", "Edgent!");
> ^
> symbol: class TStream
> location: class HelloEdgent
> 8 errors
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)