comsol和java_Running COMSOL with Java externally

Please login with a confirmed email address before reporting spam

Send a report to the moderators

Cancel

Report

Posted:

10 years ago

2011年8月4日 GMT+8 上午12:18

Hi Alex,

I have installed Comsol 4.2, generated the Java source file for the feeder_clamp model, and created the Eclipse project as described in the documentation.

When I open the compiled .class file (it can be found in the bin directory of the project) from the Comsol Desktop, the model is loaded and a graphic of a mechanical part is generated. I don't know if you have tried this, but it's an easy way of running the Java model.

However, if I follow the instructions to execute the Java model from Eclipse, and using the Comsol server, when I run the Java application a message is displayed in the server window indicating that a client is connecting, and after a while another message indicates that the client is disconnecting, but nothing more happens... I have followed all the instructions given in the documentation to configure the Eclipse project, i.e. adding the libraries to the project, and adding the two lines in the main method for connecting to the Comsol server, but it doesn't say the expected behaviour when you proceed so...

Do you have any more idea?

Best regards.

P.D.: I'm the Ana's colleague at the CSIC in Spain.

Hi Alex,

I have installed Comsol 4.2, generated the Java source file for the feeder_clamp model, and created the Eclipse project as described in the documentation.

When I open the compiled .class file (it can be found in the bin directory of the project) from the Comsol Desktop, the model is loaded and a graphic of a mechanical part is generated. I don't know if you have tried this, but it's an easy way of running the Java model.

However, if I follow the instructions to execute the Java model from Eclipse, and using the Comsol server, when I run the Java application a message is displayed in the server window indicating that a client is connecting, and after a while another message indicates that the client is disconnecting, but nothing more happens... I have followed all the instructions given in the documentation to configure the Eclipse project, i.e. adding the libraries to the project, and adding the two lines in the main method for connecting to the Comsol server, but it doesn't say the expected behaviour when you proceed so...

Do you have any more idea?

Best regards.

P.D.: I'm the Ana's colleague at the CSIC in Spain.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值