Executable JAR using JDeveloper

Hi,
I created a very small Desktop Application using JDeveloper.
What I want to do is to create an executable JAR file. I mean, is there any option in this tool like the one in Eclipse. Once executable JAR is created, I must be able to run it just by double clicking the JAR file.
So, can some1 please help me with the steps ?
JDeveloper : 11.1.1.6.0

For executable jar you will need to add:
Main-Class: your_package.YourClassto META-INF/MANIFEST.MF file inside jar.
I don't think that JDeveloper support custom manifest files so you can modify this content after jar creation(for example, with some zip/rar/7z tool)
Also, if your app require some additional jars, then you will need to add this line to manifest:
Class-Path: additional.jarDario

Similar Messages

  • Creating executable JAR from JDeveloper 11

    Hello
    Iv'e been using JDeveloper for developing my Java desktop app. It includes my classes and some additional external jar's. From within JDeveloper everything works fine, but now I want to deliver my app as a single JAR file (including the external jars).
    I searched and searched and couldn't find such an option. I tried creating deployment profiles and deploy my app but the resulting JAR was very small, did not include the utility jars and did not run in double clicking.
    I tried both Eclipse and NetBeans and they produced nice running executable jars of the sane application with only a few clicks. However, Im used to JDeveloper and would rather continue working with it. Is there a way to create a complete executable jar from JDeveloper (or maybe a plugin) ?
    If not than how do I do it manually so I can write my own generator ? (I know the basics, but how do I include the library jars ?)
    Thanks
    Guy Shilo

    Hi
    If you to want include external jars, don't keep those inside src folder but outside to that folder. Then only framework consider this as resources and will be packed while deploying. You can ensure it by creating a simple file using wizard. It will be displayed in application navigator under the folder 'Resources'
    See the related thread from How to read .txt file from adfLib jar at model layer using relative path . See what
    Frank Nimphius has replied. You may get some idea
    Edited by: Raguraman on Dec 13, 2011 10:12 PM

  • Problem creating jar using JDeveloper

    I'm creating jar using JDeveloper..I need to keep two dll files in the jar. But if I create the jar in JDeveloper, it can't include the dll files. If the jar is created from command prompt, it can include the dll files. Can anyone tell me how can I include these dlls in my jar?

    Putting DLLs in your classes directory is dangerous (eg. Run->Clean Project.jpr will remove it). I use a different way to achieve that:
    When you double click on the deployment profile you'll see a dialog window containing a list of items. The one of interest is the one called File Groups. Select this item, click on the New button and add a new file group just for your DLLs.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Executable JAR using ADF displays JBO-26061: Error while opening JDBC conn.

    I'm trying to create a simple Java Desktop Application (ADF) in JDeveloper 11g (11.1.2.3.0) which will run on Windows XP (SP3) simply by clicking the JAR file. I have encountered many problems and found solutions but I am now completely stuck. Currently when I execute the JAR I get (oracle.jbo.DMLException) JBO-26061: Error while opening JDBC connection.
    Inside JDeveloper it runs perfectly but I want it to run without JDeveloper. If I run the executable string JDeveloper displays when you click run, this also works fine.
    Here's what I've done -
    Created a demo app using the 'Building a Java Swing application with Oracle ADF' tutorial as a proof of concept.
    Created a deployment profile 'Client Jar Deployment Profile'
    Create a new file group to include all the JAR files.
    Create a manifest.mf listing all the JAR files - making sure not to exceed 70 bytes on each line and every new line starts with 2 spaces and at the end of the line there is no trailing spaces.
    Made sure the jps-config.xml and cwallet.sso is included in the META-INF folder of the JAR.
    I've deployed the JAR file to a folder which contains all the associated JAR files, made sure the manifest.mf is pointing to the correct files and executed my jar (double clicked it) after a short pause (2-3 seconds) that's when the error pops up.
    Here is the error stack
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:218)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
         at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:72)
         at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:61)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:968)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:298)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)
    Here is my manifest
    Manifest-Version: 1.0
    Class-Path: adf-controller-security.jar adf-dt-at-rt.jar adf-share-bas
    e.jar adf-share-ca.jar adf-share-security.jar adf-share-support.jar a
    dfdt_common.jar adflibrary.jar adflogginghandler.jar adfm.jar adfshar
    embean.jar adftransactionsdt.jar bc4j-mbeans.jar bc4jimdomains.jar ca
    che.jar commons-cli-1.0.jar commons-el.jar db-ca.jar dms.jar dvt-jcli
    ent.jar dvt-utils.jar fmw_audit.jar forms-1.0.6.jar groovy-all-1.6.3.
    jar identitystore.jar inspect4.jar jacc-spi.jar javatools-nodeps.jar
    javax.activation_1.1.0.0_1-1.jar javax.jsp_1.2.0.0_2-1.jar javax.mail
    _1.1.0.0_1-4-1.jar javax.management.j2ee_1.0.jar javax.management_1.2
    .1.jar javax.security.jacc_1.0.0.0_1-1.jar javax.servlet_1.0.0.0_2-5.
    jar jdev-cm.jar jdev-rt.jar jewt4.jar jmf.jar jmxframework.jar jmxspi
    .jar jps-api.jar jps-common.jar jps-ee.jar jps-internal.jar jps-manif
    est.jar jps-unsupported-api.jar jsp-el-api.jar ldapjclnt11.jar list.t
    xt mdsrt.jar META-INF model ojdbc6dms.jar ojdl.jar ojmisc.jar oracle-
    el.jar oracle.ucp_11.1.0.jar oraclepki.jar orai18n-mapping.jar orai18
    n.jar oramds.jar ordhttp.jar ordim.jar osdt_cert.jar osdt_core.jar os
    dt_ws_sx.jar osdt_xmlsec.jar resourcebundle.jar runtime12.jar share.j
    ar xml.jar xmlef.jar xmlparserv2.jar
    Main-Class: view.Form
    All of these JARs are in the same folder as my JAR.
    Here's the tutorial i followed - http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_19/jdtut_11r2_19.html
    Any help would be greatly appreciated. Perhaps I'm misunderstanding and Java/ADF applications are not supposed to work without the WLS.
    Many thanks,
    Christian.
    Edited by: ChrisDugdale on Nov 15, 2012 2:41 AM

    That's excellent advice, changing the connection type, I tried this before, it still gives the same error so I didn't think it had much to do with my problem but what I didn't notice is it gives a more meaningful error stack - see below, compared to my original error stack, i think you're on to something good! So, clearly the password isn't being packaged into the JAR, now I thought this might be happening which is why I added "DeployPassword" in the connections.xml file but that hasn't made a difference. I can see the connections.xml in my JAR if i expand it in the META-INF folder, so I know that's included ok, along with jps-config.xml/adf-config.xml/adfm.xml/cwallet.sso/MANIFEST.MF also in the META-INF folder (inside the JAR)
    I can see the password element contains no value, but I tried changing this before with no luck. I'll try again.
    connections.xml -
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <References xmlns="http://xmlns.oracle.com/adf/jndi">
    <Reference name="FOD" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="FOD" xmlns="">
    <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="sid">
    <Contents>DEVSHED</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="subtype">
    <Contents>oraJDBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="port">
    <Contents>1521</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="hostname">
    <Contents>moe</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="user">
    <Contents>fod</Contents>
    </StringRefAddr>
    <SecureRefAddr addrType="password"/>
    <StringRefAddr addrType="DeployPassword">
    <Contents>true</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="oraDriverType">
    <Contents>thin</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    </References>
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)
    Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
         at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
         at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         ... 31 more
    ## Detail 0 ##
    java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
         at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
         at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)
    ----- Level 1: Detail 0 -----
    java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:397)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:389)
         at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:689)
         at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:452)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:384)
         at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:811)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:678)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:238)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:144)
         at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:195)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:166)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:580)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:313)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:102)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:52)
         at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:129)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:978)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1147)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6838)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:130)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:213)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:600)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:417)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9053)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4606)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4697)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2536)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2346)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3245)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:571)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:504)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:499)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:517)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:867)
         at oracle.adf.model.binding.DCBindingContainer.setDataControl(DCBindingContainer.java:571)
         at oracle.jbo.uicli.jui.JUPanelBinding.useDefaultDataControl(JUPanelBinding.java:912)
         at oracle.jbo.uicli.jui.JUPanelBinding.setup(JUPanelBinding.java:125)
         at view.Form.setBindingContext(Form.java:370)
         at view.Form.main(Form.java:425)

  • Executing Jar using Javaw

    Plz help; I have wasted several hours on this and I'm stumped. I have searched this forum and others, and could not find anything that solved these problems. It's probably pretty basic.
    Two Java applications need to run in Win98 without a DOS window (i.e., with javaw.exe.) The applications run with javaw.exe if I create a Shortcut to javaw.exe in the SDK and edit the properties to include the paramaters. For example:
    C:\j2sdk1.4.0_02\bin\javaw.exe -jar C:\JavaApps\LCSv1_0\lcs_sign.jar
    The applications will be installed on on systems with the JRE only.
    I have two questions:
    1. One app will be started from a batch file. What is the proper syntax for this batch file? I have tried the following using advice from Java forums but it didn't work:
    set PATH=%PATH%;"C:\Program Files\Java\j2re1.4.0_02\bin"
    start javaw.exe -jar C:\JavaApps\LCSv1_0\lcs_sign.jar
    EXIT
    First of all, when I execute this I get a DOS window. I was given to understand (perhaps incorrectly) that there would be no window. Secondly, the application doesn't execute, and the batch execution finishes and gives no error message in the DOS window that pops up.
    Is there a way to execute a Java program without the DOS window and not from a Shortcut? If not, is there a better way to do this?
    2. If I try to create a Shortcut (to the other application, which is Swing-based), I get a message "Could not find main class. Program will exit.". I have set the "Start in" directory for the shortcut as the directory of the jar file is in (C:\JavaApps\LCSv1_0\).
    Thanks for your help.

    Found the solution. Incomplete JRE extensions, moving from SDK to JRE.

  • Kill executable jar

    hi all
    i made an executable jar (using Main-Class directive in the manifest file)
    my problem is that i dont know how to kill that process in windows
    the running processes list shows : java.exe
    is there any way to give my jar a lable ?
    any id will be helpfull .
    Sharon

    The windows process will show java.exe but the windows application may give you a hint. If its started from the command prompt the application will show what command started it. If its a GUI application the name will be the main frame title. If its a non gui server started by javaw you get no hint, it doesn't even appear in the application list.

  • I dont see the point of using Ant Build compared to executable Jars?

    I always think that to complete a project you successfully build it. And i thought that building is done automatically if you create an executable JAR? So what is ANT for?
    Arent Executables is the same as building your project?

    paulcw wrote:
    They are all unnecessary for a single person doing small projects (although often still necessary).I assume you meant "(although often still useful)".
    And furthermore you may find that the vast majority of your time programming professionally isn't the programming, but just managing these other aspects.It is a good day for me when that is not the case ;-)
    There should be a class in university: "industrial practices". It would have little or no CS theory but all the stuff that you learn the first year on the job (often painfully).The company I work in really likes to hire young developers, which often means that they come right from school (gladly, we have some good IT-centric schools in the area). They usually get some introduction in some of these aspects in school (usually mostly version control, bug tracking and a little bit of automated builds). But even if they heard about them, used them for a simple project and get the general idea, they still don't believe them to be necessary until they see what a pain in the back it can be not to have all that in a medium-sized project.

  • Why -jar option used to install a software which is in executable jar file?

    Hi all,
    i have a query, i have a generic installer which is used to install the oracle weblogic 10.3 software in unix platform(i.e., which is in .jar extension) which is executable jar file.
    To install this software which have to use -jar option to install
    java -jar net_server<version>_generic.jar
    my question that why we use -jar option to install or to extract the software
    can any one clarify my doubt...
    thanks in advance
    abhi
    Edited by: sumanth_abhi on Jan 27, 2009 11:50 PM

    According to the Jar Guide (http://java.sun.com/j2se/1.4.2/docs/guide/jar/jarGuide.html)
    Executable Jar Files
    On Microsoft Windows systems, the Java 2 Runtime Environment's installation program will register a default association for Jar files so that double-clicking a Jar file on the desktop will automatically run it with javaw -jar. Dependent extensions bundled with the application will also be loaded automatically. This feature makes the end-user runtime environment easier to use on Microsoft Windows systems.
    The Solaris 2.6 kernel has already been extended to recognize the special "magic" number that identifies a Jar file, and to invoke java -jar on such a Jar file as if it were a native Solaris executable. A application packaged in a Jar file can thus be executed directly from the command line or by clicking an icon on the CDE desktop.
    Despite that every JAR file can be executed as a program if and only if the META-INF/Manifest.mf contains the Main-Class tag. This done through java -jar jarfile.jar
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create executable jar in eclipse using linking in compiler

    Hi,
    I have a project in Eclipse. I wrote already an ant build file for creating an executable jar which includes all project files.
    Now I want to create a second executable jar which is a subset of the project (a limited number of classes are necessary).
    I have a main class and I was looking for a way to generate a jar file which includes the main class and all the depending classes.
    Is there a way to do it? With ant or with another tool?
    Is it possible to compile a project given a main class, and include all depending classes?
    Regards,
    Biebel
    Edited by: biebel1975 on Jan 7, 2009 10:21 AM

    biebel1975 wrote:
    Some more information:
    When I compile all the classes, the jar file is +/- 3.5Mb inclusive the server side logic.
    The subproject I want to build, should be less then 1Mb (Only some screens and beans, no business logic ((only +/- 10% of the projects code) )).
    My question is: How can I create a executable jar with only the necessary class files which depends on the main class. (Linked with the imports).
    Is there a tool to do that? Can it be done with an ANT script? If so, how does the script looks?
    What are you talking about?
    You already said that you are using Ant.
    Ant uses script files.
    Since you have one with X items in it and you want something new with X-Y items in it the obviously it would make sense to construct an ant script that does less than the other ant script.
    The following provides a huge amount of information about Ant.
    [http://ant.apache.org/resources.html]
    Other than that no one can tell you want your Ant script will look like except that it will do less than the one that you already have.

  • How to execute SQL Quiries in BPEL using JDeveloper

    Hi All,
    I am very new user of Oracle JDeveloper and BPEL. I am trying to develop a process flow in JDeveloper using BPEL and get stuck when I was trying to execute a SQL quiry in the flow.
    How to execute SQL quiries using JDeveloper and BPEL?????????????
    Possibilities might be..
    1.Configring Database Adapter
    2.Using Java Embedded activities of BPEL
    However, any of the above mentioned way is not clear with me how to implement it to get the query run in the process flow.
    It will be great if anyone could hepl me with this concept....
    Thanks in advance
    -Prabha

    ... or perhaps just scan the last 5 posts before you post a new thread, in which case, you'd discover that someone else already asked Help needed in executing SQL query... and got the same answer

  • Making executable jar file the database using JTable

    How can i make an executable jar file if I will use a JTable on my database?Can you tell me how?
    Thank you !!

    dantte wrote:
    in truth, ur question is not clear enough. elaborate on what exactly it is u want, and what u ar truin to achieve.You don't seem to know enough English, let along Java, to be answering questions here.
    %

  • Making Executable Jar file using java Application

    Following Program creates the jar file at specified location. but, I wonder why this file does not execute on double clicking on it, in spite of that the Manifest file contain correct main class file name
    //MakJar.java
    import java.io.*;
    public class MakJar
    public static void main(String[] args)throws IOException{
    Process p;
    String str="D:\\Himesh\\JFiles";
    try {
    BufferedWriter out = new BufferedWriter(new FileWriter(str+"\\mainClass.txt"));
    out.write("Main-Class: TestFrame\n");
    out.close();
    } catch (IOException e) {
    try
         p=Runtime.getRuntime().exec("cmd /c D:\\Java6\\jdk1.6.0\\bin\\javac.exe "+str+"\\TestFrame.java");
         p=Runtime.getRuntime().exec("cmd /c D:\\Java6\\jdk1.6.0\\bin\\jar cvmf "+str+"\\mainClass.txt "+str+"\\Demo.jar "+str+"\\*.class");
    catch(IOException e)
    System.err.println("Error on exec() method");
    e.printStackTrace();
    }

    Sir,
    On execute the jar using a "java -jar. . ." command. it gives the error--
    "Exception in thread "main" java.lang.NoClassDefFoundError : TestFrame"
    On Extracting the files from jar file made by the java program,i found that the manifist file ( containing the name of main class) and t the class file are included in the jar file.
    But if I make the jar file manually it works perfectly.I have even reinstalled the java but the problem persists
    Same thing happen if i use MS-DOS batch file.
    ??????If i put the batch file in the same directory and execute it The resulting jar file works,But
    ??????if the batch file is executed from outside the directory The resulting jar file fails execute.
    what should i do???

  • Using classpath in executable jar creation

    Hai all
    I want to create an executable jar file for my aaplication...I know how to do that using jar command..My application in using many jar files.So in manifest file I have to declare the classpath property....
    The problem is the the number for jar files more so that when I give names of all it is giving me error message while running the jar commad..
    Can I add all the jars to a zip something like file so that I have to mention only 1 entry for classpath...
    I am not sure it will work...I think that it may not work..
    I s there any other alternate to do the same
    Thanks

    Yes it is the error..We cant use as many charecteres as our wish in one line in manifest file......I understood the error ...So to overcome this I have to include all the jars to a single file (zip or jar) I am asking will it work properly or any other method to overcome this issue
    Thanks

  • Download and execute jars without using javaws

    Hi
    I need to download and execute jars from remote computer. I hava jnlp file, but I strongly need to execute jars without using java web start.
    What is the best way to do this task?
    Thanks in advance :)
    Edited by: joekidd on Aug 3, 2009 5:55 AM

    joekidd wrote:
    The easiest the best:)The easiest way is to hire the programmers who made the Jar, to consult on your behalf to install the program, or advise on its installation. BTW - you said earlier.. "strongly need to execute jars without using java web start." Why? What advantage does that provide?
    So I download needed jars, add them to classpath and run my application (I get all information from jnlp file and pass them to vm and my application).
    But following exception occurs "Exception in thread "main" java.lang.NoClassDefFoundError: javax/jnlp/ServiceManager". What should I do?Get in contact with those programmers, because this app. is dependant(1) on functionality that is only available to web start apps.
    (1) Unless they put that call in there, just to ensure no one can run the app. outside web start. ;-)

  • How to pass -Hotspot or -Xingc to the jvm when using an executable Jar?

    Hi, my problem is that when i start my application with the jar-File ("Main-Class: " in the Manifest), it 's very slow.
    When i start it with
    java -hotspot -Xincgcit works fine.
    So my question is: how do I have to set these options in the Manifest of the Jar-File?
    Thanks a lot in advance.
    Michael

    So my question is: how do I have to set these options in the Manifest of the Jar-File?You don't.
    An executable jar supplies information on running it to whatever runs it. The parameters "-hotspot -Xincgc" are parameters to a specific jvm and as such belong to the jvm not the jar.
    If you want your stuff to run with that then do one of the following:
    -Provide an install that sets the computer up that way.
    -Provide a script for each OS that you support that runs it with the required options (forget the executable jar.)

Maybe you are looking for

  • My iMac has started powering itself off

    I have an iMac with a 3.2 GHz Intel i3 core, it is about 9 months old now.  A few weeks ago I upgraded the OS from Snow Leopard to Lion 10.7.1.  The install and upgrade went very smoothly, but I started to see that my machine now turns itself off rat

  • Using web cam with a Mac Pro

    Hey All... Was hoping to get some pointers on get a web cam working on a mac pro so that I can use jabber to video chat from it. Any special brands that I would look at? Today at the local computer store looked like everything said yes to Windows but

  • FileOpenDialog appearing 2 times

    Hi all, we are getting fileDialoag box two times when we execute this code.please help us.We want that dialog box should appear only once.Thanks in advance. code response.setHeader("Content-Disposition","attachment;inline;filename="+filename); respon

  • ISR ADOBE Form Error

    HI All, I have created custom scenario in QISRSCENARIO and designed adobe form. I have configured everything. When i try to run the scenario in Portal i am getting the following error: The initial exception that caused the request to fail, was:    ja

  • Flash skins and designers

    Hello, I'm primarily a Designer and I'm trying to  create multiple themes for a flex application. Each theme/look will be replaced every couple of months. It seems as though Flash (at least from a designers perspective)   is the best way to do that o