Skip to content

exception thrown when running SPARQL Anything #10

@angelosalatino

Description

@angelosalatino

Hi Guys, I have tried to run SPARQL anything onmy laptop and I get the following error. What shall I do?

engine = cli.SparqlAnything()
---------------------------------------------------------------------------
JavaException                             Traceback (most recent call last)
Cell In[3], line 1
----> 1 engine = cli.SparqlAnything()

File ~/anaconda3/envs/py38/lib/python3.8/site-packages/pysparql_anything/sparql_anything.py:20, in SparqlAnything.__init__(self)
     18 def __init__(self):
     19     """ Constructor for the class SparqlAnything."""
---> 20     self.receiver = Engine()

File ~/anaconda3/envs/py38/lib/python3.8/site-packages/pysparql_anything/engine.py:35, in Engine.__init__(self)
     33 """ Constructor for the class Engine. """
     34 location = 'com.github.sparqlanything.cli.SPARQLAnything'
---> 35 self.reflection = autoclass(location)

File ~/anaconda3/envs/py38/lib/python3.8/site-packages/jnius/reflect.py:209, in autoclass(clsname, include_protected, include_private)
    206 cls_start_packagename = '.'.join(clsname.split('.')[:-1])
    208 # c = Class.forName(clsname)
--> 209 c = find_javaclass(clsname)
    210 if c is None:
    211     raise Exception('Java class {0} not found'.format(c))

File jnius/jnius_export_func.pxi:22, in jnius.find_javaclass()

File jnius/jnius_utils.pxi:79, in jnius.check_exception()

JavaException: JVM exception occurred: com/github/sparqlanything/cli/SPARQLAnything java.lang.NoClassDefFoundError

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions