Error running javac.exe compiler — from Eclipse log file

This topic contains 3 replies, has 2 voices, and was last updated by  Kapil Kapre 12 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #251420 Reply

    Max Mirabito
    Participant

    I upgraded to Eclipse 3.1.2 and MyEclipse 4.1.1 and I noticed that when I save a JSP file the following error is logged to the eclipse log file.

    I am wondering what I may have mis-configured for this to happen? Eclipse still runs but I am just curious if there is a fix, and should I be concerned?

    thanks in advance

    Max

    
    
    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 2006-04-30 22:08:27.390
    !MESSAGE 
    Apr 30, 2006 10:08:27 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:473)
        at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
        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:1721)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1741)
        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.Validator.validate(Unknown Source)
        at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source)
        at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
        at com.ibm.etools.validation.ValidatorLauncher.start(ValidatorLauncher.java:58)
        at com.ibm.etools.validate.ValidationOperation.launchValidator(ValidationOperation.java:1275)
        at com.ibm.etools.validate.ValidationOperation.internalValidate(ValidationOperation.java:1099)
        at com.ibm.etools.validate.ValidationOperation.validate(ValidationOperation.java:1014)
        at com.ibm.etools.validate.ValidationOperation.run(ValidationOperation.java:731)
        at com.ibm.etools.validate.ValidationBuilder.build(ValidationBuilder.java:155)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
    Caused by: java.io.IOException: CreateProcess: javac.exe -classpath "C:\Eclipse\startup.jar;C:\Program Files\Java\jre1.5.0_06\lib\rt.jar;C:\Program Files\Java\jre1.5.0_06\lib\jsse.jar;C:\Program Files\Java\jre1.5.0_06\lib\jce.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\sunpkcs11.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\activation.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jsp.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-j2ee.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-jaxrpc.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.ecl”
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown Source)
        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:834)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:470)
        ... 37 more
    --- Nested Exception ---
    java.io.IOException: CreateProcess: javac.exe -classpath "C:\Eclipse\startup.jar;C:\Program Files\Java\jre1.5.0_06\lib\rt.jar;C:\Program Files\Java\jre1.5.0_06\lib\jsse.jar;C:\Program Files\Java\jre1.5.0_06\lib\jce.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\sunpkcs11.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\activation.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jsp.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-j2ee.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-jaxrpc.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.ecl”
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown Source)
        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:834)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
        at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:470)
        at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
        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:1721)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1741)
        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.Validator.validate(Unknown Source)
        at com.genuitec.eclipse.wdt.jsp.validation.Validator.validateIfNeeded(Unknown Source)
        at com.genuitec.eclipse.wdt.jsp.validation.Validator.validate(Unknown Source)
        at com.ibm.etools.validation.ValidatorLauncher.start(ValidatorLauncher.java:58)
        at com.ibm.etools.validate.ValidationOperation.launchValidator(ValidationOperation.java:1275)
        at com.ibm.etools.validate.ValidationOperation.internalValidate(ValidationOperation.java:1099)
        at com.ibm.etools.validate.ValidationOperation.validate(ValidationOperation.java:1014)
        at com.ibm.etools.validate.ValidationOperation.run(ValidationOperation.java:731)
        at com.ibm.etools.validate.ValidationBuilder.build(ValidationBuilder.java:155)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
        at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
        at org.eclipse.core.runtime.Platform.run(Platform.java:783)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
    Apr 30, 2006 10:08:27 PM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Env: Compile: javaFileName=/C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/myeclipse-jspcc//org/apache/jsp\MyJsp_jsp.java
        classpath=C:\Program Files\Java\jre1.5.0_06\lib\rt.jar;C:\Program Files\Java\jre1.5.0_06\lib\jsse.jar;C:\Program Files\Java\jre1.5.0_06\lib\jce.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\dnsns.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\sunpkcs11.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\activation.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jsp.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-j2ee.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-jaxrpc.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-jsr77.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-saaj.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\mail.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\namespace.jar;C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\xml-apis.jar;C:\Documents and Settings\Administrator\My Documents\Development\Java\WEB-Apps\Test\WebRoot\WEB-INF\classes;c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_4.1.0\lib\jasper-runtime.jar;c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_4.1.0\lib\jsp-api.jar
        cp=C:\Eclipse\startup.jar
        cp=C:\Program Files\Java\jre1.5.0_06\lib\rt.jar
        cp=C:\Program Files\Java\jre1.5.0_06\lib\jsse.jar
        cp=C:\Program Files\Java\jre1.5.0_06\lib\jce.jar
        cp=C:\Program Files\Java\jre1.5.0_06\lib\ext\dnsns.jar
        cp=C:\Program Files\Java\jre1.5.0_06\lib\ext\sunjce_provider.jar
        cp=C:\Program Files\Java\jre1.5.0_06\lib\ext\sunpkcs11.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\activation.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\javax.servlet.jsp.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-j2ee.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-jaxrpc.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-jsr77.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\jboss-saaj.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\mail.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\namespace.jar
        cp=C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_4.1.1\data\libraryset\1.4\xml-apis.jar
        cp=C:\Documents and Settings\Administrator\My Documents\Development\Java\WEB-Apps\Test\WebRoot\WEB-INF\classes
        cp=c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_4.1.0\lib\jasper-runtime.jar
        cp=c:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.wdt.jsp.debug_4.1.0\lib\jsp-api.jar
        work dir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\myeclipse-jspcc
        extension dir=C:\Program Files\Java\jre1.5.0_06\lib\ext
        srcDir=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\myeclipse-jspcc
        compiler=extJavac
        include=org/apache/jsp/MyJsp_jsp.java
    
    
    
    
    #251425 Reply

    Kapil Kapre
    Member

    You are running Eclipse w/ a Java Runtime Environment which doesnt contain the javac executable. javac is needed for JSP validation (might be triggered on save) so all you need to do is install a Java Development Kit and you’ll be all set. (http://java.sun.com/j2se/1.5.0/download.jsp)

    #251426 Reply

    Max Mirabito
    Participant

    Kapil,

    Thanks for your reply, the strage thing is that the JDK is already loaded. Now here comes the stupid question how do you set the JDK so that the JSP compiler uses it. I do not reacall having to do this in prior installations

    Thanks

    Max

    max

    #251431 Reply

    Kapil Kapre
    Member

    You shouldnt have had to do this each time. Most likely some other program changed your environment variables (JAVA_HOME and PATH ) that eclipse looks for to find the java VM.

    Add this to your eclipse shortcut

    
     -vm "C:\path-to-jdk\bin\javaw.exe"
    
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Error running javac.exe compiler — from Eclipse log file