Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Saturday, July 24, 2010

solution for compilation error problem with JDK 1.5 com.sun.tools.javac.code.Symbol$CompletionFailure

Hello ,

I was trying build application to used on JBOss using maven 2. Application involves lots of dependencies
while building application with maven 2 ,build was giving following errror.

[INFO] Compilation failure
Failure executing javac, but could not parse the error:
An exception has occurred in the compiler (1.5.0_15). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include
your program and the following diagnostic in your report. Thank you.
com.sun.tools.javac.code.Symbol$CompletionFailure: file javax\jws\WebService.class not found


After spending lots of hours searching on internet as well as trial and error I found a workaround.

1. Locate the jar file which contains this class. In my case it was jboss-jaxws-4.2.1.jar
2. Copy the jar file to following path $JDK1.5 path\jre\lib\ext
Compilation should be successful now.

I know this is not a elegant solution but it works

Friday, March 16, 2007

Guys
We are facing a problem of compilation messages of JDK are displayed in Norwegian. I am suggesting of workaround for this problem.
If you are using a Linux then export "LANG = en_US" in your .profile file. Then default language for your profile changes to US English and all the compilation messages will be in English.
command :
export LANG=en_US
On Windows machine for default command prompt above trick will not work. But there is another option as download the cygwin software (http://cygwin.com/) and compile your programs from cygwin command prompt by exporting the LANG environment variable to get messages in English.
Also I am attaching a PDF which suggests changing the default language from windows machine. http://www.endnote.com/support/helpdocs/Changing%2520Regional%2520Settings%2520in%2520Windows%2520XP.pdf
After performing steps , IE started displaying messages in English but the windows options are shown in Norwegian.
Hope this will help.