Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » not able to work with JET
not able to work with JET [message #675991] Thu, 02 June 2011 09:42 Go to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Hi,
I am a new user of JET.
I copied this content in my sample.xml file.

<class name="HelloClass">
<phrase>Hello,World!</phrase>
</class>


also I copied the following content in main.jet which is supposed to be my template.

public class <c:get select="/class/@name" /> {
public static void main(String[] args) {
System.out.println("<c:get select="/class/phrase" />");
}
}

Now when I am running this, I am just getting "successful Execution" in the console...but I am not able to trace the output file.I am using Eclipse Helios.
Can someone plz help me with my problem.

Thanks.
Karishma
Re: not able to work with JET [message #676021 is a reply to message #675991] Thu, 02 June 2011 14:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Karishma,

You consulted with your best friend, the debugger?

karishma wrote:
> Hi,
> I am a new user of JET.
> I copied this content in my sample.xml file.
>
> <class name="HelloClass">
> <phrase>Hello,World!</phrase>
> </class>
>
>
> also I copied the following content in main.jet which is supposed to
> be my template.
>
> public class <c:get select="/class/@name" /> {
> public static void main(String[] args) {
> System.out.println("<c:get select="/class/phrase" />");
> }
> }
>
> Now when I am running this, I am just getting "successful Execution"
> in the console...but I am not able to trace the output file.I am using
> Eclipse Helios.
> Can someone plz help me with my problem.
>
> Thanks.
> Karishma


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: not able to work with JET [message #676288 is a reply to message #676021] Fri, 03 June 2011 14:30 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma AgarwalFriend
Messages: 28
Registered: June 2011
Junior Member
Thanx for replying...and I am not able to trace any problem even if I am debugging it..Is there anything else which I should have done???I guess the output of this file should be generated in the console..isnt it??
Re: not able to work with JET [message #676321 is a reply to message #676288] Fri, 03 June 2011 16:34 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Comments below.

karishma wrote:
> Thanx for replying...and I am not able to trace any problem even if I
> am debugging it..
Why not?
> Is there anything else which I should have done???
It's not so clear what you've all done.
> I guess the output of this file should be generated in the
> console..isnt it??
I guess so, but as I said, it's not clear what you've all done.

Unless Paul Elder guesses better than me, and reads your question,
you'll need to figure out what's wrong yourself.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:org.eclipse.emf.mwe.core.ConfigurationException: Couldn't find an interface ...
Next Topic:Ecore Model & Xpand: Uppercase Attributes lead to errors
Goto Forum:
  


Current Time: Tue Apr 16 23:15:49 GMT 2024

Powered by FUDForum. Page generated in 5.76326 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top