Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

JLink and double wrapper classes.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76048] JLink and double wrapper classes.
  • From: "Patrick Scheibe" <mai99dnn at studserv.uni-leipzig.de>
  • Date: Tue, 15 May 2007 04:58:13 -0400 (EDT)
  • Organization: Universitaet Leipzig

Hi,

am I doing anything wrong or is it not possible to call a java
contructor/method/function which has a Double[] parameter?
When I call e.g. a constructor

public ClassName(Double[]){...}

 from Mathematica by giving a list

JavaNew[classname,{1.0,2.0,3.0}]

I get an error message

Java::argx1: Method named .... defined in class ...
was called with an incorrect number or type of arguments.

So, is it true that JLink can only convert Mathematica types to  
double,int,..
and not automatically to the wrapper classes like Double,Integer,..?
If so, is there a fast way to fix this or do I have to write a java  
convert function?

Cheers
Patrick


  • Prev by Date: Re: Compatibility woes
  • Next by Date: Re: Deleting duplicates from a list
  • Previous by thread: Re: Re: weird behavior when plotting multiple functions in 6.0
  • Next by thread: v6 time series package