Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Import Java Packages in a method for App builder

Please login with a confirmed email address before reporting spam

Hi,

I am performing data manipulation via a method in the app builder. My code requires additional Java packages to run. For example:

import java.io.IOException;
import java.util.List;

Has anyone successfully done this and run a class as a method?

1 Reply Last Post 26 gen 2017, 16:30 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 26 gen 2017, 16:30 GMT-5
From Comsol Support:

If you choose File > Preferences and click on Methods, there is an option
to "View all code". Select that, and your methods will reveal a number of
import statements at the top. To import java.io.Console and the others, you
need just add the import statements that you listed.

From Comsol Support: If you choose File > Preferences and click on Methods, there is an option to "View all code". Select that, and your methods will reveal a number of import statements at the top. To import java.io.Console and the others, you need just add the import statements that you listed.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.