Tried to save a java service in Developer, which invoked the compiler and got the following message:
The source was saved but not compiled.
com.wm.app.b2b.server.ServiceException:
[B2BSERV.0014.9116]Unable to locate or start compiler
Details:
com.wm.app.b2b.server.ServiceException: [B2BSERV.0014.9116] Unable to locate or start compiler
at wm.server.ns._compile(ns.java:3527)
at wm.server.ns.buildClass(ns.java:1205)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:64)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:166)
at com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:457)
at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
at java.lang.Thread.run(Unknown Source)
Is the problem due to lack of JDK being installed on the server machine - same where webMethods server is installed, or should it be installed on the local machine where developer software is installed?
Thanks.
Install JDK. I had success with 1.3.1_06 (Note WM prefers 1.1.8 because of a new Java language feature in Java2: you cannot compile a class C.java in package p, if you define a package “p.C” in which you put another class, say D.java).
Assuming you are using a Windows box, change the server.bat as follows:
SET JAVA_ROOT=C:\webMethods\B2BServer4\jvm
=>
SET JAVA_ROOT=C:\jdk1.3.1_06
Under UNIX, modify server.sh instead.
The compiler is used to compile Java services on the IS server machine. IS uses a command line defined in the server.cnf file. You can set the value using IS UI Settings > Extended page. I use:
I am also facing the same problem.
I tried out setting the compiler path in settings-extended field(watt.server.compile , watt.server.compile.unicode ).
I also tried with change in server.sh for JAVA_DIR field settings as well as in server.cnf .
The developer is giving me the error as unable to locate or start compiler.
One more problem I am facing is whatever changes I made in server.sh ,sever.cnf the Java Home directory on IS admin console(about link) is not getting changed .