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 05:42 Go to next message
karishma Agarwal is currently offline karishma Agarwal
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 10:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25910
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
Re: not able to work with JET [message #676288 is a reply to message #676021] Fri, 03 June 2011 10:30 Go to previous messageGo to next message
karishma Agarwal is currently offline karishma Agarwal
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 12:34 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25910
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.
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 Jul 22 15:48:13 EDT 2014

Powered by FUDForum. Page generated in 0.01666 seconds