Jdeveloper App and Installshield Java edition

I have created a JDeveloper application and I have used Installied Java Edition to deploy. It is a stand alone application with an oracle database. Following the Install the user runs the app and get
<< ...OLE Obj... >>
any comments would be appreciated.

Did you do this:
http://download.oracle.com/docs/cd/E14571_01/install.1111/e13666/ojdig.htm#BDCFFEJC

Similar Messages

  • Dreamweaver and CSS, Java editing an exsisting website to create your own template.

    HI I am new to Dreamweaver and programming,  but I have found a website that I like create something off of, not copying but utilizing some of its div tag positions and formatting.  When I bring the source into Dreamweaver and start to edit some of the things I want to change, I receive some errors that I’m not sure of how to work around.   For example, I want to extend one of the boxes they created and when I try to change it tells me “unable to open file because it could not be found on your local disk”  You can download the file by using the remote view of the file panels or by selecting the file in the related files toolbars” I believe this file is associated with the CSS.  Basically I’m trying to learn off this website and recreate something completely different but I’m not sure how to allow access or tell Dreamweaver to recognize a CSS from my computer.  Hope you understand, let me know what you think.

    Why not leave it on the page?
    If you want to eliminate it, you could try to replace this -
    <div class="tower-rail-item">
              <script type="text/javascript"><!--
                    google_ad_client = "ca-discovery-green_js";
                    google_ad_width = 160;
                    google_ad_height = 600;
                    google_ad_format = "160x600_as";
                    google_ad_type = "text_image";
                    //2007-01-30: indiv - left 2nd - skyscraper
                    google_ad_channel = "TreeHugger_Left_Tower";
                    google_color_border = "f0f0f0";
                    google_color_bg = "f0f0f0";
                    google_color_link = "4E5D76";
                    google_color_text = "000000";
                    google_color_url = "4E5D76";
                    google_feedback = 'on';
                    //--></script>
              <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
            </div>
    with this -
    <div class="tower-rail-item" style="width:160px;height:600px;>
    </div>
    (Note that you are showing more than what you would have deleted to remove it altogether in your post above.  To delete it altogether, change this -
            </ul>
            <div class="tower-rail-item">
              <script type="text/javascript"><!--
                    google_ad_client = "ca-discovery-green_js";
                    google_ad_width = 160;
                    google_ad_height = 600;
                    google_ad_format = "160x600_as";
                    google_ad_type = "text_image";
                    //2007-01-30: indiv - left 2nd - skyscraper
                    google_ad_channel = "TreeHugger_Left_Tower";
                    google_color_border = "f0f0f0";
                    google_color_bg = "f0f0f0";
                    google_color_link = "4E5D76";
                    google_color_text = "000000";
                    google_color_url = "4E5D76";
                    google_feedback = 'on';
                    //--></script>
              <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
            </div>
        </div>
    </div>
    to this -
            </ul>
            <div class="tower-rail-item">
            </div>
        </div>
    </div>
    It's not suprising that deleting something like that might change the layout of the page.  A well-built web page is very much like a well-built (and intricate) rock wall. Each element of the page somehow depends on the support and presence of each other element.  Remove one and things get kinda crooked....

  • JDeveloper 11g and 64bit Java

    Hi everyone.
    I have just installed JDeveloper 11g on my 64bit CentOS machine and everything worked as expected.
    Then I tried to use my 64bit JDK version 1.6.0.10 and after a little bit of tampering with the installation directories I was able to do that too.
    All it took was to link the $JDEV_HOME/jdk160_05 directory to the location of the actual JDK installation.
    To be honest I did not notice any changes in terms of speed.
    So my question is whether a 64 bit JDK is officially supported and if the whole 64 bit issue is worth it at all.
    Thanassis

    Hi,
    JDeveloper is on JDK 1.5, How can I configure it to be 1.4??
    I had the JDeveloper 10.1.3 also and it went ahead with some updates and now even that shows me that it's version is JDK 1.5
    The latest error I get from JDeveloper(From both 11g and 10.1.3) is here,
    Invoking loadjava on connection 'HR_CapRock_DEV' with arguments:
    -order -resolve -thin
    errors : class package1/mypackage/JavaStoredProc
    ORA-29521: referenced name java/lang/StringBuilder could not be found
    The following operations failed
    class package1/mypackage/JavaStoredProc: resolution
    oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
         at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:863)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:116)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:46)
         at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:97)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:473)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:360)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:284)
         at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:383)
    #### Deployment incomplete. #### Jun 18, 2007 10:17:31 AM
    *** Note ***
    One possibility for the deployment failure is that the target Database may not support JDK version 1.5. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
    How can I either downgrade JDK on the compiler(JDeveloper) to be 1.4 or, How can I resolve the error,
    ORA-29521: referenced name java/lang/StringBuilder could not be found
    Thanks,
    Sujith

  • One of my apps disappeared as an icon! When I double tapped my home button it showed up at the bottom of the page. When I held my finger the red edit button appeared on app and I hit it! App is gone. Can't redownload as shows installed. Help!

    One of my apps has disappeared from my screen! I tried double tapping home button and the app showed up in the icon bar. I tapped and held the app and the red edit box appeared in left corner of app. I then hit the red button and the app went away. I tried to redownload but the app store shows as a purchased and installed app. Not sure how to recapture the app. Help

    You did't delete it. It's still there. You just deleted it from your history (a handy thing, 'cause it drains battery with what you would call RAM-usage). Swipe from screen to screen to find it. The only thing you might have lost, is any unsaved data in it (depending on tha kind of app it was e.g. Pages). It is the equivalent of quitting the application on a computer.

  • ABAP and Java Edition on a same Machine ?

    Hi all
    Is it possible to install SAP ABAP (with DynPro Edition ) and Full JAVA Edition 2004s on a same Computer ?
    Please let me know the Pros and Cons of having it on the same machine !!!!
    Thanks
    Jack

    I am closing this Thread since the question was dealt in the following Thread.
    abap on java stack.
    Many Thanks

  • Communication between a web app and a desktop app

    Hi,
    I would like to know how i can make a web application communicate with a desktop application (protocols,technologies, patterns�).
    And if I'm using a jsp web app and a java se app?
    Indeed, i have a desktop app. which use some information provided by an user via a web app,and the work performed by the desktop app cannot be performed inside a web container.
    Thanks.

    you mean it the other way around I think. You have a desktop app that needs to communicate with a web application.
    There are multiple ways.
    1) use plain old XML combined with URLConnection / HttpClient
    2) use XML-RPC
    3) use SOAP
    and there are more even. You will need to decide for yourself which technology can do what you require.

  • Performance DB vs Java Edition

    Hi there,
    we've been investigating wether a (and when which) NoSQL-DB outperforms a standard SQL solution for our usecase:
    500.000 records bulk insert
    2k - 5k per record
    With 2 Indices
    Using Java API
    Multi OS: Linux, Windows, z/OS
    Berkeley DB performed best (bulk insert, selects and deletes) on our Windows-Tests (with 2GB memory).
    Unfortunately theres a huge gap between Berkley DB and its Java Edition performance.
    For a 20.000 record chunk insert Berkeley DB (using BTREE) takes 2000 - 3500 ms. When the cache is full and the first cache misses appear the inserting time grows and stays at arround 8000 ms. After a while st_cacheMiss decreases again resulting in 2000 - 3500 ms per insert.
    The JE starts with 4500 - 5000 ms per insert. After the first 200.000 records the cache is full and the nCacheMiss grows rapidly along with the inserting time (11s, 13s, 16s, ... 30s and even longer). There is no constancy like the non Java version shows to have.
    Is there any way to reach the Berkeley DB's performance with the JE? Esp. the constant insert time.
    We've tried already different CacheModes but default mode is the best.
    Setting je.log.faultReadSize=5120 leads to a slighter better perfomance, but still the inserting gets slower and slower.
    Since we need z/OS support we'd prefer to use the JE.
    Thanks for any help.
    Jonas

    Hello Jonas,
    Glad you found the main problem.
    I don't find it's productive to compare the two products' performance as they are so different, but I can help with tuning BDB JE.
    The first step is to take a look at the performance section of the FAQ:
    http://www.oracle.com/technetwork/database/berkeleydb/je-faq-096044.html
    If you have further questions on tuning please be sure to post:
    + Your EnvironmentConfig settings and je.properties (if any)
    + Your DatabaseConfig or StoreConfig settings.
    + A couple dumps of the EnvironmentStats covering the performance test time period, and be sure to clear the stats each time with StatsConfig.setClear(true).
    This is just the starting info for doing any sort of tuning with JE.
    I'm surprised that CacheMode.EVICT_LN didn't help, since moving the LNs out of cache immediately should reduce the burden on the evictor and Java GC. If you don't have enough cache to hold all LNs (see the FAQ entry on DbCacheSize), then EVICT_LN is usually beneficial. If you use EVICT_LN, be sure to also set EnvironmentConfig.CLEANER_LAZY_MIGRATION to false. Lazy migration retains LNs in cache and partially negates the benefits of EVICT_LN.
    As described in the FAQ, be sure your cache size is large enough to hold the BINs.
    The deferred-write mode is sometimes a win for bulk loading, but if you are doing pure insertions it may not help.
    I suggest enlarging these ENVIRONMENT_CONFIG settings if you haven't already:
    CLEANER_LOOK_AHEAD_CACHE_SIZE - try 1MB
    CLEANER_READ_SIZE - try 1MB
    See Durability if your database/store is transactional. Using NO_SYNC durability is much faster of course, but there are trade-offs. NO_SYNC is the default for a non-transactional database/store.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Use java edition and native edition at same time in a single java app

    Hi
    I have a situation where I need to use both versions of berkeley Db at the same time. I have an external library that I use that requires the Java edition and my own code that uses the native version. Unfortunately the source code of the library is not available and I don't want to redesign my program to use the Java edition.
    Some packages in je.4.0.103.jar and db.jar (version 5.1) contain the same naming structure and same classes eg. com.sleepycat.persist.EntityStore. I removed the duplicated packages in je.4.0.103.jar However it seems that the implementation is slightly different between the two version as I get
    java.lang.NoSuchMethodError: com.sleepycat.persist.EntityStore.<init>(Lcom/sleepycat/je/Environment;Ljava/lang/String;Lcom/sleepycat/persist/StoreConfig;)V
    When I simply had both versions available my code for the native version kept using the packages from the Java edition and the external library kept on using the native version and as a result I got loads of runtime errors.
    So how do I tell them apart. The problem is because both sets of packages have identical names and class names so Java does not know which ones to use. I am using eclipse so maybe there is some option where I can tell certain classes to use certain packages.
    Any ideas?

    Hi,
    We don't officially support using BDB and BDB JE from the same JVM process.
    It's possible to work around this limitation by creating two [url http://download.oracle.com/javase/1.4.2/docs/api/java/lang/ClassLoader.html] Java Classloaders  that load one of the two jar files. When calling BDB or BDB JE methods, the call must be bracketed with calls like this that cause the correct classloader to be used:
    ClassLoader saveLoader = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(/* specify correct loader for BDB or BDB JE here */);
    try {
       // do something with BDB or BDB JE
    } finally {
      Thread.currentThread().setContextClassLoader(saveLoader);
    }We are not experts on classloaders and we don't have an example of doing this. We have not done it ourselves, we only know that users have done it.
    I hope this helps.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • Where can I download the pure java edition app server for windows

    Where can I download a copy of the uncertified windows version of the app server listed below?
    OracleAS Java Edition v9.0.4
    Oracle HTTP Server
    OracleAS Containers for J2EE
    Oracle Enterprise Manager
    OracleAS TopLink
    Oracle JDeveloper
    Currently certified: Solaris, HP, Linux
    (I am not interested in the 10.0.3 preview version of the app server)
    I went to the Production release download area for the Application Server and they only let you download the Certified version of this SW which is for Linux, HP, and Linux.
    I went to the Pre-release download area and they only have the 10.0.3 preview versions listed for download.
    We want to install the above-mentioned version of an intel box running Windows for our integration point and we have linux boxes setup for production. We would like to use the same version of the app servers on all 3.
    Any ideas out there?

    Go into
    Applications / Utilities / Java Preferences.app
    and make sure you have the 'Enabled' boxes checked for both 64 and 32-bit.
    Finally, in
    Safari > Preferences | Security
    make sure the 'Enable Java' box is checked.
    Message was edited by: softwater

  • Open java app and insert text

    Hello All!
    I'm looking for a little help on an exact problem that seems to have been solved here before (but doesn't work for me).
    Here's the original archived thread:
    https://discussions.apple.com/thread/2631967?start=0&tstart=0
    The question asked is exactly the same....
    I have a java app for a Speco Technologies DVR. After opening the app, you must type in a rather long url and then click connect. If you enter the url, then quit the app, when you relaunch it, it does not remember the url that had been entered the previous time.
    I would like to create a script that will launch the Java app and then input the url (text string). I cannot get this to work.
    I've gotten as far as this:
    on run
    tell application "Finder" to activate open document file "DVRVIEWER(DO_NOT_DELETE).jar" of folder "Applications" of startup disk
    delay 5
    set myString to "192.168.0.118"
    repeat with currentCharacter in every character of myString
    tell application "system events"
    keystroke currentCharacter
    end tell
    delay 0.25
    end repeat
    tell application "system events"
    keystroke return
    end run
    AppleScript has a Syntax Error of "Expected end of line, etc. but found command name."
    Does anyone ( taylor.henderson where are you! ) have a fix, or even a better way to do this? Can I edit the existing .jar to have the info directly in there?
    I would actually love to add another section in there that fills in the username and password after entering in the IP address!
    Just for clarification on how this goes:
    Launch .jar.
    Window Launches and prompts for IP address
    Enter in IP address
    Press RETURN
    Windows disappears and new window appears and prompts for username and password
    Enter Username
    Press TAB
    Enter Password
    Press RETURN
    Thank you guys, I'm sure it's easy, but hey, for me Photoshop and Illustrator are a breeze :-0
    -AndyTheFiredog

    Hi
    andythefiredog wrote:
    Is it possible to use similar commands to maximize the java window?
    Yes.
    You must enable the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane
    Add these lines after the last line wich contains "keystroke return"
      delay 2
      tell (first process whose frontmost is true) to click button 2 of window 1 -- zoom
    Here's my test script ( the Speco camera demo), that works without problems here, I use the application "DVRJavaView4.1.jar", this script checks the existence of ui element (more reliable) rather than any delay.
    on run
         do shell script "/usr/bin/open '/Applications/DVRJavaView4.1.jar'"
         tell application "System Events" to tell (first process whose frontmost is true)
              repeat until exists window "Please Input DVR address"
                   delay 1
              end repeat
              keystroke "millapt.ddns.specoddns.net"
              keystroke return
              repeat until exists button "OK" of window 1
                   delay 1 -- wait until the login window is frontmost
              end repeat
              keystroke "user"
              keystroke tab
              delay 0.1
              keystroke "4321"
              delay 0.1
              keystroke return
              repeat until name of window 1 starts with "DVRJavaView"
                   delay 1 --wait while the login window is frontmost
              end repeat
              click button 2 of window 1 -- zoom
         end tell
    end run

  • Berkeley DB Java Edition (JE) and JRuby Interoperability

    I finally got around to doing a quick test of calling Berkeley DB Java Edition (JE) from JRuby (JRuby is a 100% pure-Java implementation of Ruby).
    Before we get to JE and JRuby you probably want to know the answer to this question: "Why you would want to run Ruby on a JVM?" The answer is threefold:
    1. Ruby Performance. A large amount of effort has been put into tuning contemporary JVMs (e.g. Hotspot, Java 6, etc.) and Ruby programmers (through JRuby) can benefit from these tuning efforts. The JRuby guys have set a goal to make JRuby the fastest Ruby implementation available and Sun is certainly throwing their weight behind that effort.
    2. Portability. JRuby is a Ruby interpreter that runs anywhere a Java 5 JVM runs. You download it as a single tar.gz and it will run pretty much anywhere.
    3. Legacy Code. JRuby makes legacy Java apps and libraries available to Ruby programmers (did you ever think you'd see the word "legacy" next to the word "Java"?).
    JE interoperability with JRuby is important because it means that Ruby programmers now have a simple, embeddable, ACID storage engine (JE) available to them.
    To test this interoperability, I cobbled together a simple Ruby test program which does the following:
    * Opens an Environment, Database, and Transaction
    * Creates 10 records with keys 1..10 and marshaled Ruby Time instances as the corresponding data. This uses the Ruby Marshal package for the data binding and the JE Integer binding on the key side. There's no reason why you couldn't use different marshaling packages or methods for keys and data.
    * Commits the transaction,
    * Performs a Cursor scan to read those 10 records and prints out the Time instances, and
    * Searches for and reads the record with key 5 (an arbitrary key) and prints out the Time instance that is the corresponding data
    By the way, hats off to the JRuby developers: all of this code "just worked", out of the box, and most of my two hour investment was spent learning enough basic Ruby to make it all work. If you already know Ruby and JE, then demonstrating this interoperability would take you all of about 10 minutes.
    This was all done at the "base API" level of JE and no modifications to JE were required. I used Transactions in my code, but there's no reason that you need to. Mark and I have been talking about how to integrate JE's Direct Persistence Layer (DPL) with JRuby and we think it can be done with some remodularization of some of the DPL code. This is exciting because it would provide POJO ACID persistence to Ruby programmers.
    Linda and I have been talking about whether it makes sense to possibly use Ruby as a scripting platform for JE in the future. Given how easy it was to bring up JE and JRuby, this certainly warrants some further thought.
    The Ruby code and corresponding output is shown below. By the way, if you see something that I didn't do "The Ruby Way", feel free to let me know.
    I'd love to hear about your experiences with JE and JRuby. Feel free to email me a charles.lamb at <theobviousdomain dot com>.
    require 'java'
    module JESimple
      require 'date'
      # Include all the Java and JE classes that we need.
      include_class 'java.io.File'
      include_class 'com.sleepycat.je.Cursor'
      include_class 'com.sleepycat.je.Database'
      include_class 'com.sleepycat.je.DatabaseConfig'
      include_class 'com.sleepycat.je.DatabaseEntry'
      include_class 'com.sleepycat.je.Environment'
      include_class 'com.sleepycat.je.EnvironmentConfig'
      include_class 'com.sleepycat.je.OperationStatus'
      include_class 'com.sleepycat.je.Transaction'
      include_class 'com.sleepycat.bind.tuple.IntegerBinding'
      include_class 'com.sleepycat.bind.tuple.StringBinding'
      # Create a JE Environment and Database.  Make them transactional.
      envConf = EnvironmentConfig.new()
      envConf.setAllowCreate(true)
      envConf.setTransactional(true)
      f = File.new('/export/home/cwl/work-jruby/JE')
      env = Environment.new(f, envConf);
      dbConf = DatabaseConfig.new()
      dbConf.setAllowCreate(true)
      dbConf.setSortedDuplicates(true)
      dbConf.setTransactional(true)
      db = env.openDatabase(nil, "fooDB", dbConf)
      # Create JE DatabaseEntry's for the key and data.
      key = DatabaseEntry.new()
      data = DatabaseEntry.new()
      # Begin a transaction
      txn = env.beginTransaction(nil, nil)
      # Write some simple marshaled strings to the database.  Use Ruby
      # Time just to demonstrate marshaling a random instance into JE.
      for i in (1..10)
        # For demonstration purposes, use JE's Binding for the key and
        # Ruby's Marshal package for the data.  There's no reason you
        # couldn't use JE's bindings for key and data or visa versa or
        # some other completely different binding.
        IntegerBinding.intToEntry(i, key)
        StringBinding.stringToEntry(Marshal.dump(Time.at(i * 3600 * 24)),
                                    data)
        status = db.put(txn, key, data)
        if (status != OperationStatus::SUCCESS)
          puts "Funky status on put #{status}"
        end
      end
      txn.commit()
      # Read back all of the records with a cursor scan.
      puts "Cursor Scan"
      c = db.openCursor(nil, nil)
      while (true) do
        status = c.getNext(key, data, nil)
        if (status != OperationStatus::SUCCESS)
          break
        end
        retKey = IntegerBinding.entryToInt(key)
        retData = Marshal.load(StringBinding.entryToString(data))
        dow =
        puts "#{retKey} => #{retData.strftime('%a %b %d')}"
      end
      c.close()
      # Read back the record with key 5.
      puts "\nSingle Record Retrieval"
      IntegerBinding.intToEntry(5, key)
      status = db.get(nil, key, data, nil)
      if (status != OperationStatus::SUCCESS)
        puts "Funky status on get #{status}"
      end
      retData = Marshal.load(StringBinding.entryToString(data))
      puts "5 => #{retData.strftime('%a %b %d')}"
      db.close
      env.close
    end
    Cursor Scan
    1 => Fri Jan 02
    2 => Sat Jan 03
    3 => Sun Jan 04
    4 => Mon Jan 05
    5 => Tue Jan 06
    6 => Wed Jan 07
    7 => Thu Jan 08
    8 => Fri Jan 09
    9 => Sat Jan 10
    10 => Sun Jan 11
    Single Record Retrieval
    5 => Tue Jan 06

    In my previous post (Berkeley DB Java Edition in JRuby), I showed an example of calling JE's base API layer and mentioned that Mark and I had been thinking about how to use the DPL from JRuby. Our ideal is to be able to define classes in Ruby, annotate those class definitions with DPL-like annotations, and have the JE DPL store them. There are a number of technical hurdles to overcome before we can do this. For instance, Ruby classes defined in JRuby do not map directly to underlying Java classes; instead they all appear as generic RubyObjects to a Java method. Granted, it would be possible for the DPL to fish out all of the fields from these classes using reflection, but presently it's just not set up to do that (hence the modification to the DPL that I spoke about in my previous blog entry). Furthermore, unlike Java, Ruby allows classes to change on the fly (add/remote new fields and methods) causing more heartburn for the DPL unless we required that only frozen Ruby classes could be stored persistently.
    On thinking about this some more, we realized that there may be a way to use the DPL from JRuby, albeit with some compromises. The key to this is that in JRuby, if a Java instance is passed back to the "Ruby side" (e.g. through a return value or by calling the constructor for a Java class), it remains a Java instance, even when passed around in JRuby (and eventually passed back into the "Java side"). So what if we require all persistent classes to be defined (i.e. annotated) on the Java side? That buys us the standard DPL annotations (effectively the DDL), freezes the classes that the DPL sees, and still lets us benefit from the POJO persistence of the DPL. All of this can be done without modification to JE or the DPL using the currently available release. I cooked up a quick example that builds on the standard "Person" example in the DPL doc and included the code below.
    require 'java'
    module DPL
      require 'date'
      # Include all the Java and JE classes that we need.
      include_class 'java.io.File'
      include_class 'com.sleepycat.je.Environment'
      include_class 'com.sleepycat.je.EnvironmentConfig'
      include_class 'com.sleepycat.persist.EntityCursor'
      include_class 'com.sleepycat.persist.EntityIndex'
      include_class 'com.sleepycat.persist.EntityStore'
      include_class 'com.sleepycat.persist.PrimaryIndex'
      include_class 'com.sleepycat.persist.SecondaryIndex'
      include_class 'com.sleepycat.persist.StoreConfig'
      include_class 'com.sleepycat.persist.model.Entity'
      include_class 'com.sleepycat.persist.model.Persistent'
      include_class 'com.sleepycat.persist.model.PrimaryKey'
      include_class 'com.sleepycat.persist.model.SecondaryKey'
      include_class 'com.sleepycat.persist.model.DeleteAction'
      include_class 'persist.Person'
      include_class 'persist.PersonExample'
      # Create a JE Environment and Database.  Make them transactional.
      envConf = EnvironmentConfig.new()
      envConf.setAllowCreate(true)
      envConf.setTransactional(true)
      f = File.new('/export/home/cwl/work-jruby/JE')
      env = Environment.new(f, envConf);
      # Open a transactional entity store.
      storeConfig = StoreConfig.new();
      storeConfig.setAllowCreate(true);
      storeConfig.setTransactional(true);
      store = EntityStore.new(env, "PersonStore", storeConfig);
      class PersonAccessor
        attr_accessor :personBySsn, :personByParentSsn
        def init(store)
          stringClass = java.lang.Class.forName('java.lang.String')
          personClass = java.lang.Class.forName('persist.Person')
          @personBySsn = store.getPrimaryIndex(stringClass, personClass)
          @personByParentSsn =
            store.getSecondaryIndex(@personBySsn, stringClass, "parentSsn");
        end
      end
      dao = PersonAccessor.new(store)
      dao.init(store)
      personBySsn = dao.personBySsn
      person = Person.new('Bob Smith', '111-11-1111', nil)
      personBySsn.put(person);
      person = Person.new('Mary Smith', '333-33-3333', '111-11-1111')
      personBySsn.put(person);
      person = Person.new('Jack Smith', '222-22-2222', '111-11-1111')
      personBySsn.put(person);
      # Get Bob by primary key using the primary index.
      bob = personBySsn.get("111-11-1111")
      puts "Lookup of Bob => #{bob.name}, #{bob.ssn}"
      children = dao.personByParentSsn.subIndex(bob.ssn).entities()
      puts "\nRetrieving children of Bob"
      while (true) do
        child = children.next()
        break if child == nil
        puts "#{child.name}, #{child.ssn}"
      end
      children.close()
      store.close
      env.close
    end

  • What's the difference between Java SDK and the Enterprise Edition?

    What's the difference between Java SDK and the Enterprise Edition? Are they both free?

    both r free but they are used in diffrent applications. sdk are used for simple apps that run on your computer while j2e (enterprise edition) are ment for large distributed computer systems that include servers and such. if you don't know the diffrence you probably wont need the the j2e, only the sdk.

  • Wrong XQuery Launch Configuration in Jdeveloper Java Edition?

    Hi,
    i want to use xquery from JDeveloper Java Edition.
    I have a simple application with one project. I added the XML, XML schema and xquery feature my simple customer.xml and customer.xq
    Then i try to run customer.xq and get " java.lang.NoClassDefFoundError: oracle/xquery/XQException"
    In the log is a classpath that points to nowhere e.g. the classpath in the log shows C:\source\oracle_common\modules\oracle.xdk_11.1.0\xquery.jar but the real file is under c:\source\jdeveloper\modules\oracle.xdk_11.1.0
    where can i set the "oracle_common" path?
    I just unzipped the downloaded zipfile jdevjava11120.zip
    thanks
    steffen
    Edited by: Steffen on 30.08.2011 11:58

    Any suggestions?
    Maybe this is a Bug in the JDeveloper Release?
    It is the Generic Release Java Edition: 11.1.2.0.0 for Windows.
    Just unzipped it and set the MW_HOME var to my directory (no spaces in path).
    I need the xquery feature and dont want to install the big studio edition.

  • JDeveloper java edition universal cannot start on mac osx

    I click the jdeveloper.app after downloading jdeveloper 11g java edition(universal) but nothing will appear
    my mac is running snow leopard with java 1.6. Plz Help me.

    Did you do this:
    http://download.oracle.com/docs/cd/E14571_01/install.1111/e13666/ojdig.htm#BDCFFEJC

  • Unable to redeploy ADF app and Java Cloud Console has errors

    Hi,
    I was redirected to this forum by the Oracle Cloud chat.
    I have trouble redeploying an ADF app. Yesterday the Virus-scan failed when deploying from Jdev 11.1.1.6 and directly from the Cloud Console. Today at first nothing seems to happen when trying to deploy from Jdev - it just blocks jdeveloper - but after 19 minutes and 33 secs it completed. The App is not working even though it may have completed the deploy.
    When trying to look at the Java Cloud Console both the "Data Sources"-portlet says "Error getting Data Sources" and the "Java Cloud Service Jobs"-portlet says "An error occurred while retrieving Java Cloud Service Jobs".
    My identity domain is "triala2kx"
    Any ideas?
    Best regards
    Kim

    I am experiencing the same stuck job on my java cloud instance - can Oracle support reset my job
    If I try to start/stop/redeploy or add an application I get the following error
    "Information
      The operation cannot be invoked because the service is running Java Cloud Service Job 170371. Wait for the job to complete, then re-run the operation."
    https://forums.oracle.com/thread/2548962
    https://forums.oracle.com/thread/2538152
    thank you
    /michael

Maybe you are looking for

  • My dumb question of the week

    I recorded audio tracks and processed them using Bias Peak. However, when I add two of the tracks to garageband and play them. The sound is lower and deeper than what I recorded them at. In affect I have a much deeper voice and it is a slower speech

  • How to use ObjectDataProvider component in WDA

    Hello all, I hv an urgent requirement to develop an OADP based application in SAP webdynpro Abap (to fetch tree like structure). i don't know how its possible, but i heard we can use ObjectDataprovider component to do the same. Does anybody know how

  • I have logic studio but i lost my serial number how can i find my serial number?

    Hi i have my logic studio and i just bought a new imac and tryin to install logic but i cant find my serial number... is there any way i can find my serial number or apple can re issue my serial? i need it....:(

  • Audio problems w/ DVD burned

    I am using iDVD 6.0.4. I created a DVD containing two movie clips from iMovie HD, and several .avi files. When previewed in iDVD, all movie clips play normally. When burned to disk (using DVD+R media), the audio for the long movie from iMovie (which

  • Internal Web Development Routing

    I am setting up a internal web development box for my company. Its nothing special, just an arch box with SSH, apache and virtual hosts. I have set all this up before however i need other computers to be able to view these virtual hosts within the LA