Hi all I created a webservice which i could successfully deploy. but when i tried to compile my client it is showing an error as follows. -------------------- HoroscopeClient.java:14: cannot access staticstub.HoroscopeInterface bad class file: .\build\staticstub\HoroscopeInterface.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. HoroscopeInterface hface=(HoroscopeInterface)stub; 1 error ------------------- ******************* following are the pakages involved in my webservice
I have a directory named HoroscopeWS which contatins the following
Did you use Java 5 to compile that class, and are now using Java 1.4 to run it? I think class file version 49 is the one used by Java 5, while 48 is the one Java 1.4 uses.
Then maybe you used compiler options for different language versions (i.e. same javac, but emitted code for 1.3 and 1.4, or 1.4 and 1.5). That message always means the class files aren't for a language version the JVM was expecting to see.