search for: jnew

Displaying 20 results from an estimated 53 matches for "jnew".

Did you mean: jne
2017 Aug 22
1
Error in .jnew(“java/io/FileOutputStream”, jFile)
...create("C:\\Users\\Sapl\\Desktop\\NATA\\code\\Results\\Created by R\\ab_ret_banks_short_form_10.05.2006.xlsx") [1] TRUE > write.xlsx(ab_ret, "C:\\Users\\Sapl\\Desktop\\NATA\\code\\Results\\Created by R\\10.05.2006\\ab_ret_banks_short_form_10.05.2006.xlsx") > >Error in .jnew("java/io/FileOutputStream", jFile) : >java.io.FileNotFoundException: >C:\Users\Sapl\Desktop\NATA\code\Results\Created by R\10.05.2006\ab_ret_banks_short_form_10.05.2006.xlsx (unreadablesymbols) **EDIT:** write.xlsx(abn_ret_all,"C:\\Users\\Sapl\\Desktop\\NATA\\code\\Results\\C...
2010 Dec 02
1
openNLP package error
...ion: > s <- c("Das hier ist ein Satz. Und hier ist noch einer - sogar mit Gedankenstrich. Ist das nicht toll?") > sentDetect(s, language = "de", model = "openNLPmodels.de") I get the following error message which I can't make any sense of: Fehler in .jnew("opennlp/maxent/io/SuffixSensitiveGISModelReader", .jnew("java.io.File", : java.io.FileNotFoundException: openNLPmodels.de (No such file or directory) The model seems to have been installed just fine but there seems to be a directory missing. The documentation of openNLP...
2012 Nov 26
1
Class Not found execption
I am trying to call a r file named es.r which have lotes of R functions. These R functions are internally calling java functions by using ".jnew()" and ".jcall()". I have added necessary jar's to the Classpath and I am able to run es.r from command prompt . But when I tried to call it from anoter r file using source() getting Exception Error in .jnew("com/algoTree/ClientElasticSearch/ElasticSearchLoader...
2009 Jun 04
1
About classifier in RWeka
...d the same classifier on the other published data: (iris dataset has all numeric preditors) > m<-J48(Species~., data=iris) > e <- evaluate_Weka_classifier(m, + cost = matrix(c(0,2,1,0), ncol = 2), + numFolds = 10, complexity=TRUE, class=TRUE) it threw me the error as below: Error in .jnew("weka/classifiers/Evaluation", instances, costMatrix) : Failed to create object of class `weka/classifiers/Evaluation' In addition: Warning message: In .jnew("weka/classifiers/Evaluation", instances, costMatrix) : NewObject ("weka/classifiers/Evaluation",&quot...
2016 Apr 05
8
RWeka Error
When I use any function of RWeka Package in Rstudio I get an error, "Error in .jnew (name): java.lang.ClassFormatError." can anyone guide me in this? [[alternative HTML version deleted]]
2002 Mar 20
0
Question re:S4 classes and design; clashing classes?
...of systems integration at the user-level. So, what I'd like is to be able to do is more like (note that this is a fake example, while the components are there, it isn't quite there yet): grandTour(x) setMethod("grandtour","matrix", function(x) { gt <- .JNew(org.orca.viz.grandtour) gt$initData(x)}) Note that the grandtour class is a pipeline of lots of things. So, I'd like to do something similar with time series, so that: setMethod("grandtour","ts", function(x) {gt <- .JNew(org.orca.viz.g...
2012 Nov 08
0
FW: Interfacing R and Weka
...y 26 svn rev 61015 language R version.string R version 2.15.2 (2012-10-26) nickname Trick or Treat I'm trying to use RWeka, in particular an example in the help file for make_Weka_classifier > model <- NB(Class ~ ., data = HouseVotes84) Error in .jnew("weka/core/Attribute", attname[i], .jcast(levels, "java/util/List")) : java.lang.NoSuchMethodError: <init> > traceback() 8: stop(list(message = "java.lang.NoSuchMethodError: <init>", call = .jnew("weka/core/Attribute", attname[i], .j...
2007 Feb 06
0
yajb - java-ruby bridge
...s i was using started misbehaving. now i''m giving yajb a shot which seems to behave the way i expect it to and is a lot simpler to code. my problem: i have a class that takes a constant, which is a member of the class, so i have to do something like this to make it work: const_accessor = jnew :SearchCriteria, "dfdfa", "dasf", 0 #we can access constants from class now search = jnew :SearchCriteria, "FirstName", "Stuart", const_accessor.CRITERIA_EQUALS #this works.. i tried this: search = jnew :SearchCriteria, "FirstName", "Stuart&qu...
2009 Aug 21
2
more special completions
...pletions, but a __function__ that would calculate completions dynamically. This could be useful for the "new" function in R, if associated with something that can retrieve the current list of S4 classes (not sure this exists). Another example of where this could be used would be the .jnew function from rJava, where the first argument is a java class, associated with something that can complete java class names. Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/w33B : Completion for java objects |- http:/...
2009 Feb 05
1
JGR extension not working (PR#13501)
...ur own risk as iplots cannot resolve potential ev.loop deadlocks. 'Yes' is assumed for all dialogs as they cannot be shown without a deadlock, also ievent.wait() is disabled. 2009-02-05 09:04:31.028 R[6886:613] Apple AWT Java VM was loaded on first thread -- can't start AWT. Warning in .jnew("org/rosuda/iplots/Framework") : NewObject("org/rosuda/iplots/Framework","()V",...) failed Exception in thread "main" java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specifi...
2016 Apr 05
0
RWeka Error
...(version and 32/64 bitness) is installed. -- Sent from my phone. Please excuse my brevity. On April 5, 2016 5:14:55 AM PDT, "?Rini John? ? via R-help" <r-help at r-project.org> wrote: > >When I use any function of RWeka Package in Rstudio I get an error, >"Error in .jnew (name): java.lang.ClassFormatError." can anyone guide >me in this? > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help...
2011 Apr 30
3
Copying to R a rectangular array from a Java class
...ouble retCon0dbl() { return(con0dbl); } public final static double[] retCon1Arr() { return(con1Arr); } public final static double[][] retCon2Arr() { return(con2Arr); } } library(rJava) .jinit() .jaddClassPath("C:/ad/j") # a directory on my disk print(.jclassPath()) rJavaTst <- .jnew("RJavTest") # compilation of class code connStg <- .jfield(rJavaTst,sig="S","conStg") print(connStg) connStgRet <- .jcall(rJavaTst,returnSig="S","retConStg") print(connStgRet) conn1Arr <- .jfield(rJavaTst,sig="[D","con1Arr&q...
2007 Jan 16
1
calling java API from ruby
ok, i want to be able to send some data from my rails app to a CRM. The library that defines the API for talking to the CRM is written in java. I got JRuby working, which is pretty cool, but to my understanding i would have to convert my ruby on rails app to a jruby on rails app which, as far as i''ve understood, is different deal altogether and would be set up more like a java server
2006 Nov 22
0
Problem with RWeka-rJava packages
Hello: I´m trying to execute Apriori(file.arff) command of RWeka package. I´m working with: Operating System: Windows XP home R-2.4.0 RWeka_0.2-11 rJava_0.4-11 classpath= .;C:\Archivos de programa\Java\jdk1.5.0\lib;C:\Archivos de programa\R\R- 2.4.0\library\RWeka\jar An error occurs when .jnew command is executed, on class "weka/core/Instances" : >.jnew("weka/core/Instances") Failed to create object of class ´weka/core/Instances´ and a warning message: createObject.GetMethodID("weka/core/Instances","()V") failed What can I do? Thanks everybo...
2011 Jul 03
1
Error with package xlsx
Hi, Could anyone help me with this error? I have no idea what that is about... > file <- system.file("DADOSCASUMCCORMICK.xlsx", package = "xlsx") ­> data <- read.xlsx(file, 1) Error in .jnew("java/io/FileInputStream", file) : java.io.FileNotFoundException: (No such file or directory) Thanks! -- Regards, || ------ || Sergio Henrique Bento de Mira || Computer Science | Class of 2008/2 || Federal University Of Lavras | UFLA || Lavras, MG, Brasil || --- || sergiohbmira@com...
2009 Mar 18
0
JGR install problem
...OS X we strongly recommend using iplots from within JGR. Proceed at your own risk as iplots cannot resolve potential ev.loop deadlocks. 'Yes' is assumed for all dialogs as they cannot be shown without a deadlock, also ievent.wait() is disabled. Exception in thread "main" Error in .jnew("org/rosuda/iplots/Framework") : Failed to create object of class `org/rosuda/iplots/Framework' In addition: Warning message: In .jnew("org/rosuda/iplots/Framework") : NewObject("org/rosuda/iplots/Framework","()V",...) failed Error: package 'iplo...
2009 Nov 25
0
predict(): NoSuchMethodError
...Here is the code for the arguments: algName <- "LinearRegression" Formula <- as.formula(paste(as.name(att), " ~ ", paste(otherAtts, collapse= "+"))) myAlg <- get(algName) cl <- myAlg(Formula, data = Data) And this is the error I'm getting: Error in .jnew("weka/core/Attribute", attname[i]) : java.lang.NoSuchMethodError: <init> Here is the printout of the a working case: cl = Linear Regression Model petallength = 1.748 * sepallength + -1.4174 * sepalwidth + -2.1294 ClusterData[j,] = sepallen...
2012 Jul 09
1
Problem to establish Bloomberg connection / Package RBloomberg / function blpConnect()
...receive following error message: R version 2.15.1 (2012-06-22) rJava Version 0.9-3 RBloomberg Version 0.4-150 Java environment initialized successfully. Looking for most recent blpapi3.jar file... Adding C:\blp\API\APIv3\JavaAPI\v3.4.8.1\lib\blpapi3.jar to Java classpath Fehler in .jnew("org/findata/blpwrapper/Connection", java.log.level) : java.lang.UnsupportedClassVersionError: Bad version number in .class file It looks there is any problem with the installed java version. Has anyone an idea how to solve that problem? Regards, Alexander Erbse...
2002 Jun 20
1
Questions on Instalation of SJava Package to R1.5.0
Dear Expects, I tried to install the SJava package to the Library subdirectory of my R1.5.0. However, when I tried it according to the instructions from http://www.omegahat.org/RSJava/, I got the following error messages: library(SJava) Error in .Defunct() : `.Alias' is defunct. See ?Defunct. >.JavaInit() Error: couldn't find function ".JavaInit" I downloaded SJavaWin
2006 Mar 03
1
Java related (?) problems with RWeka
...ss "jobjRef" object: invalid object for slot "jobj" in class "jobjRef": got class "NULL", should be or extend class "externalptr" In addition: Warning message: Unable to create object of the class weka/core/Instances , returning null reference. in: .jnew("weka/core/Instances", .jcast(reader, "java/io/Reader")) Execution halted My R script seems to run fine on Windows XP. Thanks in advance, Derek