facebook

Error Marking isn’t working for me

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #214940 Reply

    wseubert
    Member

    I’m new to MyEclipse so I’m guessing I screwed something up.

    I’m walking through the Web Development Tutorial and I’m having a problem in step 5. The line
    <% out.println(“Hello World”); XXX%>
    is not generating an error in the workbench. When I deploy it I get an exception from TomCat. If I remove the erroneos XXX and deply it, TomCat likes it.

    I am using version 3.0.0 of Eclipse, 3.8.1 of MyEclipse, TomCat 5.0.28, and j2sdk1.4.2_05. I downloaded the sdk from the J2ME site not the J2EE site. My PC is running XP.

    Any quesses as to what I might have screwed up? If you need more info, just let me know.

    Thanks

    #214944

    snpe
    Member

    upgrade to fix 3
    check that JSP validation on
    add j2ee 1.4 libraries

    regards

    #214948

    Riyad Kalla
    Member

    wseubert,
    In addition to snpe’s suggestions we also need to make sure that “javac.exe” is in your system PATH environment variable because ME uses it to compile the JSP pages in order to validate them. If on Windows you can check this by dropping to a console and type “javac”, if nothing happens you can edit your system PATH and add to it your JDK’s bin directory and then open a new console (has to be a new one) and try again… also typing “echo %PATH%” will let you see the current path.

    Once this is done make sure JSP validation is on in MyEclipse (Window > Preferences > MyEclipse > Validation > JSP Validation).

    #214949

    Scott Anderson
    Participant

    To see if the version of MyEclipse you’re running already has the 3rd quickfix installed please look at the build id at Window > Preferences > MyEclipse. The Buid Id should be 3.8.1+QF20040825. If it’s not, you’ll need to install the quick fix as explained here:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3514.html

    Also, to see JSP errors in the Problems View, please check the filter settings on the view and be sure that all the errors that begin with MyEclipse are checked. The filters are accessed from the Problems View’s toolbar.

    #214961

    wseubert
    Member

    I verified my build is 3.8.1+QF20040825.
    In my filters, I have everything checked.
    Validation is turned on.
    Typing javac on the command line didn’t do anything before, I added it my path now and typing javac does something now.

    I closed and reopened Eclipse and now I get the error.

    Instead of getting it on the actual line that has the error, I get it at the end of the line. Is this what I should expect?

    snpe suggested that I need the j2ee 1.4 libraries. Do I really need them?

    #214970

    Riyad Kalla
    Member

    What does the page look like? What is the error? Where is it marked?

    You will need the J2EE libraries OR the servlet/jsp API implementations from your application server in order for the JSP pages to compile correctly and all that fancy stuff.

    #214995

    wseubert
    Member

    The error is the correct error:

    Severity Description Resource In Folder Location Creation Time
    2 ‘;’ expected: out.write(“\r\n \r\n </body>\r\n</html>\r\n”); HelloWorld.jsp HelloWorldJSP/WebRoot line 33 September 10, 2004 2:22:39 PM

    It just shows on the blank line after </html>

    The offending code is:

    <body>
    This is my JSP page. <br>

    <% out.println(“Hello World”); xxx%>

    </body>
    </html>[/img]

    #214998

    Riyad Kalla
    Member

    It depends on the code the compiler is creating with how its mapped back to the original file, that sounds like normal behavior to me.

    #215045

    wseubert
    Member

    The only reason I didnt think it wasn’t normal behavior is it doesn’t match up with what’s shown in the tutorial. If that’s normal behavior it would be a good thing to update the tutorial.

    Thanks for all your help

    #215047

    Riyad Kalla
    Member

    Thank you for the additional information, yes we do need to update that tutorial and add some more.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Error Marking isn’t working for me

You must be logged in to post in the forum log in