Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2008
    Location
    East Boston
    Posts
    8

    Trouble compiling DataAdaptor

    Ok well I trying to follow the tutorial to create the Data Provider, but am having trouble compiling the DataProvider.java file that I have. I have created a com.lightstreamer.adapters.stockquotesystem in the Lightstreamer\adapters folder and have put my provider into this folder along with the adapters.xml file. When I compile the DataProvider I get the following errors, can someone help?

    C:\Lightstreamer_Moderato\Lightstreamer\adapters\c om\lightstreamer\adapters\stoc
    kquotesystem>javac StockQuoteSystem.java
    StockQuoteSystem.java:8: package com.lightstreamer.interfaces.data does not exis
    t
    import com.lightstreamer.interfaces.data.DataProvider;
    ^
    StockQuoteSystem.java:9: package com.lightstreamer.interfaces.data does not exis
    t
    import com.lightstreamer.interfaces.data.DataProviderExce ption;
    ^
    StockQuoteSystem.java:10: package com.lightstreamer.interfaces.data does not exi
    st
    import com.lightstreamer.interfaces.data.FailureException ;
    ^
    StockQuoteSystem.java:11: package com.lightstreamer.interfaces.data does not exi
    st
    import com.lightstreamer.interfaces.data.ItemEventListene r;
    ^
    StockQuoteSystem.java:12: package com.lightstreamer.interfaces.data does not exi
    st
    import com.lightstreamer.interfaces.data.SubscriptionExce ption;
    ^
    StockQuoteSystem.java:14: cannot find symbol
    symbol: class DataProvider
    public class StockQuoteSystem implements DataProvider {
    ^
    StockQuoteSystem.java:16: cannot find symbol
    symbol : class ItemEventListener
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    private ItemEventListener listener;
    ^
    StockQuoteSystem.java:19: cannot find symbol
    symbol : class DataProviderException
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    public void init(Map params, File configDir) throws DataProviderException {

    ^
    StockQuoteSystem.java:24: cannot find symbol
    symbol : class SubscriptionException
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    throws SubscriptionException {
    ^
    StockQuoteSystem.java:29: cannot find symbol
    symbol : class ItemEventListener
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    public void setListener(ItemEventListener listener) {
    ^
    StockQuoteSystem.java:36: cannot find symbol
    symbol : class SubscriptionException
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    throws SubscriptionException, FailureException {
    ^
    StockQuoteSystem.java:36: cannot find symbol
    symbol : class FailureException
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    throws SubscriptionException, FailureException {
    ^
    StockQuoteSystem.java:48: cannot find symbol
    symbol : class SubscriptionException
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    public synchronized void unsubscribe(String itemName) throws SubscriptionEx
    ception,
    ^
    StockQuoteSystem.java:49: cannot find symbol
    symbol : class FailureException
    location: class com.lightstreamer.adapters.stockquotesystem.StockQ uoteSystem
    FailureException {
    ^
    14 errors

  2. #2
    Member
    Join Date
    Apr 2008
    Location
    East Boston
    Posts
    8
    Quick question do I need to create this in eclipse? Can someone help me out with this? Any help would be greatly appreciated.

    Thanks.

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    516
    To compile an Adapter, you need to include the Adapter interface in the Java compiler classpath. So, add ls-adapter-interface.jar file (located in “Lightstreamer/DOCS-SDKs/sdk_adapter_java/lib” within your installation) to your compiler classpath, be it command line or Eclipse.

  4. #4
    Member
    Join Date
    Apr 2008
    Location
    East Boston
    Posts
    8
    Got it to work.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 02:28 PM.