I saw in the documentation that I can bulding my with my Own IDE.
“… if you build a Java service in your own IDE, you need to use a utility called jcode to compile your service and generate the necessary files in the namespace…”
Where is jcode??
Does someone have a stupid example (simply a System.out.println())??
Jcode is available in IS server home/bin directory. Just give the package you want to build with a switch -makeall, will build all your codes and create required nodes.
Thk you for your answer, but I’m new with WM. What’s the next step? Shoud I need to compile my stupid java code or the jcode.sh will? Does I need to create something in WM or not?
I don’t know jcode at all, and it may be more efficient… But if you want to avoid it, you can simply copy-paste your code from your IDE (say, Jbuilder).
If you specify input/output first and use Tools->Generate code->for implementing this service, you’ll get the right pipeline sections. Paste this into the service, then simply insert your code between the pipeline sections and direct your output variables to the appropriate lines of the output pipeline section.
Oh, and remember any necessary imports in the shared tab.
I develop a jar containing all my goodies using IntelliJ and drop it into MyPackage/code/jars. The the Java services I created with Developer are very slim wrappers that get/put from the pipeline and do parameter/type checking.
hi,
Check your Memory settings in server.sh or bat file. You should be having sufficient memory for JVM as well as swap memory for your system.
We had same problem, because we set Max and Min as 1GB and no memory left over for swap. we reduced it to 1/2 GB and then we haven’t seen this error
You need to modifiy the server.sh. Locate the two line containned javac and modify it to point to your javac compiler. IMPORTANT before doing this stop IS, modify the file and restart IS
If c:/Java/jdk1.3.1_06/bin/javac runs your Java compiler, than it should work. This is the command line used by IS to compile non-Unicode java files (there is a similar watt.server parameter for the unicode compile command line).
I never change server.bat/sh (just continue to run with the JRE that installs with the product). I’ve never seen “Unable to locate or start compiler” that didn’t get fixed by setting that command line.
As far as developing within an IDE is concerned. The 4.6 ISDeveloperGuide page 485 describes the code/jars directory. This is part of a package, so the jars are on the package class loader, which is refreshed each time the package is loaded/reloaded.
The steps for integrating any 3rd party jar into a package are the same:
copy the jar into code/jars
create a Java service in Developer.
do an import in the Java service of a Java class that is in your jar.
use that class in your service.
When you edit a Java serivce via Developer, the package class loader is rebuilt, so your jar is reloaded as well (but startup services aren’t run each time, so if you have stuff initialized by startup services you have to explicitly reload the package).
reading this message save me a lot of time to solve the error message…
“com.wm.app.b2b.server.ServiceException: [ISS.0014.9116] Unable to locate or start compiler”
Always use the Search functionality of this site,lot of threads had discussed on this common problem.you will be surprised after seeing the results.It will be the fast way of resolving issues.
I have problem saving Java service. wM 4.6 complains about have class name same as package name. The following is full path to my Java service: EDI_DB.EDI_DB:submitData. The first EDI_DB is package name, the second EDI_DB is folder name and service name is submitData. The folder EDI_DB (it is a name of Java class on wM IS) has all service written in Java. And they worked fine but I just have a lot of service there now and it started to complain about the package/class name conflict. If I create another folder and save submitData Java service there, no problem…Did anybody have something similar?