Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Problem by running Comsol35a with Matlab2009a on Linux (Ubuntu 9.04) 64 bits
Posted Aug 14, 2009, 8:58 a.m. EDT LiveLink for MATLAB Version 3.5a 19 Replies
Please login with a confirmed email address before reporting spam
I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04).
Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal:
/usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m
But I get the following error message:
------------------------------------------------------------------------
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 64-bit (glnxa64)
February 12, 2009
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
** On entry to DGESVD parameter number 13 had an illegal value
------------------------------------------------------------------------
I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works.
Does Anybody known what I am doing wrong with the 64-bit Linux machine?
Thanks a lot in advance for your help.
Magalie Huttin
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Best regards
Magalie Huttin
Please login with a confirmed email address before reporting spam
When I installed it on linux ubuntu 9.04 the installation went fine but when I start it up I get the model navigator and after choosing a model it dies giving:
Please help!
Error: 9040
Fatal error.
- Type: ExceptionInInitializerError
Exception:
java.lang.ExceptionInInitializerError
(rethrown as com.femlab.util.FlFatalException)
Messages:
Fatal error.
- Type: ExceptionInInitializerError
Stack trace:
at com.femlab.post.PostPlotStyleData.<init>(Unknown Source)
at com.femlab.post.PostPlotStyleData.<init>(Unknown Source)
at com.femlab.post.PostTriPlot.<init>(Unknown Source)
at com.femlab.post.PostModelMph.ap(Unknown Source)
at com.femlab.post.PostModelMph.<init>(Unknown Source)
at com.femlab.gui.bo.<init>(Unknown Source)
at com.femlab.gui.Femlab.startGui(Unknown Source)
at com.femlab.gui.dialogs.ModelNavigator.a(Unknown Source)
at com.femlab.gui.dialogs.ModelNavigator.applyAction(Unknown Source)
at com.femlab.controls.FlDialog.okAction(Unknown Source)
at com.femlab.controls.FlDialog.actionPerformed(Unknown Source)
at com.femlab.controls.FlButton.a(Unknown Source)
at com.femlab.controls.FlButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.femlab.gui.e.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.femlab.post.CustomColorMap.getCustomColorMaps(Unknown Source)
at com.femlab.post.PostColorMapData.createColorMapComboItems(Unknown Source)
at com.femlab.post.PostColorMapData.<clinit>(Unknown Source)
... 38 more
Please login with a confirmed email address before reporting spam
My friend had some problems with Ubuntu, and Comsol doesn't officially support Ubuntu.
So what he did is - he changed his Linux system to one that is daughter of RedHat. And I think it helped him with MatLab issues.
Please login with a confirmed email address before reporting spam
It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that.
Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username).
If you are using Matalb, also do the same to the folder ".matlab"
I hope it helps
Cheers
Please login with a confirmed email address before reporting spam
Thanks for your reply.
I have changed the permission on the .comsol directory to my username.
Which java package should I install?
I have java 1.6.0_14 version which is java 6 SE.
In the synaptic package manager I cannot find any java 64-bit version.
any clue?
Eyal
Please login with a confirmed email address before reporting spam
Don't forget to change also the permission for the sub folders and also the files in .comsol
Concerning the installation of the Java, don't use the synaptic.
It is much better with the command line
Try this link and follow the instruction (it is easy) just copy and past the instructions. By this, you can also check which version is installed in your system.
www.ubuntugeek.com/how-to-install-java-runtime-environment-jre-in-ubuntu-904-jaunty.html#more-1307
Hope it helps and keep us informed about the progress.
Cheers
Please login with a confirmed email address before reporting spam
Thanks for your help.
The problem was indeed permission issues.
I changed permission of the .comsol directory and it did'nt help
For starters I run it with sudo and it runs perfectly. When I will have time to mess around with it maybe I'll clean it up
Thanks
Please login with a confirmed email address before reporting spam
Changing the permission for the .comsol folder and its sub folder should "definitely" solve the problem since that the software ran by using sudo.
The reason is that when you start comsol, the software has to write some specific files in that folder. So, without root permission comsol cannot start.
You have to change the access (permission) for this folder and its content.
A radical solution is to change the permission also for /usr/local/comsol folder and its sub folders (all the content).
This is due to the Ubuntu security system not comsol itself.
Good luck,
Please login with a confirmed email address before reporting spam
I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab
??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'
and non of the comsol libraries are loaded. Have you experienced something similar?
Thanks a lot.
Martin
hi,
I just install Comsol(35a) in connection with Matlab(R2009a) on a 64-bits Linux machine (Ubuntu 9.04).
Actually I submit the Comsol jobs in a m.file with the following command in the Linux terminal:
/usr/local/comsol35a/bin/comsol matlab -ml -nodesktop -ml -nosplash -mlr job.m
But I get the following error message:
------------------------------------------------------------------------
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 64-bit (glnxa64)
February 12, 2009
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
** On entry to DGESVD parameter number 13 had an illegal value
------------------------------------------------------------------------
I try to install Comsol(35a) and Matlab(R2009a) on a 32-bit Linux machine. In this case this command perfectly works.
Does Anybody known what I am doing wrong with the 64-bit Linux machine?
Thanks a lot in advance for your help.
Magalie Huttin
Please login with a confirmed email address before reporting spam
I did'nt have such a problem.
On the Comsol35a installation make sure that you enter the correct path for you matlab installation.
I usually run matlab from the comsol menu \File\..\connect to matlab..
Eyal
Please login with a confirmed email address before reporting spam
to resolve your problem make sure that you have the an "mli" folder in the COMSOL root directory. this folder conatins the function 'comsolmexpath' and other files used to connect matlab and COMSOL
it works for me, i had the same problem before
good luck
M
Hi,
I run comsol35a with hotfix with matlab R2009b on UBUNTU 9.04, but I am getting the following error after running comsol matlab
??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'
and non of the comsol libraries are loaded. Have you experienced something similar?
Thanks a lot.
Martin
Please login with a confirmed email address before reporting spam
Problem running COMSOL3.5a with MATLAB R2008a.
The path is ok, but in matlab is is written:
??? Undefined function or method 'comsolmexpath' for input arguments of type 'char'.
I don't have this 'mli' folder im Cmsol directory. Haw can I install it, is it from the normal instalation, or it have to be copied from somwhere.
thank you
Please login with a confirmed email address before reporting spam
I solved it for now by ussing sudo. A more thorough solution is to define all the permissions stuff.
Eyal.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.
Please login with a confirmed email address before reporting spam
I had the same problem, but I simply forgot to install the Matlab Interface (since I installed Matlab after Comsol and only added the matlab path). Reinstallation gave me the mli folder, someone above mentioned, and everything works fine.
Running on Ubuntu 9.10 (64bit) by the way, so no need to torture oneself with RedHat.
I think you are right, Alexandra. Martin, check this:
www.comsol.com/support/knowledgebase/1052/
Niklas
Please login with a confirmed email address before reporting spam
I am using Ubuntu without any problem. it works perfectly.
It seems that you have a problem with your Java machine, try to update it. Don't use compiz and something like that.
Also, during the installation a folder ".comsol" will be created in your profile folder. Try to change the permission access for this folder (from root to your username).
If you are using Matalb, also do the same to the folder ".matlab"
I hope it helps
Cheers
Hi R. Faycal Hamou
I have followed your instructions and changed permissions of ".comsol" folder and /usr/local/comsol35a and provided read./write access to all files in it. I have installed Sun-java6-jre and sun-java6-bin. Inspite of all this I still get the following errors:
Error 9040: Fatal error
Exception Initialization error when I am trying to open new files with any physics
Null pointer Exception when I am trying to open solved problems from either Model library or some other solved problems.
I would greatly appreciate if you have any suggestions on how to resolve this problem.
Please login with a confirmed email address before reporting spam
i use comsol 3.5a and Matalb 200b i find this error please help
Exception:
java.lang.NullPointerException
(rethrown as com.femlab.util.FlFatalException)
Messages:
Fatal error.
- Type: NullPointerException
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.
Suggested Content
- KNOWLEDGE BASE COMSOL Not Working on a Linux Cluster
- FORUM Data export while a study is running
- FORUM Monitoring intermediate results during running time dependent simulation
- KNOWLEDGE BASE 'Command not found' or 'No such file or directory' error when starting the license manager on Linux
- BLOG Teaching Transport Phenomena to Engineering Students with Apps