[armedbear-devel] c++ library FreeLing from ABCL

Alexandre Rademaker arademaker at gmail.com
Wed Jul 10 14:00:32 UTC 2013


I have tried both System.load and System.loadSystem. Apparently the
problem is how the abcl is initiated:

Following @Alessio suggestion, that is, using abcl.jar in the
classpath and start the org.arbedbear.lisp.Main, it works:

urca:java arademaker$ java -Djava.library.path=. -cp
freeling.jar:/usr/local/abcl-bin-1.1.1/abcl.jar
org.armedbear.lisp.Main
Armed Bear Common Lisp 1.1.1
Java 1.6.0_51 Apple Inc.
Java HotSpot(TM) 64-Bit Server VM
Low-level initialization completed in 0.494 seconds.
Startup completed in 2.187 seconds.
Loading /Users/arademaker/.abclrc completed in 9.59 seconds.
Type ":help" for a list of available commands.
CL-USER(1): (jstatic "loadLibrary" "java.lang.System" "freeling_javaAPI")
NIL
CL-USER(2): (jnew "edu.upc.freeling.MacoOptions" "en")
#<edu.upc.freeling.MacoOptions edu.upc.freeling.MacoOptions at 716.... {11ACBF5C}>


But following my original way, that is, start abcl using the -jar
option, it fails!! Why is that? What is the right way to start ABCL?

urca:java arademaker$ java -Djava.library.path=. -cp freeling.jar:.
-jar /usr/local/abcl-bin-1.1.1/abcl.jar
Armed Bear Common Lisp 1.1.1
Java 1.6.0_51 Apple Inc.
Java HotSpot(TM) 64-Bit Server VM
Low-level initialization completed in 0.41 seconds.
Startup completed in 1.956 seconds.
Loading /Users/arademaker/.abclrc completed in 8.559 seconds.
Type ":help" for a list of available commands.
CL-USER(1): (jstatic "loadLibrary" "java.lang.System" "freeling_javaAPI")
NIL
CL-USER(2): (jnew "edu.upc.freeling.MacoOptions" "en")
#<THREAD "interpreter" {270D75A3}>: Debugger invoked on condition of type ERROR
  Class not found: edu.upc.freeling.MacoOptions
Restarts:
  0: TOP-LEVEL Return to top level.

Best.,

Alexandre Rademaker
http://arademaker.github.com/



More information about the armedbear-devel mailing list