• Register
0 votes
28 views

Problem:

When i am trying run an application in JBOSS 4.0 via eclipse 3.3 i am getting the below exception:

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

I had to set the environment variables :

JAVA_HOME C:\Program Files\Java\jdk1.5.0_04

PATH C:\Program Files\Java\jdk1.5.0_04\bin

But when i check in the Ant>Runtime>GlobalEntries its pointing to C:\Program Files\Java\jdk1.5.0_04\lib\tools.jar please advice why this error is coming and how to fix. I am able to execute the same application with tomcat 5.0 any one can help me plz

10 7 2
6,050 points

1 Answer

0 votes

Answer:

Its always recommended that you do not install Java or any Java applications including JBoss,
in a folder containing a space in its path name.
I would recommend that you move the JDK installation to some place else

(Ex: C:\Java\jdk1.5.0_04) 

and set the JAVA_HOME appropriately. See if that helps. Let me know if it is workig.

11 6 4
34,930 points

Related questions

0 votes
1 answer 82 views
82 views
Problem : I am getting bellow compiler error error: could not find or load main class com.sun.tools.javac.main
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 1.1K views
1.1K views
Problem : I have already placed the JSTL JAR file in the WEB-INF/lib directory. But still, the JSP can't resolve the taglib. I get the below error: Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
asked Oct 19, 2019 peterlaw 6.9k points
0 votes
1 answer 43 views
43 views
Problem : I am trying to run some of the unit tests in the C# Windows Forms application (Visual Studio 2005), however I am facing the below error : System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken= ... version 1.2.0.203. Any pointers on how can I figure out what is trying to reference the old version of my DLL file?
asked Dec 23, 2019 alecxe 7.5k points
1 vote
1 answer 31 views
31 views
Problem: When i am trying run an application in JBOSS 4.0 via eclipse 3.3 i am getting the below exception: 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 I had to set the environment ... coming and how to fix. I am able to execute the same application with tomcat 5.0. Can anybody help me to solve out this problem.
asked Apr 8 LizzyM 6.1k points
0 votes
1 answer 16 views
16 views
Problem: I tried to run java in my system but it shows : Java is not recognized as an internal or external command, Java is not internal or external command , Java command not working. I will get this type of errors when I do not configure java environment variables. I have ... thing..but I don't no what to do next anyone hlep me about me i can i configure it after installing it. Can anyone help?
asked Mar 21 LizzyM 6.1k points