Getting a version to run

15 views
Skip to first unread message

Henning Hasemann

unread,
Jan 22, 2014, 2:09:43 AM1/22/14
to snee...@googlegroups.com
Hi everybody,
I'd like to try out SNEE on a testbed of nodes, however I'm having trouble getting the latest release (from 2011) compiling.
In contrast to the documentation there is SampleClient.java instead of a QueryCompiler.java.
However when I try to compile that, I get:


% javac -sourcepath src -classpath "src:lib/antlr-2.7.5.jar:/usr/share/java/log4j-1.2.17.jar:" \                                                                                      1
  uk/ac/manchester/cs/snee/client/SampleClient.java \
  -d bin
                                                                                                                                       
uk/ac/manchester/cs/snee/client/SampleClient.java:21: error: cannot find symbol
import uk.ac.manchester.cs.snee.EvaluatorException;
                               ^
  symbol:   class EvaluatorException
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:22: error: cannot find symbol
import uk.ac.manchester.cs.snee.MetadataException;
                               ^
  symbol:   class MetadataException
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:23: error: cannot find symbol
import uk.ac.manchester.cs.snee.ResultStoreImpl;
                               ^
  symbol:   class ResultStoreImpl
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:24: error: cannot find symbol
import uk.ac.manchester.cs.snee.SNEECompilerException;
                               ^
  symbol:   class SNEECompilerException
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:25: error: cannot find symbol
import uk.ac.manchester.cs.snee.SNEEController;
                               ^
  symbol:   class SNEEController
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:26: error: cannot find symbol
import uk.ac.manchester.cs.snee.SNEEDataSourceException;
                               ^
  symbol:   class SNEEDataSourceException
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:27: error: cannot find symbol
import uk.ac.manchester.cs.snee.SNEEException;
                               ^
  symbol:   class SNEEException
  location: package uk.ac.manchester.cs.snee
uk/ac/manchester/cs/snee/client/SampleClient.java:28: error: package uk.ac.manchester.cs.snee.common does not exist
import uk.ac.manchester.cs.snee.common.SNEEConfigurationException;
                                      ^
uk/ac/manchester/cs/snee/client/SampleClient.java:29: error: package uk.ac.manchester.cs.snee.compiler.queryplan.expressions does not exist
import uk.ac.manchester.cs.snee.compiler.queryplan.expressions.Attribute;
                                                              ^
uk/ac/manchester/cs/snee/client/SampleClient.java:30: error: package uk.ac.manchester.cs.snee.metadata.schema does not exist
import uk.ac.manchester.cs.snee.metadata.schema.AttributeType;
                                               ^
uk/ac/manchester/cs/snee/client/SampleClient.java:31: error: package uk.ac.manchester.cs.snee.metadata.schema does not exist
import uk.ac.manchester.cs.snee.metadata.schema.ExtentMetadata;
                                               ^


(the list goes on, you get the picture)

Any idea what I might be doing wrong?


Also, this seems only to be the PC side, what should I do to get the images to flash on the nodes?



fernan...@gmail.com

unread,
Jan 23, 2014, 11:48:15 AM1/23/14
to snee...@googlegroups.com
Hi Henning,

Sorry that you're having problems. At the moment, the two best placed people to help you out are scattered over the planet. Alan Stokes is in SIngapore and Ixent Galpin in Colombia. In both cases, away from their main working environments. As such, and just so that you feel reassured that they'll try to help, the likely date that they will be able to contact you back is around 10-14 February, but may be earlier.

Apologies to make you wait, and thanks for taking an interest in our software.

Best wishes on your work,

Alvaro

Alasdair J G Gray

unread,
Jan 22, 2014, 4:12:23 AM1/22/14
to snee...@googlegroups.com
Hi Henning,

It looks like you are missing some dependencies.
Could you let us know which version of the system you have downloaded (i.e. the link that you downloaded)?

Have you tried using the maven build approach?
At the top level snee folder you should be able to issue the command
mvn install

Hope that helps.

Alasdair

PS The main developer on the project is currently away until mid February. Myself (and hopefully others) will help you as far as we can, but I’m now working on other things.

--
You received this message because you are subscribed to the Google Groups "SNEE user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snee-user+...@googlegroups.com.
To post to this group, send email to snee...@googlegroups.com.
Visit this group at http://groups.google.com/group/snee-user.
For more options, visit https://groups.google.com/groups/opt_out.

Dr Alasdair J G Gray
Research Associate

http://www.cs.man.ac.uk/~graya/

Please consider the environment before printing this email.




Sunday Times Scottish University of the Year 2011-2013
Top in the UK for student experience
Fourth university in the UK and top in Scotland (National Student Survey 2012)


We invite research leaders and ambitious early career researchers to join us in leading and driving research in key inter-disciplinary themes. Please see www.hw.ac.uk/researchleaders for further information and how to apply.

Heriot-Watt University is a Scottish charity registered under charity number SC000278.

Henning Hasemann

unread,
Jan 24, 2014, 6:47:24 AM1/24/14
to snee...@googlegroups.com

Hi Alasdair,
thanks for your quick reaction,
I tried this one:
https://code.google.com/p/snee/downloads/detail?name=SNEE-1.6.4-SNAPSHOT.zip&can=2&q=

which I took as the latest more or less official release (?)
For instructions I looked at https://code.google.com/p/snee/wiki/Getting_Started

It doesnt seem to contain a pom.xml anywhere though.
I also tried building the latest SVN with "mvn install", which spit out an error message as well, see attached files.

Cheers,
Henning
mvn.log
svn_info.log

ixent

unread,
Jan 24, 2014, 9:47:52 AM1/24/14
to snee...@googlegroups.com
Hi Henning,

The "Getting Started" instructions you are following, with QueryCompiler.java, pertain to the "older" version of SNEE, referred to as "In-Network SNEE", which uses TinyOS 1 (and has QueryCompiler.java as main class -- this is SNEE-r1.0.zip in the downloads sections).  

Our development efforts in recent years have moved on to "Unified SNEE".  We stopped adding releases to the Downloads section because Google Code discontinued the feature to add new files.  I would therefore suggest you pull off code from the SVN and follow the instructions  at https://code.google.com/p/snee/wiki/SettingUpDeveloperEnvironment

What types of motes are on your testbed?  We have in the past generated code for Tmote Sky, Micaz and Mica2.  It's not to say that our code generator will not work for other platforms, but some tweaks may be needed.

Cheers,
Ixent

Gray, Alasdair J G

unread,
Jan 24, 2014, 12:30:29 PM1/24/14
to snee...@googlegroups.com

Hi

What version of Java are you using?

I think the 1.7 library changed the ResultSet API and the code will not work with it.

Alasdair

Alasdair J G Gray
http://www.orcid.org/0000-0002-5711-4872

Henning Hasemann

unread,
Jan 30, 2014, 2:00:56 AM1/30/14
to snee...@googlegroups.com
Hey guys,
sorry for the late reply -- somewhat busy with different things atm --
switching to java 1.6 made the mvn install / mvn package possible, thanks for the hint!

I'm still confused though on how I might proceed, or even what I just compiled ;)
What I would like to try to do is execute a simple query on a number of tmote sky motes.
How do I generate the code for the motes? How do I run a simple query?

Sorry if the answer to these is actually obvious and I might just not see it :)

Reply all
Reply to author
Forward
0 new messages