[R-SIG-Mac] SnowballStemmer() errors

John Maindonald john.maindonald at anu.edu.au
Fri Dec 31 20:27:27 CET 2010


When I try to run SnowballStemmer() I get a raft of 
what appear to be Java errors:

> source <- readLines(system.file("words", "porter","voc.txt",
+                                      package = "Snowball"))
> result <- SnowballStemmer(source)
2010-12-31 16:41:40.180 R[81807:60f] Apple AWT Java VM was loaded on first thread -- can't start AWT.
Checking class: weka.classifiers.functions.MultilayerPerceptron$ControlPanel$1
java.lang.InternalError: Can't start the AWT because Java was started on the first thread.  Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
. . .

> sessionInfo()
R version 2.12.1 Patched (2010-12-18 r53870)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US/en_US/en_US/C/en_US/en_US

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Snowball_0.0-7

loaded via a namespace (and not attached):
[1] grid_2.12.1       rJava_0.8-7       RWeka_0.4-3       RWekajars_3.7.2-1
[5] tools_2.12.1     

Does this look like a problem with my Java installation?  Or if not, then ... ?

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm



More information about the R-SIG-Mac mailing list