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.

comsolbatch javafile(.java): error in reading a txt file

Please login with a confirmed email address before reporting spam

I met a error when i try to use comsolbatch with javafile(.class), and i really don't know how to solve it.
At first i made a .java code file just by a comsol model which can be ran succeefully in comsol. then i translated it to .class file without any problem. but when i use comsolbatch comand, there is error as below:
%%Security preference 'File system access' does not allow 'read' access to 'the path of the txt file'.%%

At the begining I thought that maybe the reason is the seeting of java environment or my computer system. So i tried to read this txt file just by java code, the txt file was read without any problem.
Maybe there is a problem in comsolbatch or something else, but i really don't know what to do. Does anyone know how to slove it. Please free feel to give me your suggeation or opinion.

3 Replies Last Post 18 avr. 2017, 17:31 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2 déc. 2015, 02:58 UTC−5
Does anyone can help me, i really don't know what to do.
Does anyone can help me, i really don't know what to do.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 9 janv. 2016, 04:04 UTC−5

Go to:

File->Preferences->security -> File system access -> All files

--
Ulhas
Go to: File->Preferences->security -> File system access -> All files -- Ulhas

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 18 avr. 2017, 17:31 UTC−4
I am experiencing the same problem, and changing the security preferences did not fix the issue for me. Does anyone have any other suggestions?
- Thanks!
I am experiencing the same problem, and changing the security preferences did not fix the issue for me. Does anyone have any other suggestions? - Thanks!

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.