Info

This question is closed. Reopen it to edit or answer.

Use Java Classes in Matlab

1 view (last 30 days)
Giorgos Papakonstantinou
Giorgos Papakonstantinou on 12 Nov 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
I have created a small Java CelsiusConverter GUI as described in http://docs.oracle.com/javase/tutorial/uiswing/learn/creatinggui.html. I would like to use the java classes contained in the compiled jar file in Matlab and view the gui through Matlab.
To do this I have added into the dynamic path the jar file
>> javaclasspath('-dynamic')
DYNAMIC JAVA PATH
C:\Users\user\Documents\MATLAB\Add JaVA classes\CelsiusConverterProject.jar
Furthermore, I have compiled the project in Netbeans using JDK 1.6.
Finally, I have attached the jar file that I have created.
Thank you very much in advance.

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!