Very Basic question Failed to read class MyJavaClass from input stream

Hi,

I am new to using webMethods. I created a folder “MyJavaClass” and have a Java service inside that. I compiled it and can see the class files in “…..\code\classes”. When I try to run my Java Serviceby putting input parameters, getting an error “Failed to read class “MyJavaClass” from input stream”.

Any idea what I am doing wrong?

Thanks
Gautham

Hi,

In extended settings, look for the parameter:
watt.server.compile=javac -classpath {0} -d…
modify it by adding the path to your java compiler as follows:
watt.server.compile=JDK_directory/bin/javac -classpath…

You should note that the java version used should NOT be 1.5.

Hope this helps,

For a complete guide:

Specify the Compiler Command
If you want Integration Server to use a JDK other than the default JDK to compile Java
services developed using Developer, follow these steps:
1 Start Integration Server and open Integration Server Administrator.
2 Go to the Settings > Extended page and click Show and Hide Keys. Integration Server
Administrator displays a list of Integration Server configuration properties you can
change using Integration Server Administrator.
3 Select the check box next to the watt.server.compile and watt.server.compile.unicode
properties.
4 Click Save Changes. Integration Server Administrator displays the selected properties
in the Extended Settings box.
5 Click Edit Extended Settings. In the Extended Settings box, set the properties as follows:
�� watt.server.compile=JDK_directory/bin/javac -classpath {0} -d
{1}{2}
�� watt.server.compile.unicode=JDK_directory/bin/javac
-encoding Unicode -classpath {0} -d {1}{2}
6 Click Save Changes.
7 Restart Integration Server.