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.
Simple Java Programme does not compile in V50
Posted 24 mar 2015, 08:05 GMT-4 API Version 5.0 2 Replies
Please login with a confirmed email address before reporting spam
Hallo,
the very simple java programme below works in version 4.4 of Comsol but not with version 5.0.
There are no error messages, but the class-file is not generated.
I run (on Linux):
comsol compile test.java
Did anybody run into the same problem and found a solution?
Thanks in advance.
Regards
Jens
-------------------------------------------------------------------------
import java.io.*;
import com.comsol.model.*;
import com.comsol.model.util.*;
public class test{
public static void main(String[] args) throws Exception {
run();
}
public static Model run() throws Exception{
Model model = ModelUtil.create("Model");
model.param().set("Laenge","4.6[m]");
return model;
}
};
the very simple java programme below works in version 4.4 of Comsol but not with version 5.0.
There are no error messages, but the class-file is not generated.
I run (on Linux):
comsol compile test.java
Did anybody run into the same problem and found a solution?
Thanks in advance.
Regards
Jens
-------------------------------------------------------------------------
import java.io.*;
import com.comsol.model.*;
import com.comsol.model.util.*;
public class test{
public static void main(String[] args) throws Exception {
run();
}
public static Model run() throws Exception{
Model model = ModelUtil.create("Model");
model.param().set("Laenge","4.6[m]");
return model;
}
};
2 Replies Last Post 25 mar 2015, 03:18 GMT-4