- This topic has 10 replies, 2 voices, and was last updated 18 years, 10 months ago by ivanachukapawn.
-
AuthorPosts
-
ivanachukapawnMemberI have a JSP which deliberately contains a syntax error. For this error there is an error indicator (small rose rectangle) on the right side of the main window but no error indicator (Red Circle with white X in it) on the left side of the main window. Below, “a console is not available” is displayed. I had expected a detailed JSP error to be displayed in the console window as documented in the Web Application Quickstart documentation.
myEclipse configuration follows:*** Date: Wed Jan 11 14:38:44 EST 2006
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_06*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.3 GA
Build id: 20051025-4.0.3-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.1
Build id: M20050929-0840Eclipse Platform
Version: 3.1.1
Build id: M20050929-0840Eclipse RCP
Version: 3.1.1
Build id: M20050929-0840Eclipse Java Development Tools
Version: 3.1.1
Build id: M20050929-0840Eclipse Plug-in Development Environment
Version: 3.1.1
Build id: M20050929-0840Eclipse Project SDK
Version: 3.1.1
Build id: M20050929-0840Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
D:\eclipse\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
c98_7bc
-clean
-vm
C:\WINDOWS\system32\javaw.exeIncidentally, the Console window is available when I run a Java App which does a System.println(String)
Riyad KallaMemberYou need to make sure that javac.exe is in your System PATH environment variable, that is what MyEclipse uses for validation. Once you have done that, restart MyEclipse and rebuild your project. It should correctly mark the error.
ivanachukapawnMemberI edited the System Path environmental variable to include d:\jdk1.5.0_05\bin and then restarted my system. I opened up the project and it built automatically. The jsp scriptlet in error displays a small rose rectangle on the right side but no red circle error indicator on the left side. The console display below continues to display “a console is not available”. I appreciate your help on this problem and hope for a solution on this and subsequent problems that may be encountered as I become familiar with both Eclipse and MyEclipse. I most certainly will become a subscriber at the Enterprise Level as soon as I can get the basics working OK. Thanks in advance for your help.
John Davis
Riyad KallaMemberJohn,
If you click on Start > Run > “cmd” and hit OK, then type “javac” at the command line, do you get a usage message or “Command not found”?If you do File > Switch Workspace > C:\tempworkspace, and hit OK. Then do File > New > Project > Web Project, and create a JSP in the WebRoot directory and add this to it:
<% blah %>
and save it, is it marked with an error in the left panel and down in the problems view?
ivanachukapawnMemberI get a usage message when I run javac in a cmd window.
I put in the blah scriptlet you suggested but it behaves the same as my previous errored scriptlet – i.e. no red circle error indicator on the left, and no detail message in the console.
Riyad KallaMemberJust to clarify, that is *with* a new workspace and a new project right?
If so, please send me a screenshot of what you are seeing to support@genuitec.com ATTN Riyad with a link to this thread so I know why I’m getting it.
ivanachukapawnMemberYes, I created a new project and a new JSP and have the same problem. By virtue of creating a new project and jsp, do I still need to do something about new workspace?
ivanachukapawnMemberIt doesn’t matter. I got a new workspace, created a new project and JSP page with an error in it, and I still don’t get the error indicator or console error message. I’ll send you the screenshot.
Riyad KallaMemberJohn,
The “console is not available” is not a bug or an error, it’s a notice that there is no content to show in the console right at that moment, which is correct.Now onto the missing marker, if you right click on your JSP file and go to Open With, what editors are listed? Which one has a round black dot next to it? Also if you navigate to the setting: Window > Prefs > General > Workspace, do you have “Build automatically” checked? If not, check that.
If none of that works, try and reboot just for sanity sake and reopen MyEclipse and then edit and save the file with an error in it.
ivanachukapawnMemberActually, this problem is not solved yet. The Problem Tab does not appear consistently. At one point, the tab existed, I clicked on it, and the error detail was displayed below. Then I corrected the error and the error indications disappeared. But when I reintroduced the error, the problem tab was not available.
Also, all along, the red circle error indicator appearance has not been consistent.
With respect to JSP errors, the sole consistency has been the small rose rectangle which appears at the right side of the editor window aligned with the beginning scriptlet tag.
ivanachukapawnMemberI checked and the MyEclipse JSP Designer is the one I am using. I checked preferences and found that build automatically was checked. However, I decreased the save interval to 1 minute, and checked the box for automatic save before build etc. Now when I introduce the error and click the save icon, the Red Circle error icon appears. However, I do not see a problem tab/view option available, but as I said earlier, this is not a big deal. I think we should close this thread.
-
AuthorPosts