I want to load my comsol models using java files. I have determined how to create a java file and compile it using comsolcompile. The problem I am having is that at the end of the compiled class file I would like to insert a command to save the model as an mph file. The Comsol API reference document states that I can use--- model.save("filename","m");--- or model.save("filename","java");-- to create an m file or a java file, both of which work fine for me. The problem comes when I try to put in a command to save the file as a mph file. When I try to use, model.save("filename");---as described in the API refrence document, there is an error when the java file tries to compile. I have also tried model.save("filename","mph");--which also make the compiler fail. I have tried this on Comsol 4.0, 4.0a, and 4.1 all of the compilers give me the same error. Can anyone help?
Daniel
Daniel