Another question.........

How to chang a java package to a MPS Model,which can be uesed in generator?

0
14 comments

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
Avatar
Permanently deleted user

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

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

0

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

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

0

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

0

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

0
Avatar
Permanently deleted user

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

0

Thank you! Sir.

0

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

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

0

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

0
Avatar
Permanently deleted user

Unfortunately our baseLanguage doesn't support try catch.

0

Please sign in to leave a comment.