Java Portability

Call me naive but I was once told by a professor that Java was a great language to program for due to it's ability to run on any type of computer.
Well...I've spent 19 hours total (starting yesterday morning at 9am EST to today at 3pm EST) trying to get my java program to run on my Cassiopeia Be-300 pda.
PersonalJava tells me "invalid usage" as soon as I run it. Ewe would force me to rewrite all of my code to their specification. I could not get the CrEme program to run at all on the pda. BSquare's java virtual machine has an evaluation version that I have to get from a sales associate who has not responded to my emails. I also can't seem to get Jeode as an evaluation either.
I have never been so frustrated. If anyone has ANY ideas on how to run a Java program on the BE-300 or similar device please reply.
WinCE 3.0
MIPS processor
code is in jdk1.1.8 and j2sdk1.4.1_02 in an executable jar file

What is the command you are using to start your
program?To start personalJava I use pjava.exe to run it. Almost immediately I get the error message "invalid usage". I don't know what this means.
>
Also, have you considered migrating to CDC + Personal
profile?I was using personalJava because I thought it was compatible and easier to work with. Honestly, I don't fully understand CDC + Personal Profile. I just wanted to put the JVM on the pda and run my program. I didn't think it'd be this difficult.
If I switch to CDC + Personal Profile will I have to rewrite all my code (which is written in jdk1.1.8 and j2sdk1.4.1_02)? What could the "invalid usage" error mean?
Thanks.

Similar Messages

  • Java ME SDK 3.0 on Vista 64bit (JDK/JRE1.6U13 32-bit installed right before

    I really would like to test the recently promoted release of Java ME SDK 3.0 on my Windows Vista Ultimate 64-bit.
    First I tried to install it using my previously installed JDK 1.6 64-bit. Installer failed to properly integrate with Vista's UAC. Then equipped with proper permissions installation succeeded. So I tried to start the app. Got a splash screen telling me to start modules. Next I saw a apparently neverending list of exceptions appearing once every 10 seconds. So I told my task manager to drop that process.
    I tried to uninstall the application and had to see uninstaller failing due to not support 64-bit Windows. Great. Java=Portability???? And why didn't installer tell me about it?
    Lacking opportunity to uninstall the ME SDK I decided to drop every update of JRE and my existing JDK, then ask regedit to drop any registry information on any sort of Java-related stuff. Next I dropped all left-over folders related to installations of Java or Java-bundled software. Completing this I got a fresh JDK/JRE 1.6 Update 13 32-bit and installed it to my computer without any trouble.
    Next I decided to have another test of installing and running Java ME SDK 3.0 ... interesting: installer detected an existing installation (where from? all folders as well as lots of registry keys had been dropped before, even Windows' application manager didn't consider to have an existing installation anymore). The installer found new JDK installed before and finally succeeded to reinstall the app.
    Well, I tried to start it after that expecting something tested and thus working now. Instead of that I got the same sequence of exceptions requiring me to ask Task Manager for help after two bothering minutes of cancelling exceptions on splash screen not showing any kind of progression anymore.
    Here's my question (aside from: Who on earth started to falsely proclaim Java being platform-independent?):
    How can I get rid of these problems and have that super-app running on my two and a half years old operating system?
    Any support is welcome!
    Thomas
    (PS: I admit to have very bad view on Java as a technology due to stepping from trouble to trouble for years now and so I guess no one's ever able to convince me of the contrary, so please ignore any dismissive statement on it above. And yes I'd like to see this app running so I can start developing apps for mobile phones or at least test its capabilities in comparison to the competition.)
    EDIT: A few months ago I was testing some ME SDK with success. I can't remember version or included IDE. Is there any (basic) difference in using "Java ME SDK 3.0" as currently promoted on SDN from using Netbeans 6.5 supporting Java ME as well?
    Edited by: soletan on May 26, 2009 9:55 AM

    Hi, I also used the 64 bit sdk with Java ME SDK 3.0 and I am now unable to unistall it. I tried the suggestion of editing the 2 Java files which as suggested allowed the program to work correctly however I was unable to uninstall the program. So I tried the other suggestion of removing the files and then reinstalling linking to the 32 bit SDK which again it works OK but I am unable to uninstall.
    On trying to uninstall I get the error:
    Cannot load native library from path: native/jmesdk/windows/windows-x86.dll
    Exception:
    java.lang.UnsatisfiedLinkError:
    +C:\[home dir]\AppData\Local\Temp\[temp file]: Can't load IA 32-bit.dll on a AMD 64-bit platform.+
    You can get more details about the issue in the installer log file:
    Log file has:
    +[2010-07-25 20:14:21.422]: IsProductInstalledAction executed...+
    +[2010-07-25 20:14:21.422]: ...uninstallation, quiting+
    +[2010-07-25 20:14:21.453]: loading sdk library+
    +[2010-07-25 20:14:21.453]: library resource path: native/jmesdk/windows/windows-x86.dll+
    +[2010-07-25 20:14:21.454]: library file path: <SNIP>AppData\Local\Temp\nbi-611817385067150493.tmp+
    +[2010-07-25 20:14:21.459]: Cannot load native library from path: native/jmesdk/windows/windows-x86.dll+
    +[2010-07-25 20:14:21.460]: java.lang.UnsatisfiedLinkError: <SNIP>\AppData\Local\Temp\nbi-611817385067150493.tmp: Can't load IA 32-bit .dll on a AMD 64-bit platform+
    +[2010-07-25 20:14:21.460]:      at java.lang.ClassLoader$NativeLibrary.load(Native Method)+
    +[2010-07-25 20:14:21.460]:      at java.lang.ClassLoader.loadLibrary0(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at java.lang.ClassLoader.loadLibrary(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at java.lang.Runtime.load0(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at java.lang.System.load(Unknown Source)+
    +[2010-07-25 20:14:21.460]:      at org.netbeans.installer.utils.system.j2mesdk.SDKExtraUtils.loadNativeLibrary(SDKExtraUtils.java:128)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.utils.system.j2mesdk.SDKExtraUtils.<clinit>(SDKExtraUtils.java:42)+
    +[2010-07-25 20:14:21.461]:      at com.sun.cdc.installer.JMESDKConfigurationLogic.getUninstallWizardComponents(JMESDKConfigurationLogic.java:368)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.sequences.ProductWizardUninstallSequence.canExecuteForward(ProductWizardUninstallSequence.java:115)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.Wizard.getNext(Wizard.java:893)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.Wizard.next(Wizard.java:593)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.WizardSequence.executeForward(WizardSequence.java:84)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.sequences.MainSequence.executeForward(MainSequence.java:138)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.Wizard.next(Wizard.java:610)+
    +[2010-07-25 20:14:21.461]:      at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:124)+
    +[2010-07-25 20:14:21.462]: ... show message dialog+
    +[2010-07-25 20:14:21.462]: title: Critical Error+
    +[2010-07-25 20:14:21.462]: message: Cannot load native library from path: native/jmesdk/windows/windows-x86.dll+
    +[2010-07-25 20:14:21.462]:+
    +[2010-07-25 20:14:21.463]: Exception:+
    +[2010-07-25 20:14:21.463]: java.lang.UnsatisfiedLinkError:+
    +[2010-07-25 20:14:21.463]: <SNIP>AppData\Local\Temp\nbi-611817385067150493.tmp: Can't load IA 32-bit .dll on a AMD 64-bit platform+
    +[2010-07-25 20:14:21.463]:+
    +[2010-07-25 20:14:21.463]: You can get more details about the issue in the installer log file:+
    +[2010-07-25 20:14:21.463]: <SNIP>.javame-sdk\log\20100725201416.log+
    Any suggestions on how to uninstall the program?
    Thanks,

  • Macintosh Java text Editors

    I have been looking for a good macintosh Java text editor for my newphew. His high school is primary macintosh (Mac OS X) workstation based, therefore in order to code/learn Java, he understands that he can use a simple text editor.
    Is there a good text editor for the macintosh? Maybe a comparison is BBEdit for web site development, something with that power.
    Or is there a better simple editor in the terminal he can use?
    Thank you for reading this post.

    You can use TextEdit in plain text mode, or you can go to http://developer.apple.com/ and get Apple's free Project Builder IDE of OS X10.2, which works OK most the time as a text editor with syntax highlighting, but I've found tends to fall over when you try to debug; I've just ordered OS X 10.3 which comes with XCode, which looks prettier, and may even work.
    For the one or two class examples I post here, I use project builder as a text editor, and compile from the terminal. For larger projects, I use project builder but have to be disciplined about saving regularly.
    I've also used J (http://sourceforge.net/projects/armedbear-j/), though mainly under linux on a slow laptop, which is quite fast and lightweight, and being Java portable. I will go try it on the Mac forthwith.
    Pete

  • Portable object format

    Hi All ,I am working on portable object format with coherence my requirement is to build portable object format using java so every platform call that object..
    please tell me when ever  i use to start the coherence with my cache name its showing like pof-config file unable to find how to resolve this error is there any wrong in my cohernce cache config if there pls tell me ...
    is it correct way to built portable object .
    *1.Created the java class ( Manager.java) --> portable object interface*
    package com.Manager;
    import java.io.IOException;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import com.tangosol.io.pof.PortableObject;
    public class Manager implements PortableObject
         private String m_id ;
    private String m_name ;
    public Manager()
    public Manager(String m_id,String m_name)
         this.m_id=m_id;
         this.m_name=m_name;
    public String getId()
         return m_id;
    public void setId(String id)
         m_id = id;
    public String getName()
         return m_name;
    public void setName(String name)
         m_name = name;
         @Override
         public void readExternal(PofReader arg0) throws IOException {
              // TODO Auto-generated method stub
              m_id = arg0.readString(0);
    m_name = arg0.readString(1);
         @Override
         public void writeExternal(PofWriter arg0) throws IOException {
              arg0.writeString(0, m_id);
              arg0.writeString(1, m_name);     
    *2. created the (manager2.java)*
    package com.Manager;
    import java.io.IOException;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    public class Manager2 -->Pof Initilizer
         public void serialize(PofWriter out, Object o)
         throws IOException
         Manager trade = (Manager) o;
         out.writeObject(0, trade.getId());
         out.writeString(1, trade.getName());
         // mark that writing the object is done
         out.writeRemainder(null);
         public Object deserialize(PofReader in)
         throws IOException
         String ldtPlaced = in.readString(0);
         String name = in.readString(1);
         // mark that reading the object is done
         in.readRemainder();
         return new Manager(ldtPlaced,name);
    *3.created another java class to cput the data into cache*
    package com.Manager;
    import com.Manager.Manager;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    public class Main {
         * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String m_id = "123";
              String m_name ="laxman";
              CacheFactory.ensureCluster();
              NamedCache cache = CacheFactory.getCache("hello");
              /*Manager m1 = new Manager();
              m1.setId("1");
              m1.setName("laxman");*/
              cache.put(m_id,m_name);
    **4.created coherence-cache-config.xml**
    !DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>hello</cache-name>
    <scheme-name>Distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>Distributed</scheme-name>
    <service-name>DistributedCache</service-name>
    <serializer>
    <instance>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>pof-config.xml</param-value>
    </init-param>
    </init-params>
    </instance>
    </serializer>
    <backing-map-scheme>
    <local-scheme>
    <!-- each node will be limited to 250MB -->
    <high-units>250M</high-units>
    <unit-calculator>binary</unit-calculator>
    </local-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    </cache-config>
    ****5.created coherence-pof-config.xml****
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
         <user-type-list>
         <include>Manager-pof-config.xml</include>
    <user-type>
    <type-id>1000</type-id>
    <class-name>com.Manager.Manager</class-name>
    <serializer>
    <class-name>com.Manager.Manager2</class-name>
    </serializer>
    </user-type>
    </user-type-list>
    </pof-config>
    ****6.My Cache-server.cmd****
    @echo off
    @rem This will start a cache server
    setlocal
    :config
    @rem specify the Coherence installation directory
    set coherence_home=%~dp0\..
    @rem specify the JVM heap size
    set memory=512m
    :start
    if not exist "%coherence_home%\lib\coherence.jar" goto instructions
    if "%java_home%"=="" (set java_exec=java) else (set java_exec=%java_home%\bin\java)
    :launch
    set java_opts="-Xms%memory% -Xmx%memory% -Dtangosol.pof.config=file:/C:/Users/lakshmana/JPACoherenceWorkspace/Application/appClientModule/Manager-pof-config.xml -Dtangosol.coherence.cacheconfig=file:/C:/Users/lakshmana/JPACoherenceWorkspace/Application/appClientModule/coherence-cache-config.xml"
    "%java_exec%" -server -showversion "%java_opts%" -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.DefaultCacheServer %1
    goto exit
    :instructions
    echo Usage:
    echo ^<coherence_home^>\bin\cache-server.cmd
    goto exit
    :exit
    endlocal
    @echo on
    ***7.Coherence-cache-server.cmd***
    @echo off
    @rem This will start a console application
    @rem demonstrating the functionality of the Coherence(tm) API
    setlocal
    :config
    @rem specify the Coherence installation directory
    set coherence_home=%~dp0\..
    @rem specify if the console will also act as a server
    set storage_enabled=false
    @rem specify the JVM heap size
    set memory=64m
    :start
    if not exist "%coherence_home%\lib\coherence.jar" goto instructions
    if "%java_home%"=="" (set java_exec=java) else (set java_exec=%java_home%\bin\java)
    :launch
    if "%storage_enabled%"=="true" (echo ** Starting storage enabled console **) else (echo ** Starting storage disabled console **)
    set java_opts="-Xms%memory% -Xmx%memory% -Dtangosol.coherence.distributed.localstorage=true -Dtangosol.coherence.cacheconfig=file:/C:/Users/Praveen/workspace/SimpleCacheApp/build/classes/coherence-cache-config.xml -Dtangosol.coherence.override=file:/C:/Users/Praveen/workspace/SimpleCacheApp/src/tangosol-coherence-override.xml"
    "%java_exec%" -server -showversion "%java_opts%" -cp "%coherence_home%\lib\coherence.jar" com.tangosol.net.CacheFactory %1
    goto exit
    :instructions
    echo Usage:
    echo ^<coherence_home^>\bin\coherence.cmd
    goto exit
    :exit
    endlocal
    @echo on
    **cache server working fine , When i am trying to start the coherence and entered cache and mycache name hello its showing following error**
    Map (?): cache hello
    2012-06-14 22:48:02.475/7.590 Oracle Coherence GE 3.6.0.4 <Info> (thread=main, member=11): Loaded cache configuration from "file:/C:/Users/lakshmana/JPACoherenceWorkspace/Application/appClientModule/c
    oherence-cache-config.xml"
    2012-06-14 22:48:02.609/7.724 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache, member=11): PartitionedCache caught an unhandled exception (com.tangosol.util.WrapperException: (Wrapped: error
    configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) The POF configuration is missing: "Manager-config.xml", loader=sun.misc
    .Launcher$AppClassLoader@6d6f0472) while exiting.
    2012-06-14 22:48:02.610/7.725 Oracle Coherence GE 3.6.0.4 <Error> (thread=DistributedCache, member=11): ClusterService.doServiceLeft: Unknown Service PartitionedCache{Name=DistributedCache, State=(SER
    VICE_STOPPED), Not initialized}
    2012-06-14 22:48:02.610/7.725 Oracle Coherence GE 3.6.0.4 <D5> (thread=DistributedCache, member=11): Service DistributedCache left the cluster
    2012-06-14 22:48:02.625/7.740 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=11): Error while starting service "DistributedCache": (Wrapped) (Wrapped: error configuring class "com.tangosol.i
    o.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$App
    ClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
    at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
    at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
    at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is
    missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
    at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:813)
    at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
    at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
    ... 6 more
    Caused by: java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
    ... 11 more
    2012-06-14 22:48:02.625/7.740 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=11):
    (Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is
    missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
    at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
    at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
    at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is
    missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: (Wrapped: Failed to load POF configuration: Manager-config.xml) java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
    at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:813)
    at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
    at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
    ... 6 more
    Caused by: java.io.IOException: The POF configuration is missing: "Manager-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
    ... 11 more
    Please tell me how to approach this task.......
    Thanks
    Edited by: 875910 on Jun 15, 2012 12:48 PM
    Edited by: 875910 on Jun 15, 2012 1:14 PM

    hi Jon thanks for reply ...actually i have modified what u said in the post , but still i am getting the same error .............
    is it correct way to build a portable object , its by using java .....
    is it when i remove serializer in my coherence-ccache-config ..its working fine ,
    Is there any mistake in this config ....if i used this serializer ,getting following error , this config is must to implement pof concept...
    <serializer>
    <instance>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>Manager-pof-config.xml</param-value>
    </init-param>
    </init-params>
    </instance>
    </serializer>
    Map (?): cache hello
    2012-06-15 16:09:27.651/5.755 Oracle Coherence GE 3.6.0.4 <Info> (thread=main, member=13): Loaded cache configuration from "file:/C:/Users/lakshmana/J
    oherence-cache-config.xml"
    2012-06-15 16:09:27.784/5.888 Oracle Coherence GE 3.6.0.4 <Info> (thread=DistributedCache:DistributedCacheService, member=13): Loaded POF configuratio
    pace/Application/appClientModule/Manager-pof-config.xml"
    2012-06-15 16:09:27.784/5.888 Oracle Coherence GE 3.6.0.4 <D4> (thread=DistributedCache:DistributedCacheService, member=13): PartitionedCache caught a
    ception: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manager-
    missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472) while exiting.
    2012-06-15 16:09:27.785/5.889 Oracle Coherence GE 3.6.0.4 <Error> (thread=DistributedCache:DistributedCacheService, member=13): ClusterService.doServi
    ributedCacheService, State=(SERVICE_STOPPED), Not initialized}
    2012-06-15 16:09:27.786/5.890 Oracle Coherence GE 3.6.0.4 <D5> (thread=DistributedCache:DistributedCacheService, member=13): Service DistributedCacheS
    2012-06-15 16:09:27.789/5.893 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=13): Error while starting service "DistributedCacheService": (W
    gosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manager-pof-config.xml) java.io.IOException: The included P
    ml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
    at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
    at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
    at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manage
    d POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: (Wrapped: Failed to load included POF configuration: Manager-pof-config.xml) java.io.IOException: The included POF configuration is missing
    er$AppClassLoader@6d6f0472
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
    at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:856)
    at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
    at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
    ... 6 more
    Caused by: java.io.IOException: The included POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
    ... 11 more
    2012-06-15 16:09:27.789/5.893 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=13):
    (Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manager
    POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.start(Service.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.start(Grid.CDB:6)
    at com.tangosol.coherence.component.util.SafeService.startService(SafeService.CDB:28)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.startService(SafeCacheService.CDB:5)
    at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:27)
    at com.tangosol.coherence.component.util.SafeService.start(SafeService.CDB:14)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureServiceInternal(DefaultConfigurableCacheFactory.java:1057)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureService(DefaultConfigurableCacheFactory.java:892)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:874)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1231)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:290)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:18)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:209)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)
    Caused by: (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Failed to load included POF configuration: Manage
    d POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:17)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:31)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.ensureSerializer(Service.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onEnter(Grid.CDB:26)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onEnter(PartitionedService.CDB:19)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:14)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: (Wrapped: Failed to load included POF configuration: Manager-pof-config.xml) java.io.IOException: The included POF configuration is missing
    er$AppClassLoader@6d6f0472
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:330)
    at com.tangosol.run.xml.XmlHelper.loadFileOrResource(XmlHelper.java:281)
    at com.tangosol.io.pof.ConfigurablePofContext.createPofConfig(ConfigurablePofContext.java:856)
    at com.tangosol.io.pof.ConfigurablePofContext.initialize(ConfigurablePofContext.java:775)
    at com.tangosol.io.pof.ConfigurablePofContext.setContextClassLoader(ConfigurablePofContext.java:319)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.instantiateSerializer(Service.CDB:13)
    ... 6 more
    Caused by: java.io.IOException: The included POF configuration is missing: "Manager-pof-config.xml", loader=sun.misc.Launcher$AppClassLoader@6d6f0472
    at com.tangosol.run.xml.XmlHelper.loadResourceInternal(XmlHelper.java:316)
    ... 11 more
    Map (?):
    Thanks..

  • Cannot install JMF under Linux Mandrake 10

    I simply cannot install JMF under the Mandrake 10 Official Linux distribution. I downloaded the jmf-2_1_1e-linux-i586.bin file and tried to execute it as root. It unzipped some files then showed me an error message about AWT and GTK+. I found a hack consisting of modifying the .bin file to have the PATH variable point to SUN JDK, the error does not show up, but the installation still does not work. In fact, the installation works, but the Diagnostics applet keeps telling me than class files are not present. My Mozilla 1.6 Java plugin is working and displaying the applet. My JMF lib directory does not contain sound.jar, such jmf.jar. I set the CLASSPATH and LD_LIBRARY_PATH according to the readme.html file. I would like to know if it is a compatibility problem with Mandrake 10, the 2.6 kernel or if JMF just DO NO work under Linux. In the latter case, JMF is a violation to the Java portability philosophy and I would never use it on my own initiative, just if I were asked to.
    After the files are unzipped, I have the following warning and error messages.
    Warning:
    Name: HorScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.
    JavaSound Capture Supported = true
    JavaSoundAuto: Committed ok
    java.lang.Error: Can't open video card 0
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 2
    java.lang.Error: Can't open video card 3
    java.lang.Error: Can't open video card 4
    java.lang.Error: Can't open video card 5
    java.lang.Error: Can't open video card 6
    java.lang.Error: Can't open video card 7
    java.lang.Error: Can't open video card 8
    java.lang.Error: Can't open video card 9
    Done.
    Even if I do not have a working video capture card (I have an ATI All-in-Wonder 128 but it is not working under 2.6 kernel), JMF should work because some people do not have a video capture card. I also tried with the cross-platform ZIP file, but this one does not contain sound.jar either and the Diagnostics applet keeps complaining about missing class files. I tried to search on the Web for solutions to this problem or for a way to change the CLASSPATH used by the Mozilla Java plug-in (if it uses a different CLASSPATH than the one from the environment variable), but nothing, nothing. Is there a distribution from which JMF would work better than Mandrake 10? Or can JMF work only under Microsoft Windows or Sun Solaris? I also tried Blackdown, but a README file directed me to the Sun's page, nothing to download here about JMF.

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Changing the dropdown icon of af:selectOneChoice

    Hi,
    I'm lost with adf skin selector : I don't found any documentation of skinning the af:selectOneChoice. I would like to change the dropdown icon when the component is in "idle" mode, and when there's mouseOver.
    Regards
    Luc-

    Hi andre,
    thanks for your answer. In the demo, there's nothing that could help me with my problem.
    But I was wondering if changing the dropdown icon is even possible, since it's a component that has differents displays from os to os and from browser to browser : the java portability.
    So I don't think I could do that right ?
    Regards
    Luc-

  • Non-sequential IDs assigned using sequence="ID" on PrimaryKey

    Hello,
    I've seen some people asking something similar but I can't get this thing to work and it's driving me crazy. I'm using je-3.2.23 BTW.
    I have this simple class:
    * SYSADM.java
    * Created on 26 de junio de 2007, 09:29 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package haven;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.PrimaryKey;
    * @author Mario
    @Entity
    public class SYSADM extends Usuario{
    private boolean root;
    @PrimaryKey(sequence="ID")
    private long id;
    /** Creates a new instance of SYSADM */
    public SYSADM() {
    /** Creates a new instance of SYSADM from parameters */
    public SYSADM(boolean root,long id, String loginName, String password, String nombre, String apellido, String email) {
    super(loginName, password, nombre, apellido, email);
    setRoot(root);
    //setId(id);
    /** Creates a new instance of SYSADM from a VOSYADM */
    public SYSADM(VOSYSADM voSYSADM) {
    super(voSYSADM.getLoginName(),voSYSADM.getPassword(),
    voSYSADM.getNombre(),voSYSADM.getApellido(),voSYSADM.getEmail());
    setRoot(voSYSADM.isRoot());
    //setId(voSYSADM.getId());
    public VOSYSADM getVOSYSADM() {
    return new VOSYSADM(this.isRoot(),this.getId(),this.getLoginName(),this.getPassword(),
    this.getNombre(),this.getApellido(),this.getEmail());
    public boolean isRoot() {
    return root;
    public void setRoot(boolean root) {
    this.root = root;
    public long getId() {
    return id;
    public void setId(long id) {
    this.id = id;
    and when I add records to the database using DPL I get ids like 1,101,201... and so on.
    I've looked at all the examples and tested them myself and I get the same behavior from all the classes I test.
    Plus all the tutorials and materials say that this is plain simple... let me quote from PrimaryIndex:
    " Employee employee;
    employee = new Employee("Jane Smith");
    primaryIndex.putNoReturn(employee); // Inserts an entity
    assert employee.id == 1;
    employee = new Employee("Joan Smith");
    primaryIndex.putNoReturn(employee); // Inserts an entity
    assert employee.id == 2; "
    I don't get... may be I'm plain dumb... should've ask that first to myself... I'm getting desperate here people... really!
    Anyway... any help is much appreciated.
    Regards to all,
    Mario

    First of all many thanks for your feedback... it's
    really encouraging in times of desperation to find
    somebody out willing and actually helping you! You're welcome!
    This is good. I'm aware of how RDBMS are integrated
    in the AS. Basically you need the driver and the
    connection to the database. For DBD JE I have made a
    simple test and I can persist objects from a web
    application in the AS. I simply open the environment
    that points to a directory in the file system. I
    suppose that as long as that directory is accessible
    through the network it should be fine. Is this
    correct?That''s correct. However, I strongly recommend that the Environment directory be on a local disk. There are problems with using NFS, see:
    http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#1
    The question of scalability arises. As far as I read
    DBD C is the number one embeddable OpenSource
    Database out there. So I assume the same would apply
    for BDB JE some day (more even once it gets HA). How
    scalable is BDB JE? The limitation seems to be the
    available space in the machine where the filesystem
    is located? Does the filesystem have to the same
    where the AS is installed?It sounds like you're asking about data size scalability, not processor scalability. Yes, the limitation is the amount of file storage available, via a single directory, from the process that embeds JE. JE uses the standard java.io package for creating and accessing log files, so any hardware and file system that works under that API will work, as long as file locking is supported as mentioned in the FAQ above. JE creates numbered log files in sequence from 00000000.jdb to FFFFFFFF.jdb, and you can configure the size of the files. The default size is 10 MB.
    Ok I 'll look into it. Specialy into what a "Service"
    is. Off the top of my head I guess that by service
    you are referring to a stateless ejb implementing the
    Singleton pattern so you have only one instance
    running at all times, that embeds all database
    interactions, opens the environment at creation time,
    give data-accessors and thus handles all access to
    the database. Exactly.
    Should I open all indexes in the
    Singleton at creation time as well and simply get
    data-accessors to to perform read/write operations?Yes, that's what I recommend. See:
    http://www.oracle.com/technology/products/berkeley-db/faq/je_faq.html#12
    Ok we willhave to wait then. One of the questions I
    received about BDB JE is why a JE when you have the C
    version with a Java API? I guess it's related to
    being written in Java (portability-wise), it runs in
    the same JVM and it's 100% Java codeYes, this is the primary reason. A pure Java library is easier to deploy, test and debug than a C-based library, especially if you target multiple platforms. And the product can be optimized for the Java platform.
    and that it
    incorporates the DPL much in the way JPA works to
    have a closer integration. Am I correct?The DPL is only available for the JE product today, but it may be available for the C product in the future, since it is implemented on top of the base Java API that is common to both products.
    Also, while the JE product has similar functionality to the C product, it uses a different internal architecture. JE uses a log structured storage system rather than a traditional page-based storage system; this is better for writing (disk head moves less) but worse for fetching records that are not in cache (disk head moves more). JE also uses record locking rather than page locking; this improves concurrent access but uses more memory for locks.
    See "Berkeley DB Java Edition Architecture" here:
    http://www.oracle.com/technology/products/berkeley-db/je/index.html
    Last but not least. Portability-wise we are using DAO
    to persist and in the DAOs we perisist the objects.
    My logic is that by decorating POJOs with BDB JE
    annotations i can use DAO to persist in DB JE, any
    other persistency type including text, dbf, RDBMs
    using an ORM (without JPA), or creating a separate
    set of classes decorated with JPA annotations (though
    I would stick with ANSI SQL if I could). Do you see
    this as correct? Would you reccomend using DAO at all
    with Berkeley?Yes, a DAO is a good idea when you need to target multiple storage mechanisms. And the DPL does not meet this need, because it can only be used for Berkeley DB JE.
    If you need an API that works very well for Berkeley DB (JE and C products), plus relational DBs, then I strongly recommend Carbonado, an open-source framework from Amazon:
    http://carbonado.sourceforge.net/
    Mark

  • Sockets and operating System

    Are sockets really Operating System independant? Or Is Java portable enough to not take into consideration the underlying implementation of sockets of the running Operating System?
    Thank you for your answers,

    Are sockets really Operating System independant? Or IsAll the resources of a computer are necessarily manipulated by the OS. I don't see how JVM can or why JVM would bypass the OS. So JVM would use the socket implementation provided by the OS.

  • JVM for various OS

    I new to Java,I have one basic doubt regarding JVM,
    Is JVM designed by the OS developers or SUN itself design the different JVMs for the different Operating Systems?

    Hi harish...
    Because of Java portability feature .. the java program's transformation process, from source code to machine executable, into 2 steps....
    * 1 .Step..
    i.e example.java to example.class ( using "javac" compiler it is converted to "bytecode" i.e "class" file)
    there is nothing big deal about this "class" file (bytecode).Its just a simple flat file having JVM(java virtual machine) instructions and symbol table of java's flavour( also called runtime constant pool table, having references to runtime variables and methods etc.. that is need at linking process, to execute the program)...
    * 2.Step..
    tranforms the class file ie..
    from example.class to machine executable(using JVM )
    JVM is interpreter that reads JVM instructions from the class file and transfroms them into appropriate machine equivalent code of the host machine...
    purly speaking interpreter is more robust than compiler .. for extremely runtime error prone programs...and more over JVM instructions are siblings to assembly code and thus requires interpreter rathar than compiler...because at the end of the any CPU executes only one instruction at a time....
    Hope I answered your question.....

  • Calling Options of OS

    Hi,
    I am working on a application FileSystem Explorer. I have used Jtree to explore the file system. I have given some right click optins i.e. Open, Open Containing Folder, Properties etc. These options are already provided to Files/Folders by OS. Can I directly call these options of OS call ? Any suggestions would be appreciated.
    Thanks
    Jawahar

    I then have to ask, why are you using Java in the firts place??
    If you want to build sole windows applications then java swing is no match for .net applications in terms of development since they use native windows controls, and building Gui applications with .net is a faster process. But if you want to build applications for more than one OS then you go for java, but that does not seem the case since you want to use the windows explorer app.
    To use native os app you dont need java, and you better off with c++ since windows 32 api uses them a lot.
    I think you are a bit lost here, does java portability means anything to you??
    MeTitus

  • Should i compile on the target OS

    Hello,
    I have a pretty good sized web app. It is a combination of servlets and jsps.
    I develop the app on a windows box with intelij?
    Currently I run, test and compile on my windoz box. When everything is ok, i just push the class files to my linux boxes. (the jdk versions are the same)
    Is there an advantage of compiling the servlet files on the target OS?
    Thanks
    Randy

    no need to compile the code again.java portability and platform independent feature take care any operating system related issues.just move the class files.every thing 'll go fine

  • Timing Java Apps on Portable Devices and Desktops

    I am trying find an efficient way to time my Java applications running on Linux on portable devices like Pocket PCs and other hand held computers. I also need to time the running of applications on desktop and laptop computers and compare the two. I am conducting research to find out if Java runs slower on smaller processors in comparison to larger ones. I am looking for either research or a program that can help me to accomplish this. I have looked at JProbe but I would prefer an option that doesn't involve buying software. Are there any basic programing languages that offer this option? Does the JVM allow timing test to be conducted by itself? Is Java a good language to make a timing program with or should I look elsewhere. If you have any information please let me know.

    Mayank, thank you for your kind assistance.
    Follow-up questions:
    1 - Regarding Adobe LMS... when I go to this page
    Adobe - LMS integration solutions
    and click on the 'learn more about LMS' link... it takes me to an Adobe page that tells me the page no longer exist... so may I ask you
    -  if LMS will collect students responses to a Captivate training exercise?
    -  and further allow our system to access and evaluate their responses?
    -  And, do they charge per student or what?
    2 - You said "You can run Captivate without Internet . It is just you have to connect to the internet during the installation to sign in with your Adobe ID."
    Does this mean a student would have to connect to the internet and install Captivate and get an Adobe ID?
    I was trying to ask here if there were no internet connectivity... or limited connectivity... could a Captivate Training Exercise be placed on a PC or Tablet or Smartphone... and run at will by the student like it was an actual computer program... all without the student having to own Captivate.
    thanks again for the help.

  • Using Portable datasource lookup for a java client in OC4J 10g

    Hi,
    I'm in the process of porting a standalone java client to j2ee. At the moment I have a thick java client which uses jndi to access a global datasource configured on the OC4J server (10.1.2.0.2) and it works fine.
    Using the 'Services Guide' I decided the next step was to deploy the client as a J2EE application. At the moment the j2ee application only contains the descriptors (i.e application-client.xml and orion-application-client.xml packaged under META-INF in a .jar. This is, in turn, packaged in an .ear along with application.xml (again under META-INF.)
    This is where I'm hitting problems. The following config produces a 'javax.naming.NameNotFoundException' error
    application.xml
    <application>
         <display-name>appName</display-name>
         <description>appDescription</description>
    </application>
    application-client.xml :-
    <application-client>
         <display-name>appName</display-name>
         <resource-ref>
              <res-ref-name>jdbc/MaptoTest</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
    </application-client>
    orion-application-client.xml :-
    <orion-application-client>
         <resource-ref-mapping name="jdbc/MaptoTest" location="jdbc/Test"/>
    </orion-application-client>
    jndi.properties :-
    java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
    java.naming.provider.url=opmn:ormi://<machine>:6004:<OC4J_INSTANCE>/appName
    java.naming.security.principal=<USERNAME>
    java.naming.security.credentials=<PASSWORD>
    client.class
    ctx = new InitialContext();
    ds = (DataSource)ctx.lookup("java:comp/env/jdbc/jdbc/MaptoTest"));
    "jdbc/Test" was configured through OAS and is present in data-sources.xml (it is the ejb-location property).
    I'm running the client through Jdeveloper. I've used SJSAS previously and was use to configuring and deploying a application module through it's own tool. SJSAS also has a tool (appclient) for running the client. Is there something similar I should be using in OC4J?
    The services guide only mentions web.xml and ejb-jar for portable datasource lookup but I assume it's also possible using application-client.xml.
    It seems to me that my descriptors don't mention the j2ee application explicitly. Am I missing an entry in one of the xml descriptors. Any help would be appreciated this is driving me crazy!
    Thanks in advance for any advice.

    Hi Geoff,
    The configurations for your client.xml files look ok. Question: where did you configure the datasources.xml i.e. under j2ee/<OC4J_Name>/config or under the application-deployments/<appname>, kindly check and let us know.
    Thanks,
    Deepak

  • Portable(java.lang.IllegalStateException): SafeNamedCache was exexplicitly

    Hi All,
    I have seen similar post in this forum, but this error looks bit different than the old post.
    This is the log on the TCP Node.
    INFO | jvm 1 | 2011/11/17 20:30:05 | 2011-11-17 20:30:05.758/92113.566 Oracle Coherence GE 3.6.1.5 <D5> (thread=Proxy:pof-remote-proxy-service:TcpAcceptorWorker:6, memb
    er=78): An exception occurred while processing a GetAllRequest for Service=Proxy:pof-remote-proxy-service:TcpAcceptor: java.lang.IllegalStateException: SafeNamedCache was ex
    plicitly released
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.SafeNamedCache.ensureRunningNamedCache(SafeNamedCache.CDB:23)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.SafeNamedCache.getRunningNamedCache(SafeNamedCache.CDB:1)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.SafeNamedCache.getAll(SafeNamedCache.CDB:1)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy.getAll(NamedCacheProxy.CDB:1)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.net.extend.messageFactory.NamedCacheFactory$GetAllRequest.onRun(NamedCacheFactory.CDB:6)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.net.extend.message.Request.run(Request.CDB:4)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy.onMessage(NamedCacheProxy.CDB:11)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.net.extend.Channel.execute(Channel.CDB:39)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:26)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    INFO | jvm 1 | 2011/11/17 20:30:05 | at java.lang.Thread.run(Thread.java:619)
    This is the log on the client ( which is a compute grid)
    Caused by: Portable(java.lang.IllegalStateException): SafeNamedCache was explicitly released
         at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
         at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3306)
         at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2603)
         at com.tangosol.coherence.component.net.extend.message.Response.readExternal(Response.CDB:20)
         at com.tangosol.coherence.component.net.extend.Codec.decode(Codec.CDB:29)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.decodeMessage(Peer.CDB:25)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:54)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    what Causes this Exception ? Why would the SafeNamedCache be released on the TCP-Proxy Node ?
    what could be the reason for TCP-Proxy node releasing the SafeNamedCahce - I checked the status of the underlyig cache service and it is running fine.
    Any pointers/help is highly appreciated.
    Regards
    S

    Hi S
    Someone have made a call to NamedCache.release(). Have a look at your code to ensure that there is no calls to this method.
    Thanks
    /Charlie

  • USB Portable Java SDK?

    Has anyone made a USB portable version of the Java SDK for compiling on the go? Windows version only. If somone has not, how could I go about doing this?

    Not sure about a completely portable one, but I run Eclipse off my USB and it works fine. The occasional cough-up and screen freeze, but it all works.
    However - not sure about it being completely portable. I run it on my school's lab computers, which have Netbeans and the JDK already installed on it. Haven't tried it on any computers without a JDK.

Maybe you are looking for

  • Want to get user ID in oracle forms

    Hi All, I'm working with oracle 11g and E-BS R 12.1.2 . I created a custom form using oracle form builder and attached to E-BS. I want the user ID current logged in user. I used this command FND_PROFILE.VALUE('USER_ID') but it doesn't work. How can I

  • JNI first use

    hi I can't use JNI, I would to use LabVIEW controls in a Java form... someone can show me JNI fundamentals???? how to say, from nothing to something that print on screen Hello world... thanks

  • Reports in jasper-adf

    hi groups, gud noon :) fine. Using jdev 11.1.1.5.0-adfbc-oracledb10g-mozilla ffx9.0.1 - jasper with the help these am running my report in pdf. if data matches means report runns, ok. if it not matches. pdf opens as empty. instead of opening empty. i

  • TS4009 I wish to cancel a standing order  and I cannot see anywhere where this is possible.

    I have an order with iTunes  for a monthly subscription for the Daily Mail. I now wish to cancel any further months. Please tell me how. Tony Wyer

  • NTP Server sync issues

    When I stop and start the windows time service. Would guess this would be the same effect on the time service as a reboot. The system appears to default back to Local CMOS clock C:\Users\Admin.DOMAIN>net stop w32time The Windows Time service is stopp