- This topic has 9 replies, 2 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
pbh001MemberError indicator on right shows, but not red X on left. Also no error shows on the problems window or on the file in the package explorer.
Any ideas why?
Brian
Riyad KallaMemberBrian,
For errors on the left and in the problem view you need a few things:1) Make sure javac.exe is in your system path, the JSP Validator runs this to compile the page for validation results.
2) Hit the down arrow in your problem view (top right) and go to Filters… and hit Select All and OK to make sure to see all errors.
**3) Errors in the right are reconciler (real-time) errors, they are not the same as validation (compiler) errors.
pbh001MemberOk I must still have something wrong.
I downloaded the latest JDK, the latest eclipse, and the latest myeclipse and installed everything per instructions.
This is my class path
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;”E:\j2sdk1.4.2_06\bin”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technologies\ATI Control Panel1) I can run javac from the dos prompt from any directory, so I know the path is correct.
2) I verfied that all check boxes are markedThis is the code that should produce an error:
<% out.println(“Hello World”) %> //notice the missing semi-colon.When I right click on the file and say validate jsp, it shows jsp as being valid.
Here is the contents of my configuration detail if it helps
*** Date: 10/20/04 8:51 PM*** Platform Details:
*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M200409161125
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-showsplash
E:\eclipse3.0.1\eclipse\eclipse.exe -showsplash 600
-exitdata
E:\eclipse3.0.1\eclipse\eclipse.exe -exitdata 868_38
-vm
C:\WINDOWS\system32\javaw.exeeclipse.product=org.eclipse.platform.ide
eclipse.startTime=1098322744203
eclipse.vm=C:\WINDOWS\system32\javaw.exe
eclipse.vmargs=-cp
E:\eclipse3.0.1\eclipse\startup.jar
org.eclipse.core.launcher.Maineof=eof
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=E:\eclipse3.0.1\eclipse\startup.jar
java.class.version=48.0
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2_06
java.io.tmpdir=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp\
java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;”E:\j2sdk1.4.2_06\bin”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technologies\ATI Control Panel
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_06-b03
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.4
java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.4.2_06
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.4.2_06-b03I can give you the rest of it if needed
Riyad KallaMemberHmm if you aren’t seeing that marked as an error, check your log file in your workspace for exceptions related to javac.exe (workspace dir)\.metadata\.log is the location. Your setup looks fine otherwise.
pbh001MemberHere is the contents of the log:
!SESSION Oct 20, 2004 21:25:28.302 ———————————————
eclipse.buildId=M200409161125
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US!ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 Oct 20, 2004 21:25:28.302
!MESSAGE
Oct 20, 2004 9:25:28 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Javac exception
Error running javac.exe compiler
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:446)
at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateJSPActionDelegate.run(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:276)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Caused by: java.io.IOException: CreateProcess: javac.exe -classpath “E:\eclipse3.0.1\eclipse\startup.jar;E:\j2sdk1.4.2_06\jre\lib\rt.jar;E:\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;E:\j2sdk1.4.2_06\jre\lib\jsse.jar;E:\j2sdk1.4.2_06\jre\lib\jce.jar;E:\j2sdk1.4.2_06\jre\lib\charsets.jar;E:\j2sdk1.4.2_06\jre\lib\ext\dnsns.jar;E:\j2sdk1.4.2_06\jre\lib\ext\ldapsec.jar;E:\j2sdk1.4.2_06\jre\lib\ext\localedata.jar;E:\j2sdk1.4.2_06\jre\lib\ext\sunjce_provider.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\activation.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jsp.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-j2ee.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-jaxrpc.jar;E:\P?
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
… 38 more
— Nested Exception —
java.io.IOException: CreateProcess: javac.exe -classpath “E:\eclipse3.0.1\eclipse\startup.jar;E:\j2sdk1.4.2_06\jre\lib\rt.jar;E:\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;E:\j2sdk1.4.2_06\jre\lib\jsse.jar;E:\j2sdk1.4.2_06\jre\lib\jce.jar;E:\j2sdk1.4.2_06\jre\lib\charsets.jar;E:\j2sdk1.4.2_06\jre\lib\ext\dnsns.jar;E:\j2sdk1.4.2_06\jre\lib\ext\ldapsec.jar;E:\j2sdk1.4.2_06\jre\lib\ext\localedata.jar;E:\j2sdk1.4.2_06\jre\lib\ext\sunjce_provider.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\activation.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jsp.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-j2ee.jar;E:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-jaxrpc.jar;E:\P?
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:831)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:436)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:450)
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:443)
at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:43)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.?(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler.compile(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.?(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.jasper.driver.MyEclipseJspC.parse(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.JSPValidator.validate(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction$1.run(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1693)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.validate(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateAction.run(Unknown Source)
at com.genuitec.eclipse.wdt.jsp.validation.ValidateJSPActionDelegate.run(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:276)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)
Oct 20, 2004 9:25:28 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
SEVERE: Env: Compile: javaFileName=/C:/DOCUME~1/BRIANH~1/LOCALS~1/Temp/myeclipse-jspcc//org/apache/jsp\helloWorld_jsp.java
classpath=E:\j2sdk1.4.2_06\jre\lib\rt.jar;E:\j2sdk1.4.2_06\jre\lib\sunrsasign.jar;E:\j2sdk1.4.2_06\jre\lib\jsse.jar;E:\j2sdk1.4.2_06\jre\lib\jce.jar;E:\j2sdk1.4.2_06\jre\lib\charsets.jar;E:\j2sdk1.4.2_06\jre\lib\ext\dnsns.jar;E:\j2sdk1.4.2_06\jre\lib\ext\ldapsec.jar;E:\j2sdk1.4.2_06\jre\lib\ext\localedata.jar;E:\j2sdk1.4.2_06\jre\lib\ext\sunjce_provider.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\activation.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jsp.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-j2ee.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-jaxrpc.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-jsr77.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-saaj.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\mail.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\namespace.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\xml-apis.jar;E:\eclipse3.0.1\eclipse\workspace\HelloWorld\WebRoot\WEB-INF\classes;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jasper-runtime.jar;e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jsp-api.jar
cp=E:\eclipse3.0.1\eclipse\startup.jar
cp=E:\j2sdk1.4.2_06\jre\lib\rt.jar
cp=E:\j2sdk1.4.2_06\jre\lib\sunrsasign.jar
cp=E:\j2sdk1.4.2_06\jre\lib\jsse.jar
cp=E:\j2sdk1.4.2_06\jre\lib\jce.jar
cp=E:\j2sdk1.4.2_06\jre\lib\charsets.jar
cp=E:\j2sdk1.4.2_06\jre\lib\ext\dnsns.jar
cp=E:\j2sdk1.4.2_06\jre\lib\ext\ldapsec.jar
cp=E:\j2sdk1.4.2_06\jre\lib\ext\localedata.jar
cp=E:\j2sdk1.4.2_06\jre\lib\ext\sunjce_provider.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\activation.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\javax.servlet.jsp.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-j2ee.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-jaxrpc.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-jsr77.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\jboss-saaj.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\mail.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\namespace.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_3.8.2\data\libraryset\1.4\xml-apis.jar
cp=E:\eclipse3.0.1\eclipse\workspace\HelloWorld\WebRoot\WEB-INF\classes
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jasper-runtime.jar
cp=e:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_3.8.2\lib\jsp-api.jar
work dir=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp\myeclipse-jspcc
extension dir=C:\Program Files\Java\j2re1.4.2_06\lib\ext
srcDir=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp\myeclipse-jspcc
compiler=extJavac
include=org/apache/jsp/helloWorld_jsp.java
Riyad KallaMemberWell it looks like javac is definately the problem… if you open up a command prompt (Start > Run > “cmd”) and go to say C:\Program Files and type “javac -version” what do you get?
Also did you make sure to restart Eclipse after putting javac in your path?
pbh001MemberC:\Program Files>java -version
java version “1.4.2_06”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)C:\Program Files>
Brian
PS Thanks for you help Riyad!
Riyad KallaMemberActually not java, javac… The JRE installs itself to C:\windows when it runs so I wouldn’t be surprised that “java” is in your path, but we want “javac.exe” in your path.
pbh001Memberjavac does not take a -version param. At least mine did not, so I thought “hmmm i bet he meant java”.
Anyway I found this and tried it and it worked!
***************************************************
Susana,First, I’m really glad you found the problem. Most developer’s machines (mine included) contain a hodge-podge of JDK installations, and this can often cause problems.
I don’t know what the ‘null’ file is, but I wouldn’t worry about it. For future reference, you can specify exactly which VM Eclipse should launch with by modifying the alias you use to launch Eclipse and specifying the -vm argument like this:
eclipse -vm d:\jdks\jdk1.4.1_01\bin\javawThat will prevent Eclipse from rooting around your system looking for a compatable JDK.
–Scott
MyEclipse Support
************************************************Now my question is how can I figure out what jdk it is finding when I did not give it the -vm E:\j2sdk1.4.2_06\bin\javaw
I would like to clean up the jre or old sdk or what ever was causing the problem!
Thanks Riyad
Brian
Riyad KallaMemberjavac does not take a -version param. At least mine did not, so I thought “hmmm i bet he meant java”.
I’m sorry, you had the right interpretation of this.
You can remove the -vm arg and start Eclipse back up then go to Help > About > Configuration details and it will give all the JRE/JDK details.
And it looks like you already did that in the first part fo the post and the info was:
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\lib\ext
java.home=C:\Program Files\Java\j2re1.4.2_06
java.io.tmpdir=C:\DOCUME~1\BRIANH~1\LOCALS~1\Temp\
java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;”E:\j2sdk1.4.2_06\bin”;”E:\Program Files\Symantec\Norton Ghost 2003\”;C:\Program Files\ATI Technologies\ATI Control Panel
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.4.2_06-b03So it looked like it was picking up the right version, but it was using the JRE install in C:\Program Files, not the JDK install which you are pointing to now with the -vm argument, so it wasn’t able to find javac.exe before, now it is.
-
AuthorPosts