Yes, you can. You can add this jar to a project classpath in project settings. After that you'll have models with names your.package@java_stub from that you can import your classes.
You can check whether your java stub exists in the java_stub node under a module node. If it didn't appear than there is something wrong with your classpath. In this case try see whether mps reported some error messages.
And can a java lib such as "sunxw.jar" be used in the template of a generator?
If can,what to do in order to import it when I press +
Yes, you can. You can add this jar to a project classpath in project settings. After that you'll have models with names your.package@java_stub from that you can import your classes.
I din't get "your.package@java_stub ". Is there still anything I should do?
And in "fixedLengthReader",two folders with " *.java" also can generate "@java_stub". How to do ?
If you want this package to appear you have to add a jar with these classes to the project classpath. You can set it in the project properties dialog.
You can check whether your java stub exists in the java_stub node under a module node. If it didn't appear than there is something wrong with your classpath. In this case try see whether mps reported some error messages.
You can generate java stubs only from .class files not .java files. Or your mean something different?
Do you mean that only ".class" file can generate "@java_stub"?
Do you mean that only ".class" file can generate "@java_stub"?
Yes, @java_stubs are virtual models that map class files that corresponds to them.
Thank you! Sir.
My java stub exists in the java_stub node under a module node.
But where the file "@java_stub.mps" lies in?
If I want to use "try catch" which stub should be imported?
Unfortunately our baseLanguage doesn't support try catch.