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

Similar Messages

  • 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?

  • 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.

  • 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.

  • AIR Native extensions Hello World Example for iphone ios

    I need help as i am having runnable code library for Hello world which i took from the url,
    "http://akabana.info/2011/08/11/air-native-extension-10-try-air-for-ios-ane/"
    in which we are making static library in Xcode by using ADOBE AIR.framework so that we are getting.a extension file. Now how to call further function because its just a library now how i want to know the steps further. How to call this library in the IOS project.

    Chris,
    You may have more luck over on the OA Framework forum OA Framework
    Best of luck,
    John

  • Not able to run Hello world example(test_fwktutorial.jsp)

    I am new to OAF.
    I have download and set up the OA extension(right version) for our EBS.
    when i run test_fwktutorial.jsp from jdeveloper, i am getting the jsp pages with links to some samples like "Hello World" but when i am clicking the Hello World link , i am getting error. please help
    Exception Details.
    oracle.apps.fnd.framework.OAException: No data found for region (/oracle/apps/fnd/framework/toolbox/tutorial/webui/HelloWorldPG).
    and
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException: Unable to find component with absolute reference = /oracle/apps/fnd/framework/toolbox/tutorial/webui/HelloWorldPG, XML Path = {1}. Please verify that the reference is valid and the definition of the component exists either on the File System or in the MDS Repository.

    Thanks for your response.
    Our DBA doesn't not much about OAF, but i check the patch by executing the below sql command . and there one record. So i understood patch installed , Is there any other way to check , this toolbox tutorial patch is applied or not,
    please advise.
    OA Framework Mini-pack 11i.FWK.H” (3262919)
    select * from ad_bugs where bug_number='3262919';
    one record found
    our EBS environment details below:-
    OA Framework Version 11.5.10.2CU.
    MDS Version 9.0.5.4.81 (build 481)
    UIX Version 2.2.18
    BC4J Version 9.0.3.13.51

  • 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.

  • 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.

  • Exception while running hello world program

    Hi OAF guys
    i am getting the following exception when i am trying to run the Hello world example. Any body knows this problem, respond asap
    Exception Details.
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.adf.mds.exception.MDSRuntimeException; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1960)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException
         at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(ATGCacheMgrDelegateImpl.java:325)
         at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCacheFactoryImpl.java:44)
         at oracle.apps.fnd.framework.mds.OAMDSContextUtils.createMDSContext(OAMDSContextUtils.java:202)
         at oracle.apps.fnd.framework.mds.OAMDSContextUtils.createMDSContext(OAMDSContextUtils.java:149)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3444)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.adf.mds.exception.MDSRuntimeException
         at oracle.apps.fnd.framework.mds.cache.ATGCacheMgrDelegateImpl.<init>(ATGCacheMgrDelegateImpl.java:325)
         at oracle.apps.fnd.framework.mds.cache.ATGCacheFactoryImpl.<init>(ATGCacheFactoryImpl.java:44)
         at oracle.apps.fnd.framework.mds.OAMDSContextUtils.createMDSContext(OAMDSContextUtils.java:202)
         at oracle.apps.fnd.framework.mds.OAMDSContextUtils.createMDSContext(OAMDSContextUtils.java:149)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3444)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    thanks in advance
    Thanks & Regards
    U.Palakondaiah

    For a quick resolution please add the below -D parameter to Java Options under "Project Settings->Configurations->Development->Runner"
    -DCACHEMODE=DISTRIBUTED
    Next thing I want you to do is, check what version of "oracle.apps.jtf.cache.HTCacheProvider" class
    your jdeveloper has? It should be >= 115.33. If not then try after deleting all your class files (myclasses/myglobalclasses and other external classes - may be one of them might have older version of this class file).
    Thanks,
    Eshwar

  • Please Help!! frustrating Hello World!

    hi guys,
    i was trying the famous Hello world example in rmi.
    i have followed all the steps , i had this error:
    Hello Server failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Hello1_Stub
    but it was fixed thanks to a previous topic posted , i removed another jdk version from the path environment variables.
    now i have this error:
    Hello Server failed: java.rmi.ServerError: Error occurred in server thread; nested exception is:
    java.lang.NoClassDefFoundError: HelloInterface1
    can anyone help please? it is really urgent.
    Thanks

    well, it looks like no one can answer it, thanks anyways, i will see what i can do.

  • Gcc not compile hello world in c?

    hi
    i wrote a hello world example in c language and  i want compile its.object file is created but not created executed file.please write me what command i need and a little hello world in c to test.
    thanks

    A good way to do this is build a simple makefile containing just the following 2 lines:
    CC=gcc
    CFLAGS:=-ggdb -std=c99
    The second line is optional and you may have other preferences.  The -ggdb option adds debugging information for the GNU debugger, gdb; and the -std=c99 allows a program that is compliant with the C99 standard to be compiled.  Name this file 'Makefile' and place it in the same directory as your source code file (i.e. hello.c). Then just type
    $ make hello

  • Warning Noob: Sending "Hello World!" in Printer using Java Applet

    Hello guys!
    im a newbie in java programming... i hope that you can help me with my problem.
    how can i print "Hello World!" in printer using java applet. lets pretend that the applet is digitally signed.
    i tried window.print in javascript but unfortunately, that is not what i am looking for.
    thanks for reading my post and i hope that you help me with my quest in java =)

    An applet is still part of the Swing package. I assume you're extending JApplet. There isn't anything in the print API that says it can't be done in an applet. Except that you might have to sign your applet Jar file with a digital certificate to get the printing to work.

  • 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

  • IPhone SDK 3.1: Problem compiling first Hello World App

    Hi,
    I am new to XCode, Mac OS and iPhone Development.
    I had already installed the earlier iPhone SDK (version prior to the latest 3.1) into my Mac OS 10.6. I was not able to run
    the hello world program through xCode as while opting for Build and Run, the simulator it was giving me an error saying that it cannot find the right SDK.
    I had assumed that the old SDK is not compatible with the new Mac OS 10.6 (Snow Leopard). I had then uninstalled the old
    iPhone SDK using Terminal tool, using the command line given in the xCode uninstall guide.
    Installed the latest iPhone SDK (version 3.1), and then tried to compile the hello world app through xCode. Now I am getting the following error:
    *error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory*)
    I had located the above mentioned directory and could not find the file: "gcc-4.2" as mentioned in the error. Instead
    executable files like "i686-apple-darwin10-gcc-4.2.1" are present there.
    My Project Settings are:
    Project Format - xcode 3.2 -compatible
    Base SDK - iPhone Simulator 3.1
    Compiler Version - System Default (GCC 4.2)
    I am totally confused here, as I don't know how to correctly set up the ENV, as I thought the iPhone installer SDK does that automatically.
    Please help me out.
    Thanks in advance for your time,
    JC.
    Error Messages:
    Build helloworldxc of project helloworldxc with configuration Debug
    ProcessPCH /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch helloworldxc_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_2
    cd "/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc"
    setenv LANG en_US.US-ASCII
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr /bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -D_IPHONE_OS_VERSION_MINREQUIRED=30000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1 .sdk -fvisibility=hidden -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-generated-files.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-own-target-headers.hmap -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/helloworldxc-all-target-headers.hmap -iquote /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/Deb ug-iphonesimulator/helloworldxc.build/helloworldxc-project-headers.hmap -F/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/Debug-iphonesimulato r/include -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources/i386 -I/Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/build/helloworldxc.build/D ebug-iphonesimulator/helloworldxc.build/DerivedSources -c /Users/jaideepchakravorty/Jaideep/R&D/helloworldxc/helloworldxc_Prefix.pch -o /var/folders/P-/P-zMg0EzHree36VYyqKEvU+TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/helloworldxcPrefix-gylsydenhucpkgfnujlgvzvhfhzd/helloworldxcPrefix.pch.gch
    while compiling hellowworldxc_Prefix.pch,
    error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory)

    Could you let me know as where is the xcode setting through which it is looking for the compiler in the following path ? This path is probably wrong (Pls refer to the error messages)
    I'm not sure this will be of any help to you -- I'm not sure if it's the answer you're looking for, since I don't really know enough on the subject. However, this may answer your question, or at least maybe help you find the answer for yourself, so it's worth a shot. Try going to Edit Project Settings in the Project menu, and once the Project Settings open, select the Build tab. Search through this and see if you find any preferences along the lines of what you are looking for. In particular I would try the sections toward the bottom about the GCC 4.0 compiler. Sorry if this was a waste of time, but I wanted to try...

  • Hello there! i am using Adobe acrobat pro DC and using windows 8.1. Recently I was trying to convert a web page (includes greek letters) into pdf. I noticed that the conversion is not accurate, some words are missing, some are misplaced. Especially greek

    hello there! i am using Adobe acrobat pro DC and using windows 8.1. Recently I was trying to convert a web page (includes Greek letters) into PDF. I noticed that the conversion is not accurate, some words are missing, some are misplaced. Especially Greek words are not accurately converted or even not converted. Please give me some suggestions to improve this issue. Regards

    Hey quantum info,
    Thank you for posting at Adobe forums. We would love to help you out.
    Could you please let me know if you have tried converting other web pages to PDF and checked if the same issue persists.
    How have you been trying to convert the web page to PDF?
    Are you trying to convert to PDF directly via browsers or using "File > Create > PDF from Web Page"  option in Acrobat.
    Let me know more so that I can analyze where actually the issue persists.
    Hope to hear from you.
    Regards,
    Anubha

Maybe you are looking for