Questions about interfacing Mathematica and Java, particularly using J/Link.

learn more… | top users | synonyms (1)

3
votes
1answer
221 views

Creating event handler with ImplementJavaInterface inside a package

I am trying to make my Mathematica function to serve as an event handler for the events generated by a Java object. Specifically, I have a Java object that connects as a client to a server that ...
3
votes
1answer
465 views

How do I run scripts on networked computers directly from Mathematica?

The answer to an earlier question, Computers running Wolfram Lightweight Grid Manager won't fall asleep, left me with a new problem. To review, I have a computing environment comprised of: 27" ...
3
votes
1answer
404 views

How do I get java to recognize import com.wolfram.jlink

I'm trying to write a java program that uses mathematica code for processing and graphs while using java for the front end. From what I've been able to glean from the j/link tutorials on the wolfram ...
3
votes
1answer
306 views

How do you get Weisstein’s Hyphenate package to run?

I've put Eric Weisstein's Hyphenate.m package in $UserBaseDirectory/Utilities; installed the requisite ...
3
votes
0answers
44 views

Create custom mappings of Mathematica Expressions => Java Objects?

I would like to call a JLink-based java function from Mathematica with a Mathematica Span[] object as shorthand, like so... ...
2
votes
1answer
149 views

Clojuratica setup

I am trying to get Clojuratica set up (MMa v 9 free trial) (on a Mac running Mavericks) I am following the instructions in "Clojure Data Analysis Cookbook" but have also followed the instructions: ...
2
votes
2answers
254 views

Running Mathematica via JLink from a Servlet on Tomcat 7 Problem

I'm trying to make a java servlet running on Tomcat 7 for specilized mathematical calculations. So I want to link Wolfram Mathematica 8.0 mathkernel from my servlet via JLink (webMathmatica is not an ...
2
votes
1answer
117 views

How to get a audio file's duration time in Mathematica?

I have a *.avi file and if I want to know the file's duration time: I can use this code to get the result: Import["test.avi", "Duration"] or the code to get the ...
2
votes
1answer
46 views

JLink does not preserve the input cell number

I use JLink for connecting to the Mathematica kernel and evaluate some expressions. The In[] prompt is not continuous - it has step 3. I.e. the first expression is In[1] and after the evaluation the ...
2
votes
1answer
85 views

JLink function not producing result

I have a simple JLink function as follows: ...
2
votes
1answer
282 views

Java Heap Space Error on data insertion over SQL Server

I'm trying to insert 2-milliion lines into a SQL Database, and get this error: JDBC::error: Java heap space The insert is a standart Mathematica SQL statement: ...
2
votes
1answer
118 views

J/Link: InstallJava[..] or ReinstallJava[..] hangs when used with a link to a remote jvm running Install.main

While I am able to use InstallJava[] (or ReinstallJava[] for that matter) with a TCP/IP link to a JVM running on the same system ...
2
votes
2answers
121 views

J/Link: getArray2() returns wrong array

I want to convert a matrix from Mathematica to an int[][] in Java. I use the code below: ...
2
votes
1answer
106 views

MathGraphicsJPanel no output

I am trying to create a Java frontend for Mathematica. Following examples from J/Link guide and looking around the API manual I came up with this code: ...
2
votes
0answers
92 views

Graphics always rendered twice with SimpleFrontEnd example?

I am looking at the Java SimpleFrontEnd example provided by Mathematica. Everything goes well except it always renders graphics twice. Can anyone help me with ...
2
votes
1answer
186 views

Executing C programs within mathematica [duplicate]

I have a requirement for executing a C program within Mathematica. The user will provide the inputs and the expected results on a front end. Mathematica runs the C file, obtains the result for the ...
2
votes
0answers
575 views

mathematica startup time

I have Mathematica 7 and 8 installed on my laptop. Mathematica 7 starts quite fast, but Mathematica 8 is extremely slow to start. In the Option Inspector I canceled the "welcome screen" option at ...
1
vote
1answer
460 views

Calling Mathematica from Java

I'm trying to write a Java program that uses Mathematica code, but when I compile it, a window appears asking for MathLink. I enter ...
1
vote
1answer
338 views

Wolfram Workbench problem with JLink

I'm working on Wolfram Workbench 2.0 and I'm creating a JLink Application project. Below there is the code: ...
1
vote
0answers
28 views

Why doesn't Import work with XOWA offline Wikipedia database?

I'm having trouble with importing HTML from XOWA offline wikipedia database. I set up a local server for datamining, but I can't access it with Mathematica. I can request a HTML page with ...
1
vote
0answers
47 views

How to make an executable .jar connect to Mathematica

I am writing a Java Swing program which collects data and connects to Mathematica to do some computations. As other answers here suggested, I have included JLink.jar in the classpath, as well as the ...
1
vote
0answers
82 views

using Mathematica library in Java

I am trying to build a Math expression calculator in Java. Is any way for using Mathematica libraries in Java program without ...
1
vote
0answers
53 views

Using GUI with JLink

How to handle Input/Manipulate expressions using JLink? Say I want to handle the $Input[]$ expression sent via JLink to the MathKernel. Currently the my app blocks on waiting the response. How this ...
1
vote
1answer
149 views

Problem with loading a Jar file in Workbench

I'm trying to load a Jar file in a Workbench project using (after importing "JLink`" in the package declaration): ReinstallJava[ClassPath->"pathToMyJar"]]; In ...
1
vote
0answers
37 views

How to call a java method that takes a boolean (not Boolean)?

I'm trying to call a method on a java object that takes a single boolean argument - note boolean (native or primative) not Boolean (Object or Reference type). ...
1
vote
0answers
51 views

Is there any metadata-holding mechanisms in Mathematica programming similar to Java annotations?

I'm re-implementing some tools previously implemented in Java in Wolfram Language. Is there any metadata-holding mechanisms in Mathematica programming similar to Java annotations?
1
vote
0answers
44 views

Clojuratica setup in Windows

I have been trying to setup Clojuratica on Windows using instructions from Clojure Data Analysis Cookbook and http://drcabana.org/2012/10/23/installation-and-configuration-of-clojuratica/ Each time I ...
1
vote
0answers
182 views

InstallJava::fail error when importing an image with a Raspberry Pi

I'm trying to import an image in Mathematica on my Raspberry Pi. The code is simple but I get an error when importing: ...
1
vote
0answers
71 views

Creating a Mathematica executable that uses JLink [duplicate]

I am making a program in Mathematica that uses the Robot class of Java and some other Mathematica functions. I want the end product to be a standalone executable that can run even if a computer does ...
0
votes
2answers
3k views

KeyPress function in Java's Robot class, how to state parameter?

I am trying to use Java's Robot class to type. This is what I have done so far. Needs["JLink`"]; InstallJava[]; robot = JavaNew["java.awt.Robot"] The mouseMove ...
0
votes
0answers
52 views

Does Mathematica create a security risk by running Java on my Mac?

I checked inside the package that is the Mathematica App on the Mac. It has a bunch of .jar files, so I assume that it is running Java. Does this open up any security threats that I should be aware ...
0
votes
0answers
22 views

how can sent data to Mathematica and get result in java? [duplicate]

I try to develop an math script calculator in java. My script has advance math functions and I can't calculate them in java.(for example limit, plot, ... ) Is any way for sending script to ...
0
votes
0answers
45 views

JLink-Java Console cann't show Chinese characters

My version is mathematica 10 on windows 8.1 x64 中文 Chinese character can't be shown in the console correctly. Any methods to overcome this problem? It seems the ...
0
votes
0answers
67 views

Lightweight Grid preferences screen stopped working after v10 install

I am getting the following error when I try to open the Lightweight Grid "Preferences" tab... ...
0
votes
0answers
62 views

Evaluating expressions stored in notebook from Java

The Mathematica kernel can generally open a notebook and evaluate the functions present in the notebook using UsingFrontEnd Command. Example: ...
0
votes
0answers
38 views

Problem to connect remote Mathematica Kernel using J/Link [duplicate]

Possible Duplicate: Failed to connect remote Mathematica kernel using J/Link I'm trying to connect to a remote Mathematica 8 kernel on windows server (IP :172.20.48.113 ) from a windows ...