Distributing Java Directory with my custom application

I would like to distribute a JRE with my custom application.
On a fresh machine, I have managed to copy the entire j2re1.x.x_x directory and have been successful in running my applicaiton without running the usual Windows J2re installer.
Do I risk losing any J2RE functionality by doing this? Like the ability to run applets in internet explorer...etc???
It seems that the j2re1.x.x_x directory is self contained...
Thanks,
-Trevor
Message was edited by:
Superpuffs

I would like to distribute a JRE with my custom
application.
On a fresh machine, I have managed to copy the entire
j2re1.x.x_x directory and have been successful in
running my applicaiton without running the usual
Windows J2re installer.Providing a private JRE in this manner is commonly done to control what Java version is executed. It also allows the user to update their Java without affecting your Java.
Do I risk losing any J2RE functionality by doing
this? Like the ability to run applets in internet
explorer...etc???Yes - varies with the os. See Java's JDK Installation Instructions for details.
It seems that the j2re1.x.x_x directory is self
contained...
Thanks,
-Trevor
Message was edited by:
Superpuffs

Similar Messages

  • Accessing Java Object with out any application servers

    Hi,
    I would be much thankful if any one guide/suggest me how to
    access an java object with out using any application servers.I am
    having an java object which holds dummy data and an mxml file which
    contains some text fields. My plan was to access the java object
    and put the dummy data in the text fields. I am using RemoteObject
    for this. I am not able to proceed further. Please help me.
    Thanks in advance
    Regards
    Karun Kumar

    You can check The Merapi Project it's still in the
    development phase but it'll allow to an AIR app invoke a java class
    and run it as it were inside your app. But that's something you
    can't take into production yet, why don't u wanna use a server
    backend?

  • Running Java apllets with in C++ applications

    How can I run a Java applet in a C++ appliction? I need to make my application load and run a Java applet and communicate with it. Possibly use a little Java native so the Java applet can better communicate with the C++ application.
    So how would I dod this, if I can?

    Check out this part of the Java tutorial:
    http://java.sun.com/docs/books/tutorial/native1.1/invoking/index.html

  • Deliver the JRE with own desktop application - without installation

    Hi,
    the Java license allows to distribute Java along with a software application, if Java is needed to run this application. I do not want my users to worry about operating systems, java versions and installations. So my idea was to include the JRE in a subfolder of my application and to use a native launcher to start the jar containing the main program, using the JRE in the subfolder.
    It seems to work - and I'm quite sure that previous versions of the eclipse IDE did this exactly this way. Unfortunately, I'm not able to find any download containing the JRE without an installer. And first installing and then copying the extracted files seems to be a dirty workaround. Also it's not really clear if this would be conform to the java license.
    So my question would be if there's any clean approach for this.

    927748 wrote:
    Thanks for the pointer - although it's weird that there's no zip or something similar only containing the files (without an installer).That used to exist, but it was dropped in favor of only an installer (for Windows) long before the Oracle takeover. I guess the main reason was that when you provide the runtime as a zip file, that does not install any "default Java" (IE. a java.exe / javaw.exe in the windows system folder). Having a default java, which means being able to run java stuff without ever having to modify any PATH variable yourself like was already the case on Linux for ages, was kind of a big deal for Sun back in the day.

  • Request log file - Custom application version

    Application version : UNKNOWN in Request log file
    Hi,
    In the request log files for the programs registered with our custom applications, the application version is printed as UNKNOWN(first line of log file, next to custom application name).
    Initially FND_PRODUCT_INSTALLATIONS did not have record for custom application. But even after inserting the record with the version info,the log file still shows "UNKNOWN" .
    How to solve this?

    From what I can see, we've added this to the coming 10.1.3.4 patch release:
    Usage:
    java -jar admin_client.jar <connection_uri> <username> <password> -bindWebApp [<switch>]
    - Binds the specified WAR to a specified Web site and/or context root.
    Valid switches are:
    -appName <name> - Required The parent application's name.
    -webModuleName <name> - Required The Web module name.
    -webSiteName <name> - Optional The website name. If omitted,
    defaults to 'default-web-site'.
    -contextRoot <contextRoot> - Optional Context root for the WAR file.
    If omitted, the context root in
    the parent application's
    application.xml is used.
    -shared <true/false> - Optional Allows application to be shared
    between HTTP/HTTPS, defaults to
    'false'.
    -loadOnStartup <true/false> - Optional Allows application to be loaded
    on startup, defaults to 'true'.
    -accessLog <true/false> - Optional Allows application to enable access
    logging, defaults to 'true'.
    I don't know the schedule for 10.1.3.4 is -- the best bet is to place a request with Oracle Support and ask them if they have the information.
    -steve-

  • Distributed java compilation

    now i doing my final year project. project topic is "distributed java compilation with rmi". but i dont know how to split each classes in a java program.i also need to know what i do when inhritance and interfaces are used in the program.if u know how to do this plese help me.

    [http://www.seo4experts.com|http://www.seo4experts.com] Thank You,
    http://www.seo4experts.com
    Edited by: dhiren1983 on May 25, 2008 9:59 AM

  • Distribute Java jar application in Optical Disk with private JRE

    I am trying to ship my Jar application using DVDs and need the user just to run an exe and launch the program. So I have written a batch file which runs the jar using the private JRE shipped in the same DVD.
    Now when I run the batch file from the DVD it takes over one minute to launch the application because JRE is in the DVD as well.
    When I copy the JRE in hard disk and use that in my batch file to lauch the program it runs fast. However I wouldn't the path where the user copies the JRE in his hard disk. How would I detect the same in my batch file ?
    Even Launch4J takes same time as batch file.
    If I anyway have to ship JRE and ask the user install first ,how does batch file know the installed jre location if JAVA_HOME is not set. it would start using the jre in DVD and slow down. Anyway to make sure JAVA home is set to begin with ? May be 1st time if Java home is not set it copies to jre to C drive and then next time onwards it launches using the same Java home? What do you suggest
    [cross post |http://stackoverflow.com/questions/13372969/distribute-java-jar-application-in-optical-disk]
    Note I am using JDK8 , which is only developer preview now am I allowed to ship it in my DVD ?

    I wouldn't do that. Even if it is allowed, which I doubt, you're shipping unfinished and potentially dangerous software. I would also stick to the runtime only if I were you.I know, Sorry I meant shipping JRE only not JDK.
    My answer to your main question is: yep, its a tough problem and you're not going to crack it without special measures. One such special measure is to generate an installer using one of the many installer generators you can >find with Google.Yes I thought about installers but it would copy my jar and resource files to hard disk which I don't want to avoid piracy. Is there any way to access the rest of the files from DVD directly ?
    PS. My DVD vendor promisssed that he would burn them such a way that whole thing can't be copied to hard disk or imaged, I am yet to verify this.

  • Distribute JDBC driver with our application

    we are not an oracle customer, but we develop an application that has a component that leverages the JDBC driver to connect to the Oracle database. is it ok to distribute the JDBC driver with this application component? i don't see anything in the licensing policy that prevents us from doing so. do we need to be a member of the oracle partner network at a certain level?
    thx.

    we are not an oracle customer, but we develop an application that has a component that leverages the JDBC driver to connect to the Oracle database. is it ok to distribute the JDBC driver with this application component? i don't see anything in the licensing policy that prevents us from doing so. do we need to be a member of the oracle partner network at a certain level?
    You were REQUIRED to accept the license agreement prior to downloading the JDBC driver software. It is expected that you will actually READ the license agreement prior to accepting it.
    Oracle Database 12c Release 1 JDBC Driver Downloads
    You must accept the OTN License Agreement to download this software.
    That license agreement CLEARLY answers your question so you should re-read it. You are bound by ALL of the terms but this is copied directly from that link:
    License Rights
    We grant you a nonexclusive, nontransferable limited license to use the programs: (a) for purposes of developing, testing, prototyping and running applications you have developed for your own internal data processing operations; (b) to distribute the programs with applications you have developed to your customers provided that each such licensee agrees to license terms consistent with the terms of this Agreement, you do not charge your end users any additional fees for the use of the programs, and your end users may only use the programs to run your applications for their own business operations; and (c) to use the programs to provide third party demonstrations and training. You are not permitted to use the programs for any purpose other than as permitted under this Agreement. If you want to use the programs for any purpose other than as expressly permitted under this agreement you must contact us, or an Oracle reseller, to obtain the appropriate license. We may audit your use and distribution of the programs. Program documentation is either shipped with the programs, or documentation may accessed online at http://www.oracle.com/technetwork/indexes/documentation/index.html.
    Item (b) above begins with 'to distribute the programs . . .'
    Yes - you can distribute the JDBC driver as long as you abide by that license agreement in its entirety (not just the quote I provided).
    Any and all questions need to be directed to Oracle as noted in the License Agreement. No one on the forums can speak for Oracle.

  • How to create a user in UME Database using web dynpro java custom application

    Hi,
    Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
    My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
    Please suggest me.
    Thanks and Regards,
    Amit

    Hi Amit,
    Generated Documentation (Untitled)
    This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
    You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
    Hope it helps,
    D.

  • SSO Enabling a custom application with OAM

    Hi All !
    Am a bit stuck on a problem and need some urgent help. Actually we are trying to launch some custom-built (J2EE/.NET) web applications from the Oracle Portal with SSO i.e. once the user logs into the portal he would not have to log-in again to the applications which would be launched from the portal home page.
    We have successfully integrated the Oracle Portal with the OAM SSO, but facing some problems with SSO enabling the custom applications. Any help on what should be the ideal integration architecture and approach for SSO enabling the apps with minimum amount of modification of the application code.
    The licenses are available for OID, OVD, OAM.
    Thanks in advance. Any views/comments/links to useful material appreciated.
    Cheers
    Soumak

    If your custom application uses its own database for Authentication, then you have to modify the login process for your application. i.e. you have to trust the OAM to have done the authentication and then create any custom cookie that your application might use in its landing page.
    I am assuming that your custom application have some way of tracking if the user has logged in or not. You can protect the Custom application URL within OAM and once the user has logged in you can then generate your custom application cookie.
    Even if you use OVD, you stil have to modify login process in your custom appliation to trust the third party to have done the authentication.
    Thanks
    Ram

  • Error while accessing application with the custom components

    Hi experts,
    I have an application (HAP_MAIN_DOCUMENT) of component FPM_OIF_COMPONENT which uses a Webdynpro component with the same name (HAP_MAIN_DOCUMENT). This Webdynpro component (HAP_MAIN_DOCUMENT) uses 2 other components (HAP_DOCUMENT_BODY and HAP_DOCUMENT_HEADER). For my client requirement, i need to create the custom components by copying from standard components as the UI layout changes are quiet huge and not manageable with the enhancements. To accomodate this i have changed the standard configurations by replacing the standard web dynpro components with the custom ones copied. Apart fomr this there are no changes to the standard.
    While trying to access the application, i am getting the error as Null object reference.
    the details of the error is as below. Please advice.
    Heading 1: h1. P:ortal Error
    The URL http://******************/sap/bc/webdynpro/sap/HAP_MAIN_DOCUMENT/ was not called due to an error.
    Note
    The following error text was processed in the system DSD : Access via 'NULL' object reference not possible.
    The error occurred on the application server ddrsap12_DSD_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: WDDOINIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/LUR96POELQNL3TIUWPYS==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
    Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
    Method: INIT of program CL_WDR_VIEW_MANAGER===========CP
    Method: INIT_CONTROLLER of program CL_WDR_INTERFACE_VIEW=========CP
    Heading 2: h2. ST22 - Dump Analysis
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught in
        procedure "WDDOINIT" "(METHOD)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component.
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    Information on where terminated
        Termination occurred in the ABAP program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP" -
         in "WDDOINIT".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 4640
        of the (Include) program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU".
        Termination occurred in a Web Dynpro application
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
        The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
        procedure "WDDOINIT" "(METHOD)", but it was neither handled locally nor
         declared
        in the RAISING clause of its signature.
        The procedure is in program "/1BCWDY/LUR96POELQNL3TIUWPYS==CP "; its source
         code begins in line
        4619 of the (Include program "/1BCWDY/B_LUXVEOR5WUW66V6QRRNU ".
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
          Name
       33 METHOD       /1BCWDY/LUR96POELQNL3TIUWPYS==CP    /1BCWDY/B_LUXVEOR5WUW66V6QRRNU       4640
          CL_VW_HEADER_MAIN_CTR=>WDDOINIT
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
       32 METHOD       /1BCWDY/LUR96POELQNL3TIUWPYS==CP    /1BCWDY/B_LUXVEOR5WUW66V6QRRNU         70
          CLF_VW_HEADER_MAIN_CTR=>IF_WDR_VIEW_DELEGATE~WD_DO_INIT
          Web Dynpro Component          ZWD_HAP_DOCUMENT_HEADER
          Web Dynpro Controller         VW_HEADER_MAIN
       31 METHOD       CL_WDR_DELEGATING_VIEW========CP    CL_WDR_DELEGATING_VIEW========CM003     3
          CL_WDR_DELEGATING_VIEW=>DO_INIT
       30 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM00Q     3
          CL_WDR_CONTROLLER=>INIT_CONTROLLER
       29 METHOD       CL_WDR_VIEW===================CP    CL_WDR_VIEW===================CM00K     5
          CL_WDR_VIEW=>INIT_CONTROLLER
       28 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM002     7
          CL_WDR_CONTROLLER=>INIT
       27 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM008    70
          CL_WDR_VIEW_MANAGER=>GET_VIEW
       26 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM005    23
          CL_WDR_VIEW_MANAGER=>BIND_ROOT
       25 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM00B    17
          CL_WDR_VIEW_MANAGER=>INIT
       24 METHOD       CL_WDR_INTERFACE_VIEW=========CP    CL_WDR_INTERFACE_VIEW=========CM004    11
          CL_WDR_INTERFACE_VIEW=>INIT_CONTROLLER
       23 METHOD       CL_WDR_CONTROLLER=============CP    CL_WDR_CONTROLLER=============CM002     7
          CL_WDR_CONTROLLER=>INIT
       22 METHOD       CL_WDR_VIEW_MANAGER===========CP    CL_WDR_VIEW_MANAGER===========CM008    70
          CL_WDR_VIEW_MANAGER=>GET_VIEW
    Thanks In advance,
    Regards,
    Ravi.

    Hi, I'm closing this thread and opening the same in another as the content got pasted in reader un friendly format and i'm unable to change the format.
    Thanks,
    Ravi.

  • XI Interoperability with C-based Custom Applications

    How can XI interoperate/connect to C-based custom applications?  What connectivity option (i.e. adapters) can be used for both inbound and outbound processing?  Please provide the best approach using the existing technology adapters, existing 3rd-party adapters, other means, while excluding the development of custom adapters.

    Hi,
    Am not sure about HTTP, but for the file part it iwll be quite simple .
    I learnt C during my university days and from what I remember, you can write and read file using standard C / C++ classes / functions.
    So, when the C application needs to talk / send data to XI, it can write a file using the standard functions available and using the sender File adapter of XI, you can poll the same file and do the needful in XI ( including Content Conversion if the C application is to create a TXT file).
    In the other case if XI needs to send data to the C application, then XI can write a file and the C application can read this file using its standard functions.
    With respect to XI, you will be dealing with a File Bases Interface with the C application. And the process will be just like any other file interface.
    Regards
    Bhavesh

  • Issue with NI-CAN 2.7.5 DLL(s) install for custom applications

    We have custom applications built on top of NI-CAN for Windows using the MS Visual C lib and header. In the past, to run our applications, we simply installed the latest NI-CAN package. Our applications would run, find and access any runtime DLLs, and be fine.
    With NI-CAN 2.7.5 though, we are seeing errors in our applications that suggest they cannot see the required DLL necessary to operate. The error is:
    "A dynamic link library (DLL) initialization routine failed."
    Did anything change in 2.7.5 with regards to the placement or installation DLLs required to run custom NI-CAN applications?

    I was able to get a little more information. Using Visual Studio to get a debug log, I see the following. With 2.7.4, the NI-CAN DLLs load and it work fine:
    'MATLAB.exe': Loaded 'E:\jobarchive\Btm1\2014_02_21_h12m30s17_job89749_pass\matlab\toolbox\vnt\vnt\mexNICAN.mexw32', Symbols loaded.
    'MATLAB.exe': Loaded 'C:\Windows\System32\Nican.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanFrm.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalu.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalut.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipal32.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanpu.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanCfq.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\nicanDBA.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanTsk.dll'
    'MATLAB.exe': Loaded 'C:\Windows\System32\NiSpyLog.dll'
    On 2.7.5 though, additional error information shows up:
    'MATLAB.exe': Loaded 'T:\12\jpyle.Btm1.j86236.sb\matlab\toolbox\vnt\vnt\mexNICAN.mexw32', Symbols loaded.
    'MATLAB.exe': Loaded 'C:\Windows\System32\Nican.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanFrm.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalu.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipalut.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\nipal32.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\NIcanpu.dll', Cannot find or open the PDB file
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanCfq.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\nicanDBA.dll', Binary was not built with debug information.
    'MATLAB.exe': Loaded 'C:\Windows\System32\NicanTsk.dll', Cannot find or open the PDB file
    'MATLAB.exe': Unloaded 'T:\12\jpyle.Btm1.j86236.sb\matlab\toolbox\vnt\vnt\mexNICAN.mexw32'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\Nican.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NicanTsk.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NIcanFrm.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NicanCfq.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nicanDBA.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\NIcanpu.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nipalu.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nipal32.dll'
    'MATLAB.exe': Unloaded 'C:\Windows\System32\nipalut.dll'
    You can see it tries to load under 2.7.5, get a bunch of PDB file issues and then immediately unloads.
    Inspecting the DLLs under 2.7.4 vs 2.7.5, they look identical except for the nicanDBA.dll. That's the only one that has a version difference between NI-CAN versions. In both 2.7.4 and 2.7.5, all DLLs are being properly installed to \windows\system32 as expected so both sets are fully accessible path-wise.
    Please advise.

  • RSA Certificate Manager with Sun Java Directory Server

    Has anyone integrated Sun Java Directory Server with RSA Certificate Manager

    we have the Key Managment System in our DSEE 6.3 through a proxy. We had to enable some OIDs for it to work.

  • Customizing Applications with MDS

    I have been investigating static customization using MDS and have read through [Customizing Applications with MDS|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/customize.htm] (and the seemingly identical copy in JDeveloper's Help Center). However, I have been unable to customize my application because I get this error (some parts have been abbreviated) when starting JDeveloper with the Customization Developer Role:
    Error initializing MDS configuration for application "file:/C:/Documents and Settings/..._adf_main.jws". Customizations disabled for this application. MDS-00035: cannot load the class: oracle....uiview.IndustryCC.
    The problem is that I do not know how to add the particular class to JDeveloper's classpath as instructed in section 33.2.1.4 of the documentation. I have added my class to JDeveloper's classpath via dropping a .jar into lib/ext of the JRE but then had horrible dependency troubles.
    While walking through the documentation, I discovered that Example 33-1 and its surrounding documentation are out-of-date because getIDPrefix() is final in CustomizationClass and thus cannot be overridden as the documentation instructs.
    I am using JDeveloper Version 11.1.1.1.0 Build JDEVADF_11.1.1.1.0_GENERIC_090421.1521.5361.
    How do I successfully enter customization mode for my application?

    Thank you. I got it working.
    All I needed was the path provided at Create and Deploy a Customization Class, item 7.
    I will note that the documentation does not have any slashes in its path:
    <JDEVELOPER_HOME>jdeveloperjdevlibpatches<jar_file_name>
    I got it to work after I copied the jar file I had already prepared to:
    <JDEVELOPER_HOME>/jdeveloper/jdev/lib/patches/<jar_file_name>

Maybe you are looking for