Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in using JWIG

 
Daniel Sagayaraj
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
I am tring to run a hello world webservice.I have followed the instruction that is given in the tutorial.but i am getting compilation error in the following class

import dk.brics.jwig.runtime.*;

public class Hello extends Service
{
public class Example extends Session
{
public void main() {
XML x = [[ <html><head><title>JWIG</title></head><body>
<h1><[what]></h1></body></html> ]];
x = x <[ what = [[ Hello World! ]] ];
show x;
}
}
}



Error Message:




Multiple markers at this line
- Syntax error on tokens, Expression expected
instead
- Syntax error on tokens, delete these tokens
- Syntax error on tokens, delete these tokens
- Syntax error on token ">", delete this token
- Syntax error on token ">", , expected
- Syntax error on token(s), misplaced construct(s)
- Syntax error on token "/", delete this token
- Syntax error on token "<", , expected



If some one can help me please help to learn
 
Mathias Schwarz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you are seeing is syntax errors from the Java compiler. JWIG relies on a syntactic extension of Java, meaning that you will need to run a JWIG/Xact compiler instead of the standard Java Compiler.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic