Questions tagged [java]
Questions about interfacing Mathematica and Java, particularly using J/Link.
156 questions
0 votes
0 answers
64 views
Static methods of Java Classes not invoking
I'm using JLink and Java classes in a Mathematica session. I can load a class, create an object, and call the object's public method, but for some reason calling static methods doesn't work. Below is ...
0 votes
0 answers
250 views
How to specify NULL when inserting data into SQL Server using SQLExecute
I have an Microsoft SQL Server connection using: ...
0 votes
1 answer
95 views
Connection of MariaDB 11.2 to work with Mathematica 13.3.1
I would like to get the proper driver settings in place to permit the mariaDB database to connect to Mathematica via a JDBC driver running on a Windows11 64-bit machine. I've got mariaDB version 11.2 ...
0 votes
0 answers
104 views
How to use JLink to connect and read data from Tableau Hyper using Hyper API?
First of all, here is the link to download the API for Java for Windows. I initially wanted to use NETLink since I have some experience with it but they have ...
1 vote
0 answers
128 views
Rainbow Brackets for the Mathematica GUI?
Is there a way to add rainbow bracket-pair colorization to the Mathematica / Wolfram Desktop GUI? If not, how can I request one :) This is one feature that I have grown to love when writing WL or lisp ...
3 votes
1 answer
395 views
How can I use older JDBC driver(s) to connect with old mySQL databases?
I got a new Mac at work, fresh install of Mathematica v13.3 (old 2015 Mac is dying and has v11.3). Problem: In v13.3 I cannot connect to older mySQL databases, using v13's JDBC driver (...
0 votes
1 answer
182 views
Error "cannot find the required native library named JLinkNativeLibrary"
I have a problem running my test program on linux. I want to connect to mathematica kernel using java API. On windows, I put both jlink.jar and JLinkNativeLibrary.dll next to my executable file, let's ...
0 votes
0 answers
118 views
Can I connect to Cloud API using Java code?
I have a Java program that connects to a Mathematica Kernel, installed on my computer. I am able to call the APIs and receive the expression results, like to the code below. But is there any cloud ...
2 votes
1 answer
139 views
What is the gradle dependency for J/Link?
After much googling, browsing several answers on MathematicaSE as well as going through the J/Link docs, I haven't figured out the Gradle dependency for ...
3 votes
1 answer
704 views
Java error NoSuchFieldException: usr_paths with OpenSQLConnection after installing 13.2
I performed a fresh install of Mathematica 13.2. The first code that I tried worked just fine under 13.0. It opens an SQL server connection using single sign-on (SSO) for my credentials. However, in ...
9 votes
2 answers
371 views
How to convert a Java BufferedImage to a Mathematica Image?
Mathematica's CurrentScreenImage is very buggy on multiple monitor setups, so Wolfram tech support has proposed to use .NET or Java frameworks to implement my own. ...
1 vote
0 answers
158 views
Execute wolfram command from java & j/link along with set of variables [closed]
I have been trying to execute some expression/formula which may have multiple variable, and I want to set values(like how we do on kernel command tool). We are using J/Link to connect kernel from java....
4 votes
1 answer
173 views
Change DataStructure (or maybe just a symbol) from JLink/Java program
I try to use JLink and Java program for receiving responses from the abstract WebSocket server. WSS not supported by Wolfram Language now, but I can use this java project + JLink for the creating a ...
0 votes
0 answers
124 views
How do I call command-line tools from a standalone java library using WL?
I have the following command which when I run on the windows command line, works perfectly fine. ...
0 votes
0 answers
123 views
How to extract the images from a wolfram list to an array/list of byte arrays using JLink in Java
I have the following code in Java, where I am trying to use the WolframAlpha command and get the result as a list of images (byte arrays) ...