When i build my project using ant , I get a error "Error running javac.exe compiler" I have JDK installed. I have my path variable pointing to javac.
Please help me to fix this issue.
C:\Documents and Settings\kumarkud\workspace\ipm\build-install.xml:145: Error running javac.exe compiler
For example, in Windows, SET PATH=c:/jdk1.5.0_07/bin;%PATH%
2. Are you using the "executable" attribute of the javac task ?
Sachin Sr wrote:Hi,
I'm also facing same issue with this. But i'm getting an error like this:
Error running "C:\Program Files\Java\jdk1.5.0_16\bin\javac" compiler
And i'm using 'executable' & 'compiler' as the parameter to the javac task.
Isn't there an explanatory message as well? Something like "Program not found?"
[javac] <path>\JMSMessageSender.java:25: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,javax.jms.Message
[javac] return builder.buildMessage(session);
I thought this particular java file is unable to compile with the mixed java version that i had. Now i've uninstalled the other Java version and only left with one version i.e., "1.5.0_16".
Does anybody have ever seen this type of error. And Fyi, my ANT build.xml file is able to compile all other JAVA files except this one alone. Your help is greatly appreciated.
But it looks to me like you did supply the missing additional messages after all! It's not having a problem getting javac to run, but rather that you're getting a compilation error. Which is a big difference.
The source code in question is doing something esoteric with a parameterized (generic) type. And to tell the truth, I can't make sense of that message, either. I'd google for the message and see if somewhere out there there's a better explanation of what that message means.
I was able to get rid of this issue by removing the character "<T>T" in the source code and it compiled fine.
But I'm getting another different issue with another java file.
[javac] D:\classpath\com\ts\hostmsg\AggregatorQueueListenerMDB.java:15: illegal start of expression
[javac] 1 error
Any idea how to get rid of this error?