Cpptasks - working hello world jni example on linux

I have a working hello world example working on linux that uses cpptasks for the build. I'll post it here as I don't see any info on this out there. I hope this is helpful for you.
-Todd
Contents:
- build.xml
- helloworld.c
- helloWorldCWrapper.java
- directory structure
- environment vars
- output : $ant build
- output : $ant run
- References
build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="myJni">
     <property name="build" value="build"/>
     <property name="src" value="src"/>
     <property name="stub" location="stub"/>
     <property environment="os"/>
<!-- Load the cpptasks task -->
<taskdef resource="cpptasks.tasks"/>
<typedef resource="cpptasks.types"/>
     <path id="project.classpath">
<pathelement location="${build}"/>
<pathelement location="."/>
</path>
     <target name="init">
          <mkdir dir="${build}"/>
          <mkdir dir="${stub}"/>
</target>
<target name="clean" depends="init">      
          <delete>
               <fileset dir="${build}">
               <include name="*.class"/>
               </fileset>
               <fileset dir="${stub}">
               <include name="*.h"/>
               <include name="*.c"/>
               </fileset>
          </delete>
     </target>
<target name="jni-compile" description="--> create the jni h/c files">
     <javah class="com.bigdog.jni.helloWorldCWrapper" destdir="${stub}" verbose="yes" force="yes">
          <classpath refid="project.classpath"/>
     </javah>      
</target>
     <target name="build" depends="init, java-compile, jni-compile, c-compile">
</target>
     <target name="java-compile">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac destdir="${build}">
<src path="${src}"/>
<classpath refid="project.classpath"/>
</javac>
     </target>
<target name="c-compile" description="--> compile c code">
<cc link="shared" outtype="shared" multithreaded="true" optimize="speed"
objdir="${build}" outfile="${build}/libhelloworld">
<compilerarg value="-Wall"/>
<compilerarg value="-D_JNI_IMPLEMENTATION_"/>
<compilerarg value="-fno-strict-aliasing"/>
<linker name="g++">
          <linkerarg value="-olibhelloworld.so"/>
     </linker>
<fileset dir="${src}" includes="helloworld.c"/>
     <includepath>
          <path path="${os.JAVA_HOME}/include"/>
          <path path="${os.JAVA_HOME}/include/linux"/>
          <path path="${basedir}/stub"/>
          <path path="${build}"/>
     </includepath>
</cc>
</target>
     <target name="run">
<echo message="${ant.project.name}: ${ant.file}"/>
          <echo message="java.library.path = ${java.library.path}"/>
          <echo message="LD_LIBRARY_PATH = ${os.LD_LIBRARY_PATH}"/>
<java classname="com.bigdog.jni.helloWorldCWrapper">
<classpath refid="project.classpath"/>
</java>
     </target>
</project>
helloworld.c
#include <jni.h>
#include <stdio.h>
#include "com_bigdog_jni_helloWorldCWrapper.h"
JNIEXPORT void JNICALL
Java_com_bigdog_jni_helloWorldCWrapper_print(JNIEnv *env, jobject obj)
          printf("Hello world :o)\n");
          return;
helloWorldCWrapper.java
package com.bigdog.jni;
public class helloWorldCWrapper {
     private native void print();
     public static void main(String[] args) {
          new helloWorldCWrapper().print();               
     static {
          System.loadLibrary("helloworld");
directory structure
./.project
./.classpath
./build
./build/com
./build/com/bigdog
./build/com/bigdog/jni
./build/com/bigdog/jni/helloWorldCWrapper.class
./build/history.xml
./build/helloworld.o
./build/libhelloworld.so
./build/dependencies.xml
./stub
./stub/com_bigdog_jni_helloWorldCWrapper.h
./src
./src/com
./src/com/bigdog
./src/com/bigdog/jni
./src/com/bigdog/jni/helloWorldCWrapper.java
./src/helloworld.c
./bin
./bin/helloworld.c
./build.xml
./build-user.xml
./history.xml
environment vars
user@machine:~/working/eclipse_proj/myJini$ export | grep LD
declare -x LD_LIBRARY_PATH="/home/user/working/eclipse_proj/myJini/build"...
Note: I had to modify the LD_LIBRARY_PATH in my .bashrc file. Modifying
it from the command line seemed to have no effect.
output : $ant build
Buildfile: /home/user/working/eclipse_proj/myJini/build.xml
init:
java-compile:
[echo] myJni: /home/user/working/eclipse_proj/myJini/build.xml
[javac] Compiling 1 source file to /home/user/working/eclipse_proj/myJini/build
jni-compile:
[javah] [Search path = /home/user/bin/jdk1.5.0_03/jre/lib/rt.jar:/home/user/bin/jdk1.5.0_03/jre/lib/i18n.jar:/home/user/bin/jdk1.5.0_03/jre/lib/sunrsasign.jar:/home/user/bin/jdk1.5.0_03/jre/lib/jsse.jar:/home/user/bin/jdk1.5.0_03/jre/lib/jce.jar:/home/user/bin/jdk1.5.0_03/jre/lib/charsets.jar:/home/user/bin/jdk1.5.0_03/jre/classes:/home/user/working/eclipse_proj/myJini/build:/home/user/working/eclipse_proj/myJini]
[javah] [Loaded /home/user/working/eclipse_proj/myJini/build/com/bigdog/jni/helloWorldCWrapper.class]
[javah] [Loaded /home/user/bin/jdk1.5.0_03/jre/lib/rt.jar(java/lang/Object.class)]
[javah] [Forcefully writing file /home/user/working/eclipse_proj/myJini/stub/com_bigdog_jni_helloWorldCWrapper.h]
c-compile:
[cc] Starting dependency analysis for 1 files.
[cc] 0 files are up to date.
[cc] 1 files to be recompiled from dependency analysis.
[cc] 1 total files to be compiled.
[cc] Starting link
build:
BUILD SUCCESSFUL
Total time: 2 seconds
output : $ant run
Buildfile: /home/user/working/eclipse_proj/myJini/build.xml
run:
[echo] myJni: /home/user/working/eclipse_proj/myJini/build.xml
[echo] java.library.path = /home/user/bin/jdk1.5.0_03/jre/lib/i386/server:/home/user/bin/jdk1.5.0_03/jre/lib/i386:/home/user/bin/jdk1.5.0_03/jre/../lib/i386:/home/user/working/eclipse_proj/myJini/build:/usr/local/qt/lib:/usr/local/qt/lib:/usr/local/qt/lib:/usr/local/qt/lib:/mnt/bea/p4/src910_150/bea/weblogic90/server/native/linux/i686:/lib:/lib/i686:/usr/lib:/usr/openwin/lib
[echo] LD_LIBRARY_PATH = /home/user/bin/jdk1.5.0_03/jre/lib/i386/server:/home/user/bin/jdk1.5.0_03/jre/lib/i386:/home/user/bin/jdk1.5.0_03/jre/../lib/i386:/home/user/working/eclipse_proj/myJini/build:/usr/local/qt/lib:/usr/local/qt/lib:/usr/local/qt/lib:/usr/local/qt/lib:/mnt/bea/p4/src910_150/bea/weblogic90/server/native/linux/i686:/lib:/lib/i686:/usr/lib:/usr/openwin/lib
Hello world :o)
BUILD SUCCESSFUL
Total time: 1 second
References:
http://public.cabit.wpcarey.asu.edu/janjua/java/jni/
http://bleaklow.com/blog/archive/000162.html
http://sourceforge.net/projects/ant-contrib
http://sourceforge.net/project/showfiles.php?group_id=36177&package_id=28636

VC++ works just fine.
I use the IDE rather than command-line processing. I create a "dll" project, and implement the functions defined by running javah.

Similar Messages

  • Hello world API example

    I have IFS installed on a UNIX server and can run the helloworld API example (from the developers guide.pdf) just fine locally on that machine.
    Now, I would like to move the helloworld class file that I created and the IFS API class files to another machine to test the API from a remote machine. I did this and also moved the IfsDefault.properties file. But, when I try to run the hello world example on another machine, I get a MissingResourceException as it cannot find the IfsDefault resource bundle.
    Do I need to install any other IFS components on the remote computer other than the API class files (adk.jar, and repos.jar)?
    Thanks
    Steve Probst

    See the thread with title:
    Attn: The correct way to connect to the repository.

  • Hello World @OneToMany in a WebService Session Bean

    Ladies and Gents,
    I'm trying to setup a simple @OneToMany Hello World type example using SOAP based Web Services.  The setup is fairly straightforward: two entities in a parent/child relationship.  Orders is the parent.  OrderRows is the child.  ALL of this was setup with wizards using JDeveloper 11g.  I did not modify the code other than changing the name of the session bean.
    The problem occurs when I try to express this relationship by including the @OneToMany annotations and the related List operations (set, add, remove) in the Orders.java file.  If I comment those out and do not return the associated List containing OrderRows, all is well.  Include the @OneToMany and nothing returns.  This is probably some kind of simple configuration error, but the problem is I'm not getting any errors in my console when I right-click my session bean and select "Test Web Service", choose the getOrdersFindAll() operation, and click "Send Request".  All I get is a nice little snarky message saying "No content to display."  So I'm just sitting here ... at 2 AM in the morning ... wondering "Whiskey Tango Foxtrot?"
    I've looked over some sites such as http://biemond.blogspot.com/2011/08/expose-your-session-bean-with-jax-ws.html and read through the Java EE 7 tutorial http://docs.oracle.com/javaee/7/tutorial/doc/jaxws.htm#BNAYL all to no avail. 
    Does anyone have any ideas?  Or would anyone have some good websites to get some practical examples?
    MySessionBean.java
    import java.util.List;
        import javax.annotation.Resource;
        import javax.ejb.SessionContext;
        import javax.ejb.Stateless;
        import javax.jws.WebService;
        import javax.persistence.EntityManager;
        import javax.persistence.PersistenceContext;
        @Stateless(name = "MySession", mappedName = "HelloWs-HelloService-MySession")
        @WebService(name = "MySessionBeanService", portName = "MySessionBeanServicePort")
        public class MySessionBean {
            @Resource
            SessionContext sessionContext;
            @PersistenceContext(unitName = "HelloService")
            private EntityManager em;
            public MySessionBean() {
            /** <code>select o from Orders o</code> */
            public List<Orders> getOrdersFindAll() {
                return em.createNamedQuery("Orders.findAll").getResultList();
    My Orders.java Entity
      import java.io.Serializable;
        import java.math.BigDecimal;
        import java.util.List;
        import javax.persistence.Column;
        import javax.persistence.Entity;
        import javax.persistence.Id;
        import javax.persistence.NamedQueries;
        import javax.persistence.NamedQuery;
        import javax.persistence.OneToMany;
        @Entity
        @NamedQueries( { @NamedQuery(name = "Orders.findAll", query = "select o from Orders o")     })
        public class Orders implements Serializable {
            @Id
            @Column(name = "ORDER_ID", nullable = false)
            private BigDecimal orderId;
            @OneToMany(mappedBy = "orders")
            private List<OrderRows> orderRowsList;
            public Orders() {
            public Orders(BigDecimal orderId, String refName) {
                this.orderId = orderId;
            public BigDecimal getOrderId() {
                return orderId;
            public void setOrderId(BigDecimal orderId) {
                this.orderId = orderId;
            public List<OrderRows> getOrderRowsList() {
                return orderRowsList;
            public void setOrderRowsList(List<OrderRows> orderRowsList) {
                this.orderRowsList = orderRowsList;
            public OrderRows addOrderRows(OrderRows orderRows) {
                getOrderRowsList().add(orderRows);
                orderRows.setOrders(this);
                return orderRows;
            public OrderRows removeOrderRows(OrderRows orderRows) {
                getOrderRowsList().remove(orderRows);
                orderRows.setOrders(null);
                return orderRows;
    My persistence.xml.  Note that while the double jdbc looks funky, I'm pretty sure that's not the source of the problem since removing the @OneToMany annotation and related methods works.
        <?xml version="1.0" encoding="windows-1252" ?>
        <persistence xmlns="http://java.sun.com/xml/ns/persistence"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
                 version="2.0">
          <persistence-unit name="HelloService">
            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
            <jta-data-source>java:/app/jdbc/jdbc/HelloConnDS</jta-data-source>
            <class>helloservice.Orders</class>
            <class>helloservice.OrderRows</class>
            <properties>
              <property name="eclipselink.target-server" value="WebLogic_10"/>
              <property name="javax.persistence.jtaDataSource"     value="java:/app/jdbc/jdbc/HelloConnDS"/>
            </properties>
          </persistence-unit>
        </persistence>
    I've also put this question up on stack overflow at http://stackoverflow.com/posts/17769621

    Hi, Thomas!
    For establishing a connection to R/3 you could either Enterprise Connector (as described in <a href="http://help.sap.com/saphelp_nw04/helpdata/de/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm">Enterprise Connector</a>) or the SAP Resource Adapter (see <a href="http://help.sap.com/saphelp_nw04/helpdata/de/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm">Java Resource Adapter</a>) - the JCA way.
    Regards,
    Thomas

  • Cross compile "Hello World" C++

    Hi, I have been trying to search on the internet for how to cross complie a simple "Hello World" program on a linux box so that you can exeute it later on an windows computer... If anyone knows about this please let me know!
    And I looking for how to do it from the commandline....
    Best Regards, Robert

    Hi.
    You should download mingw32 from community.
    I have successfully cross compiling my qt application using this package and mingw32-qt from AUR.
    For example of compiling a main application. Please refer to below URL.
    http://www.gentoo-wiki.info/HOWTO_MinGW
    I haven't try compiling the Winmain routine. But it is similar in Arch and you should use i486-mingw32-gcc to compile.

  • Anybody can suggest quick sample 'Hello World' with ADF/JSF to deploy on WC

    We are using JDeveloper 11g, and Web Center 10.1.3.2.
    We have Oracle Portals 10.1.2.0.2
    We want to develop a portlet and deploy it to WC 10.1.3.2 to use it in Portals 10.1.2.0.2.
    Could anybody suggest any working "Hello World' sample with ADF/JSF to deploy on WC 10.1.3.2 WSRP.
    TIA

    Just to clarify. Oracle Portal 10.12.0.2 did not support WSRP based portlets (this was introduced in 10.1.4 or Portal) as such you would need to develop a JPDK based portlet in order to use it in both Portal 10.1.2.0.2 and WebCenter. If you upgrade the portal to 10.1.4 you will be able to use a WSRP 1.0 based portlet in both products (WebCenter also supports the draft WSRP2.0 extensions so make sure that you register the correct WSDL file)
    If you are trying to use JSF components within the Portlet itself you will need to use the JSF Portlet Bridge which accounts for the differences in lifecycle between JSF and WSRP.

  • Hello World XML/XSL example not working in IE

    I am trying to get the "Hello World" XML/XSL example to work in IE.
    Could anyone help me out?
    The code follows:
    hello.xml
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="hello.xsl"?>
    <hello-world>
    <greeter>An XSLT Programmer</greeter>
    <greeting>Hello, World!</greeting>
    </hello-world>
    hello.xsl
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:template match="/hello-world">
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <H1><xsl:value-of select="greeting"/></H1>
    <xsl:apply-templates select="greeter"/>
    </BODY>
    </HTML>
    </xsl:template>
    <xsl:template match="greeter">
    <DIV>from
    <I><xsl:value-of select="."/></I>
    </DIV>
    </xsl:template>
    </xsl:stylesheet>
    Both files are in the same directory.
    When hello.xml is opened in IE, the output displayed is just, "from".
    What's wrong, and where?
    Please help!
    - Edwin.

    Hi edwinwaz,
    In response to your question, pls refer to this url
    http://www.w3schools.com/xsl/el_template.asp
    and take a look at the "note" in red.
    It says that IE5.X have non-standard behavior on the element <xsl:template>
    In addition, I have tested your code it works fine.
    Just to add something on your code here.
    I noticed that you do this
    <xsl:apply-templates select="greeter"/>
    and then in another template you do this
    <xsl:template match="greeter">
    <!-- code -->
    </xsl:template>
    In this case, it does work because "greeter" is a top-level element but if "greeter" is anything underneath the top-level element. It won't work.
    Actually, I discovered this after taking a look at your example and
    I was surprised that the code above worked and then I did some testing and discovered this.
    I am learning XML too now... So, I am happy to know this :).
    regards

  • Problem with JNI hello world

    I found some tutorial on SUN site on how to use JNI. I'm using Eclipse to compije Java and C (via Cygwin) files. Here are complete files:
    Hello.java:
    class Hello
         public native void sayHello();
         static
              try
              System.loadLibrary("hello");
              catch(Exception e)
                   System.out.println("exc");
         public static void main(String[] args)
              Hello h = new Hello();
              h.sayHello ();
    }Hello.c:
    #include <mingw/_mingw.h> //because there are some types needed for JNI
    #include <jni.h>
    #include "Hello.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_Hello_sayHello
      (JNIEnv *env, jobject obj)
         printf("Hello world!\n");
         return;
    }Makefile:
    hello.dll : Hello.o Hello.def
         gcc -g -shared -Wl,--kill-at -o hello.dll Hello.o hello.def
    Hello.o : Hello.c Hello.h
         gcc -c -g -I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32" Hello.c -o Hello.o
    Hello.h : Hello.class
         javah -jni Hello
    clean :
         rm Hello.h
         rm Hello.o
         rm hello.dllHello.def
    EXPORTS
    Java_Hello_sayHelloEverything goes well, but when I run java program it does nothin (it should print message, but it just exit without any error).I'm sure that it's something stupid, but I cant see what. Can anyone tell me what am I doing wrong?
    Thenks.

    Answer 1: yes, there was no problem. I compiled and started simple 'hello world' program from Cygwin and from WinXP console, and it worked well.
    Answer 2: This is weird, I changed code to this:
    Hello.java:
         public native int getInt();
              System.out.println("Returned int is " + h.getInt());Hello.c:
    JNIEXPORT jint JNICALL Java_Hello_getInt
      (JNIEnv *env, jobject obj)
         return 25;
    }It does not print anything. I started this program from Cygwin and from WinXP console, and from Eclipse. Only if I debug in Eclipse (step by step) I get:
    Returned int is 25and still I don't get Hello string printed (even if I go step by step). It looks like cygwin has some problem with OS. Do you have any idea what to do, I'm a bit confused?
    Thank you.
    Message was edited by:
    zly

  • Problem including jdk.dio into Hello World Example

    Hi
    I followed the Hello World Example and this worked on my raspberry pi. Then I tried to use jdk.dio to access some hardware via GPIO unfortunately then the build of the Deployment Package fails with :
    # 2/7/15 4:35:16 PM CET
    # Eclipse Compiler for Java(TM) v20140902-0626, 3.10.0, Copyright IBM Corp 2000, 2013. All rights reserved.
    1. ERROR in .../HelloOsgi.java (at line 9)
    import jdk.dio.ClosedDeviceException;
    ^^^^^^^
    The import jdk.dio cannot be resolved
    2. ERROR in .../HelloOsgi.java (at line 10)
    import jdk.dio.Device;
    ^^^^^^^
    The import jdk.dio cannot be resolved
    It builds without an error inside of eclipse. I added the dependencies to the manifest
    Manifest-Version: 1.0
    Import-Package: jdk.dio;version="1.0.0",
    jdk.dio.gpio;version="1.0.0",
    jdk.dio.spibus;version="1.0.0",
    org.osgi.service.component;version="1.2.0",
    org.slf4j;version="1.6.4"
    Service-Component: OSGI-INF/component.xml
    and to the build.properties
    output.. = bin/
    bin.includes = META-INF/,\
    OSGI-INF/
    source.. = src/
    additional.bundles = org.eclipse.osgi.services,\
    slf4j.api,\
    org.eclipse.kura.api,\
    jdk.dio
    What did I miss to do, so that the 'jdk.dio' can be resolved when building Deployment Package?
    Thanks and Regards
    - Franz
    (*)eclipse.github.io/kura/doc/hello-example.html

    I downloaded the "Developer's Workspace (with Web UI) " (user_workspace_archive_1.1.0.zip) from Kura 1.1.1 Extended Downloads (eclipse.org/kura/downloads.php) and imported this into my Eclipse workspace on my development machine. I checked the ZIP file it contains the jdk.dio_1.0.0.jar as stated in my Manifest and not 1.0.1 as you mentioned.
    I also checked on the target (raspberry pi) where I installed the "Raspbian (No, Net, with Web UI) - Stable" from Kura 1.1.1 Extended Downloads. Also here it is jdk.dio_1.0.0.jar under /opt/eclipse/kura/plugins.
    I don't think its a Version problem since Eclipse can build the code and finds all the dependencies. It is just when I try to export a 'Deployable plug-ins and fragments' or try to create the Deployment Package that the build fails.
    I found a workaround for the 'Deployable plug-ins and fragments' there I have to check the option 'Use class files compiled in the workspace' and the I can export it since the export does not need to build it just uses the already built classes from eclipse. I did not find such an option for the creation of the Deployment Package.
    Anyway I would like to be able to build without an IDE.
    What is the suggested approach to build a Deployment Package for Kura without the IDE so it could be integrated in some kind of a CI process?
    Is maven/tycho the way to go?
    Any help or hint is appreciated.
    Thanks Regards
    - Franz

  • Getting ConnectException in linux with Hello World socket program

    Hello
    i'm running a hello world application that uses sockets ( [found here|http://blog.taragana.com/index.php/archive/understanding-java-simplified-hello-world-for-socket-programming/] ) . I'm running it using a windows machine and a linux machine. When the windows machine is the server, and linux the client, no problem, the application works fine. But when the server is linux and the client is in windows i got a
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
    in the linux machine i've checked the port being used and it seems to be listening
    logan@logan-desktop:~$ netstat --listening |grep 6500
    tcp6 0 0 [::]:6500 [::]:* LISTEN
    i've also tried changing the port and i got the same error
    and i have to say that there is no firewall installed in the linux machine and in the windows machine i disabled the firewall but i'm still getting the same error
    what else should i check? or any clue about what could be happening?
    thank you in advance
    any help would be appreciated

    puki_el_pagano wrote:
    i'm running a hello world application that uses sockets ( [found here|http://blog.taragana.com/index.php/archive/understanding-java-simplified-hello-world-for-socket-programming/] ) . I'm running it using a windows machine and a linux machine. When the windows machine is the server, and linux the client, no problem, the application works fine. But when the server is linux and the client is in windows i got a
    java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
    in the linux machine i've checked the port being used and it seems to be listening
    logan@logan-desktop:~$ netstat --listening |grep 6500
    tcp6 0 0 [::]:6500 [::]:* LISTEN
    i've also tried changing the port and i got the same error
    and i have to say that there is no firewall installed in the linux machine Are you absolutely sure?
    what else should i check? On the windows box
    open a cmd window
    C:> telnet linuxbox 6500

  • Task Manager Process failing along w/ Hello World example

    Hello Edwin,
    Thank you very much for the word document on how to install Oracle BPEL into the oracle database. I was able to install according to your word document into my oracle 10g database. I have other problems though. When starting up the BPEL Process Manager, it gives me the following error message in the console:
    java.lang.NoClassDefFoundError: org/apache/xerces/xni/XNIException
    I guess this in turn leads to the TaskManager process failing as it has a yellow exclamation point next to it in the BPEL Console. The oc4j console window later displays this error message:
    04/08/07 13:25:01 java.lang.ClassNotFoundException: bpel._1_0.TaskManager__BPEL4WS_BIN
    Error while creating process.
    An error has occurred while attempting to instantiate the class "bpel._1_0.TaskM
    anager__BPEL4WS_BIN" for the process "TaskManager" (revision "1.0"). The exception reported was: bpel._1_0.TaskManager__BPEL4WS_BIN
    Please try recompiling your BPEL process again. The current BPEL process archive "TaskManager" may have been compiled with an older version of "bpelc".
    An error message similar to this occurs when I try and work through the "Hello World" tutorial. Any idea why these error messages are occuring? "classnotfound" exceptions tell me there is a classpath issue. Thanks for your help.
    Kenny R.

    Edwin,
    Nevermind. I fixed it. I just copied the xercesImpl.jar file to the %ORABPEL_HOME%/system/appserver/oc4j/j2ee/home/applib directory and the processes function fine now. Thanks. Is this a bug that I found? Or was something messed up with my initial installation?

  • System.out.println - Hello World Example

    Hi All
    I am using Apache Tomcat and trying t produce a simple output to the browser. Cannot get System.out.println to work. See code and out below:
    begin code
    <HTML>
    <HEAD><TITLE>hello jsp</TITLE></HEAD>
    <BODY>
    <%@ page language='java' contentType='text/html' %>
    <%
    String message = "Hello World";
    message = message + "\nAFTER";
    System.out.println("BEFORE");
    %>
    <%= (message) %>
    </BODY>
    </HTML>
    END code
    --begin browser output
    Hello World AFTER
    end browser ouput
    Would be grateful if someone could explain why the System.out.print statement cannot be seen in the browser output.
    many thanks
    Naresh

    System.out prints to System.out. What that is depends:
    In applets, (which the OP was not talking about) it is the Java Console.
    In JSP, it's the same as any application by default.
    You can change in Java what System.out prints to, but you don't often do this. But in JSP it doesn't print to the browser. JSP is not CGI, which does you the standard out as the destination for written data.

  • First WDA (Hello World) not working in IE but looks good in FireFox.

    Hi,
    My Hello World App in WD  is not working in Browser IE. So I can't TEST it in SE80. It only shows a blank page and a javascipt error...
    Taking the same URL in Firefox works just fine....
    BSP apps is working just fine in both browsers.
    sapr3d.korkow is inside a "single label domain"
    http://sapr3d.korkow/sap/bc/webdynpro/sap/zwd_test2?sap-system-login-basic_auth=X&sap-client=300&sap-language=EN
    I have looked at the Config Manuals for WDA. FQDN etc.
    RZ10 now looks like this
    icm/host_name_full                          sapr3d.korkow
    rdisp/rfc_min_wait_dia_wp                   5
    rsdb/ntab/irbdsize                          8000
    rsdb/ntab/ftabsize                          35000
    rsdb/esm/buffersize_kb                      6144
    rsdb/cua/buffersize                         5000
    zcsa/installed_languages                    DEFKNOV
    abap/buffersize                             400000
    DIR_EPS_ROOT                                F:\usr\sap\trans\EPS
    DIR_TRANS                                  
    $(SAPTRANSHOST)\sapmnt\trans
    SAPTRANSHOST                                sapr3d
    SAPSYSTEMNAME                               U01
    SAPGLOBALHOST                               sapr3d
    SAPSYSTEM                                   00
    INSTANCE_NAME                               DVEBMGS00
    DIR_CT_RUN                                  $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64
    DIR_EXECUTABLE                              $(DIR_INSTANCE)\exe
    PHYS_MEMSIZE                                9059
    rdisp/wp_no_dia                             16
    rdisp/wp_no_btc                             4
    rdisp/max_wprun_time                        900
    icm/keep_alive_timeout                      180
    icm/server_port_0                           PROT=HTTP,PORT=80,TIMEOUT=0,PROCTIMEOUT=180
    ms/server_port_0                            PROT=HTTP,PORT=81$$
    rdisp/wp_no_enq                             1
    rdisp/wp_no_vb                              4
    rdisp/wp_no_vb2                             2
    rdisp/wp_no_spo                             1
    In my hosts file I have:
    127.0.0.1       localhost
    178.18.8.15     SAPR3D
    Any Pointers ?
    Br,
    Martin

    Hi,
    I'm using IE 7.0.5730.13
    I also "fixed" securtiy settings to be as Low as possible....
    (Below message I could not cut and paste... so there may be some spelling misstakes.)
    First javascript error:
    Line: 10
    Char: 13
    Error: Invalid argument
    code: 0
    URL: http://sapr3d.korkow/sap/bc/webdynpro/sap/zwd_test2?sap-system.....
    second error (pushing Next button):
    same as above but:
    URL: http://sapr3d.korkow/sap/bc/webdynpro/ssr/domain_relax.html?000041-1
    third error:
    same as above but:
    URL: http://sapr3d.korkow/sap/bc/webdynpro/sap/zwd_test2~ucfLOADING?sap-contextid=SID.....&sap-wd-clientWindowid=25143
    Any pointers ?
    Br,
    Martin
    Edited by: Martin Andersson on Jun 29, 2008 5:36 AM

  • Hello World plugin works in 32-bit, does not work in 64-bit

    I created a simple "Hello World" plugin by following the instructions in Adobe's guide: Getting Started with Adobe Illustrator CC Development, which is available as a pdf here.
    The plugin works in the 32-bit version of Illustrator CS6, but I get an error message while trying to launch the 64-bit version. "Error loading plugins. HelloWorld.aip"
    How can I fix this error?

    You need to build 64 bit version of plugin. Change the configuration to x64 in your visual studio (I am assuming windows) and build. It should work fine.

  • Hello World Tutorial not working. processFormRequest not called

    In 9iJDeveloper when running the HelloWorld tutorial, I enter a value in the 'Hello' box, and press 'Go'. The page refreshes, but the value entered does not get displayed. No Information box is displayed, as it should according to the tutorial. So, I ran under debug, and it appears that in HelloWorldMainCO only processRequest is called. The breakpoint in processFormRequest is never reached.
    I have tried the other tutorials, and no 'POST's are working.
    However, when I logon to applications as 'OA Framework ToolBox Tutorial' responsibility and run the tutorials they work fine.
    Any help will be appreciated.

    Hi,
    I am having the same problem. We could be facing the same issue. I am following this issue in the thread 'Hello World not working'. You are welcome if you want to join us there.
    Thanks
    Sandeep

  • Adobe Reader - Adding Toolbar : hello world example

    Hi everyone,
    I would like to create a "Toolbar Button" for Adobe Reader which supports all version of it. 
    After a long search for this over the web found some article suggesting that this can be done with either of 2 methods.
    1. Acrobat Javascript.
    2. Acrobat Plugins.
    1. Acrobat Javascript:
         I am successful in creating a "ToolBar Button" in Adobe Reader with below script placed in "C:\Program Files\Adobe\Reader 10.0\Reader\Javascripts"
    Script:
    function helloWorld()
    app.alert("Hello World");
    app.addToolButton({
           cName: "helloWorldBtn",           // A name for your button
           cExec: "helloWorld()",               //Function to Call
           cLabel: "Hello World",               //The Text on the Button
           cTooltext: "Say Hello World",     //The Help Text
            cEnable: true
    Problem with Javascript:
    The only problem faced with Javascript implementing my scenario is "I coudn't call a ActiveX or DLL method from this Javascript".
    I tried creating new ActiveXObject in the code but it thorws runtime error saying it ActiveXObject is a unrecognized key word.(The same "new ActiveXObject" works fine from normal Javascrirpt.
    2. Acrobat Plugins.
    I couldn't find a good "Helloworld" sample for building a sample toolbar over internet. I believe from Plugins it would be easier to call other DLL's method by adding a reference or over COM.
    Could someone help me getting this done with a best simplest sample to do with. Please don't recommend me the SDK samples, I really don't understand anything out of it.
    If we can create toolbar with C# or VB it would be so preferable for me.
    Hope you got my problem. Thanks in advance.
    Please revert me if any of my assumptions were wrong.

    Yes, those are the two ways to create a toolbar button - either JavaScript or Plugin.
    You are also correct that you can't do anything with ActiveX or DLL from Acrobat JavaScript - which is the same JavaScript engine as Mozilla/FireFox.  owever, many browsers add additional/custom objects (such as ActiveX), which may be what you are thinking of...
    Plugins are written in C/C++ and they are documented in the Acrobat SDK.  You will need to download that to get building.  It includes documentation, sample code, etc.  HOWEVER, be aware that in order to develop a plugin for Reader you must obtain a license from Adobe.  There is a cost and process for this license and details are in the SDK.

Maybe you are looking for

  • System Time error in 10g Servlet Container

    I'm having System Time problem with JDeveloper 10g when running under a servlet. The System Time (date/yaer)changes outrageously and constantly. Here's the code example: System.out.println(new Date(System.currentTimeMillis())); I don't have this prob

  • Schema Help Needed

    I want to create an address schema that would support global address formats and be used by other schemas. What is the best practice for this? I was thinking of creating complex types for each locale that specified the address format for that locale.

  • Extra Folders when Restoring Library

    I have my Aperture Vault on an external hard drive. When I restored my library I ended up with an extra folder titled "Images removed from Vault_4_4_11" 11.85 GB which is the same date as Vault and also My Vault is 400GB and my working library is onl

  • CS5 differences between mac and windows

    Hello all, we just installed CS5 on a new PC and are now comtemplating purchasing a MAC to run CS5 on as well.  I was wondering what the differences are and limitations now that they're both on Intel processors. Our designers are concerned that with

  • Files not being shared across IoS devices

    Why are my files on my iPad not shared with my iPhone?