clarkyeah 发表于 2008-1-16 12:30:39

解决comsol3.3a和matlab 2007b无法同时启动问题

最近升级了matlab到2007b版本,发现再次启动comsol with matlab时,matlab只闪了一下就终止了,comsol也无法启动,注册了comsol,再knowledge base里找到了相应的解决方案,现记录如下:

Problem Description
When I start COMSOL 3.4 with MATLAB, neither MATLAB nor the COMSOL Multiphysics user interface appear.


Solution
This problem has been reported by some users of COMSOL 3.4 with MATLAB 2007b on Windows. MATLAB 2007a and earlier versions are not affected by this problem.
The problem seems to be related to 32-bit MATLAB on a dual core (or more) Windows machines.
The solution is to change how MATLAB's Java Heap size is set. When COMSOL starts with MATLAB the maximum size of the Java heap is set to 256 MB. We need to disable this and use the default Java Heap size instead. The maximum size of the Java heap can be given by providing a line in a file java.opts in the directory where MATLAB is started.
The workaround is as follows:

Try to start COMSOL with MATLAB once. It will fail but a file java.opts will be written to the COMSOL3.4 installation directory.
Open the java.opts file, remove the line -Xmx256m and save the file.
Open the file comsol.opts in the bin directory under your COMSOL installation and change the line
JAVAOPTS=on
to
JAVAOPTS=off
This will ensure that a new java.opts file is not written automatically every time you start COMSOL with MATLAB and your manually edited comsol.opts will always be used.
When you use "Connect to MATLAB" from the File menu in COMSOL Multiphysics it will look for a java.opts file in your home directory. This means that you should copy the edited java.opts file to the home directory as well. This will be something like
C:\Documents and Settings\<user name>

LazyMan 发表于 2008-1-18 13:27:30

顶一下!!

zhengfei_dlut 发表于 2008-1-20 09:31:26

非常感谢,我试验了一下,通过:victory: :victory: :victory:

luwis 发表于 2008-1-23 16:37:49

谢谢楼主。我也遇到了相同的问题。

sunjunhuoyun 发表于 2008-3-27 17:26:18

学习中

果然是你 发表于 2018-6-3 11:26:06

comsol3.3a大佬们在哪下载啊?
页: [1]
查看完整版本: 解决comsol3.3a和matlab 2007b无法同时启动问题