netlogo - NL does not see the extension built with NetBeans -
i have compiled extension netbeans , compiling worked fine, have included manifest file present in final jar:
manifest-version: 1.0 archiver-version: plexus archiver class-manager: it.unibo.ai.manager extension-name: dialoguesimulatorext created-by: apache maven 3.0.5 build-jdk: 1.8.0_65 netlogo-extension-api-version: 6.0
and jar, named dialoguesimulatorext.jar, in folder dialoguesimulatorext, latter 1 in same folder nl model.
so far good, when try load extension within model, prompted message "go download site netlogo extension"
i don't understand problem might be, since there no hint apart generic "i don't find it" - though it's there... common reasons behavior?
this defaultclassmanager:
package it.unibo.ai; import asp4j.solver.object.filter; import asp4j.solver.object.objectsolver; import org.nlogo.api.*; public class manager extends defaultclassmanager { public static string rulefile_clingo = null; public static filter filter = null; public static objectsolver solver = null; public static problemsentences ps = null; @override public void load(primitivemanager primitivemanager) { primitivemanager.addprimitive("setup-solver", new setupsolver()); primitivemanager.addprimitive("setup-beliefs", new setupinitialbeliefs()); primitivemanager.addprimitive("dialogue", new agentdialogue()); } }
this pom:
<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>it.unibo.ai</groupid> <artifactid>dialoguesimulatorext</artifactid> <version>0.1</version> <packaging>jar</packaging> <dependencies> <dependency> <groupid>org.nlogo</groupid> <artifactid>netlogo</artifactid> <version>6.0.1</version> <exclusions> <exclusion> <groupid>org.nlogo</groupid> <artifactid>parser</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.picocontainer</groupid> <artifactid>picocontainer</artifactid> <version>2.13.6</version> </dependency> <dependency> <groupid>org.ow2.asm</groupid> <artifactid>asm-all</artifactid> <version>5.0.3</version> </dependency> <dependency> <groupid>org.scala-lang.modules</groupid> <artifactid>scala-parser-combinators_2.12</artifactid> <version>1.0.6</version> </dependency> <dependency> <groupid>org.parboiled</groupid> <artifactid>parboiled_2.12</artifactid> <version>2.1.4</version> </dependency> <dependency> <groupid>agentdialogues</groupid> <artifactid>agentdialogues</artifactid> <version>0.0.1-snapshot</version> </dependency> <dependency> <groupid>asp4j</groupid> <artifactid>asp4j</artifactid> <version>0.0.5</version> </dependency> </dependencies> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <repositories> <repository> <id>typesafereleases</id> <name>typesafe-releases</name> <url>http://repo.typesafe.com/typesafe/releases/</url> <layout>default</layout> </repository> <repository> <id>bintraynetlogonetlogojvm</id> <name>bintray-netlogo-netlogo-jvm</name> <url>https://dl.bintray.com/netlogo/netlogo-jvm/</url> <layout>default</layout> </repository> </repositories> <name>dialoguesimulatorext</name> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-jar-plugin</artifactid> <version>2.4</version> <configuration> <archive> <manifestfile>src/main/resources/meta-inf/manifest.mf</manifestfile> </archive> </configuration> </plugin> </plugins> </build>
try putting dialoguesimulatorext
directory in netlogo's extension folder: /applications/netlogo x.x/extensions/
wiki
Comments
Post a Comment