Tags:Java, Firefox 2.0.0.13, Perhaps JAVA_HOME does not point to the JDK
Hi Experts.
Im developing an application using Eclipse Europa Release 3.3.2 and JBoss 3.2.7. Everything compiles and the application deploy fine. The problem comes when I try to view the application in the browser. The error I got is this:
Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407) org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sbi.arquitectura.web.jsf.config.navegacion.DManipuladorVista.renderView(DManipuladorVista.java:230) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) com.sbi.arquitectura.web.multipart.DMultipartFiltro.doFilter(DMultipartFiltro.java:67) com.sbi.arquitectura.general.web.singlesign.SFiltroSeguridad.doFilter(SFiltroSeguridad.java:153) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
The rare issue is that if I run the JBoss by console the application runs perfect and with the same EAR file.
It runs in Eclipse because in Eclipse you must have defined the JDK installation in order to be able to compile your program.. so Eclipse provides you with all sort of environment u need. outside of eclipse you need to make sure the class path, path and java_home are properly set.