14 comments
Comment actions Permalink

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 +

0
Comment actions Permalink

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.

0
Comment actions Permalink

I din't get "your.package@java_stub ". Is there  still anything  I should do?

0
Comment actions Permalink

And in "fixedLengthReader",two folders with " *.java" also can generate "@java_stub". How to do ?

0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

You can generate java stubs only from .class files not .java files. Or your mean something different?

0
Comment actions Permalink

Do you mean that only ".class" file can generate "@java_stub"?

0
Comment actions Permalink

Do you mean that only ".class" file can generate "@java_stub"?

0
Comment actions Permalink

Yes, @java_stubs are virtual models that map class files that corresponds to them.

0
Comment actions Permalink

Thank you! Sir.

0
Comment actions Permalink

My java stub exists in the java_stub node under a module node.

But where the file "@java_stub.mps" lies in?

0
Comment actions Permalink

If I want to use "try   catch" which stub should be imported?

0
Comment actions Permalink

Unfortunately our baseLanguage doesn't support try catch.

0

Please sign in to leave a comment.