Should I install a private JRE with my application.

I confused on the need for the java_home environment variable. Is this used just for java applications or by the JVM too. The latter would seem a problem.
For example, I want to install an application that uses JRE 1.5 or greater. If an older application is later installs an older JRE and modifies the java_home variable to match (on a users machine), my application will not run. Therefore, should I just install my own JRE in a private folder and use that instead or will that be affected by the changed java_home variable?
This seems worse than MS's "DLL Hell"?
Thanks in advance

AFAIK, Java itself (java.exe, etc) does not reference any "javahome" type environment variable. I ran Java programs without that environment variable for quite a while.
Realize that effective with Java version 5u6 (1.5.0_06) there are restrictions imposed on applets concerning which Java version will run them. See this document:
http://java.sun.com/javase/6/webnotes/family-clsid.html
For Java applications, you can completely control what version Java is used for execution by specifying a full path to the java.exe program of the version you want used. If you want to use a Java version other than whatever one the user has installed as the default version (on Windows and Solaris), you should provide a private JRE for the application.

Similar Messages

  • Installing Forms&Report  Services with Oracle Application Server 10g Rel 3

    Can I Install Forms & Report Services with Oracle Application Server 10g Release 3 some how?
    I am thinking of installing Forms & Reports Services in separate home with Oracle Application Server 10g Rel 3.
    Does any body has any different idea so that they both can run more smoothly together.
    Thanks
    Raj
    www.oraclebrains.com

    They WILL NOT RUN TOGETHER. We have discussed this many times before. They must be in separate homes.
    Check the search function for this forum to find the previous discussions.

  • Should I install the extra stuff with FCS3?

    Hi folks,
    I've just purchased FCS3 and am wondering about installation. It says the program(s) take up 4GB, and the extra stuff takes up another 46GB. This seems a bit much! My hard drive is only 250 GB, and has only about 60 GB free. Any advice? Should I just install the program(s)? Are there other components I should also install, or should I try to delete enough files to install everything?
    Thanks so much,
    Vixter

    It depends on what your needs are. A lot  of the content is Motion, DVD SP, and STP. If you don't need them, save the space and don't install. Otherwise, I'd buy a bigger drive.
    Good luck.
    Russ

  • What is the recommended practice for bundling JRE with Java Application?

    Hello,
    I am using a software called Advanced Installer to create a Windows installer (.msi file).
    This .msi file contains :
    - a .exe file which is a wrapper for a .jar file (a Java Swing program),
    - and a directory for the JRE.
    I read an article on the web which recommended bundling the JRE with the Java program. And
    this is what I am doing. And my understanding is that if the user's system does not already
    have the JRE installed, the bundled JRE would allow my Java Swing program to run.
    However, when I tried to install my .msi file on a system that did not already have the JRE,
    my Java Swing program would not start. After installing the JRE on this system, my Java
    Swing program started and ran fine.
    Do I really need both JREs, one bundled with my Java Swing application and one installed at the
    system's location for my Java Swing program to start and run?
    Another question I have is that if every application would bundle its own JRE, there could be many
    copies/possibly versions of the JRE on the system, is this acceptable? What is the common or
    recommended practice?
    Thank you for your help.
    Akino.

    I'm sure why it didn't work. That is how I bundle the JRE. The only disadvantage about bundling is the size of the installer file will be pretty large. In my opinion, relying on a public version is not a good idea if you have no control of the target box. The user might, for some reason, decide to uninstall java or upgrade to a new incompatible version and your app. may stop working. I'm sure many on here will disagree with this though.
    I always use the marner .exe wrapper:
    http://www.megaupload.com/?d=FYZAVM77
    and inno installer:
    http://www.jrsoftware.org/isinfo.php
    They're both free to use and I've had no problems with them. Another wrapper is Javaround:
    http://sourceforge.net/project/showfiles.php?group_id=234356

  • How to install the OPC server with the Application installer

    Hi to all,
                 I had make the datalogging progam by communication the PLC through modbus using the OPC server.
    1. I had configer the opc client through project explorer some time it run fine but when i run by next day it can't communicate with OPC server but the OPC server is communicating with the PLC.When i right click on the properties of the opc i/o client in the project exploer and make any change and again run the application it works where the problem is.
    2.The second problem is while building the installer who OPC server will installered to my targate PC.Bacuse i had installed the application  on the target PC just for testing but OPC server havn't installed even though there is no option for the addition of the OPC server while bulding.
    Solved!
    Go to Solution.

    HI Serdar,
                      Thanks for the reply i had seen your example your idea is ok but if i have more then 100 tag and with different data types then where is problem to manage all those tags.
    Now what i had done i had put the express vi of create or configer I/O server and give the process name same as file name like opcdemomo and same server name mention in the project explorer and restart and shout down tow and three times it works i havn't get any problem.but that is not the good method.

  • How to force web start to use a specific private JRE without searching reg

    I am trying to make webstart start using a private JRE independent of what JREs are installed on the System. I am installing a private JRE in the users home directory, eg
    C:\Documents and Settings\USER\Application Data\APP\jreThen starting webstart by calling:
    C:\Documents...APP\jre\bin\javaws.exe http://....jnlpThe problem is javaws.exe always scans the regsitry in builds its own list of installed JREs.
    I have tried to solve this by setting USER_JPI_PROFILE env var with my own custom cache location and building a custom "deployment.properties" file with just my private JRE in it, but web start always searchs the registry and find and uses a system JRE over mine.
    Any Ideas?
    Thanks, Jasper

    Did you also place a deployment.config file , to point to your deployment.properties file?
    In the deployment.properties, specify the location of your custom jre:
    deployment.javaws.jre.0.platform=1.5
    deployment.javaws.jre.0.registered=true
    deployment.javaws.jre.0.osname=Windows
    deployment.javaws.jre.0.path=jre\\bin\\javaw.exe
    deployment.javaws.jre.0.product=1.5.0_05
    deployment.javaws.jre.0.location=http\://myjre.download.location
    deployment.javaws.jre.0.enabled=true
    deployment.javaws.jre.0.osarch=x86The above properties tag your custom jre, as been downloaded from http://mrjre.download.loaction - This location doesnt have to exist.
    In your .jnlp file, specify this download location in the jre tag.

  • Bundling JRE with Application

    I have full version of exe4j and install4j from e-j technologies and i have been able to successfully create an executable file for my java application on my system and it work real fine.
    But in a situation where by the destination system where the application will be used might not have a JRE installed on it. In this situation the executable will not work.
    So what to know is if it is possible to bundle a JRE with my application with the use of Install4j such that when it detects that there is no JRE on the system, it then installs the JRE that comes with it and if a JRE exists it proceeds with the installation of the application only.
    If Install4j is not being able to do this, is there any other application out there that can do it. I know install Anywhere from Zerog does that, but i don't want to use it.
    Thanks for your response.

    I'm sure why it didn't work. That is how I bundle the JRE. The only disadvantage about bundling is the size of the installer file will be pretty large. In my opinion, relying on a public version is not a good idea if you have no control of the target box. The user might, for some reason, decide to uninstall java or upgrade to a new incompatible version and your app. may stop working. I'm sure many on here will disagree with this though.
    I always use the marner .exe wrapper:
    http://www.megaupload.com/?d=FYZAVM77
    and inno installer:
    http://www.jrsoftware.org/isinfo.php
    They're both free to use and I've had no problems with them. Another wrapper is Javaround:
    http://sourceforge.net/project/showfiles.php?group_id=234356

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

  • I bought a new 5.5 gen ipod.  Should I install it with the CD it came with or is that too out of date now (2006)? Can you direct me to any help with this model?

    I bought a new 5.5 gen ipod.  Should I install it with the CD it came with or is that too out of date now (2006)?

    It is no longer needed.  Simply download and install the latest version of iTunes (currently at 10.6) from Apple's website.  It includes all the necessary software and files for your iPod to communicate with your PC and iTunes properly.
    B-rock

  • Hi..Iam an Architect...I would like to purchase a macbook pro 15.4 inch 512 gb, 16 gb.So i would like to know the possibilities and advantages of using 3d softwares and autocad.And also is 3dsmax available for mac os or should i install it with windows.

    hi..Iam an Architect...I would like to purchase a macbook pro 15.4 inch 512 gb, 16 gb.So i would like to know the possibilities and advantages of using 3d softwares and autocad.And also is 3dsmax available for mac os or should i install it with windows.

    System Requirements for AutoCAD 2013 for Mac:
    Apple® Mac OS® X v10.8.0 or later (Mountain Lion), OS X v10.7.2 or later (Lion), or OS X v10.6.8 or later (Snow Leopard) with 64-bit Intel processor
    Apple® Mac® Pro 4.1 or later; MacBook® Pro 5.1 or later (MacBook Pro 6.1 or later recommended); iMac® 8.1 or later (iMac 11.1 or later recommended); Mac® mini 3.1 or later (Mac mini 4.1 or later recommended); MacBook Air® 2.1 or later; MacBook® 5.1 or later (MacBook 7.1 or later recommended)
    3 GB of RAM (4 GB recommended)
    2.5 GB free disk space for download and installation (3 GB recommended)
    All graphics cards on supported hardware
    1,280 x 800 display with true color (1,600 x 1,200 recommended)
    All Mac OS X supported language operating systems
    Apple® Mouse, Apple Magic Mouse, Magic Trackpad, MacBook® Pro trackpad, or Microsoft-compliant mouse.
    Mac OS X-compliant printer
    Additional Requirements for 3D Modeling (All Configurations)
    Pentium 4 or Athlon processor, 3 GHz or greater or Intel or AMD dual-core processor, 2 GHz or greater
    4 GB RAM or more
    6 GB hard disk space available in addition to free space required for installation
    1,280 x 1,024 true color video display adapter 128 MB or greater, Pixel Shader 3.0 or greater, Direct3D®-capable workstation-class graphics card
    3ds Max 2014 and 3ds Max Design 2014 are available for windows only:
    System requirements for 3ds Max 2014 and 3ds Max Design 2014
    Windows 8 or Windows® 7 64-bit Professional operating system
    64-bit Intel or AMD multi core processor
    4 GB RAM minimum (8 GB recommended)
    4.5 GB free disk space for installation
    3-button mouse
    Latest version of Microsoft® Internet Explorer®, Apple® Safari®, or Mozilla® Firefox® web browser
    Recommened Mac:
    15-inch MacBook Pro with Retina display : 15.4-inch (diagonal) LED-backlit display with IPS technology
    2880-by-1800 native resolution at 220 pixels per inch with support for millions of colors
    Hardware
    2.4GHz quad-core  Quad-core Intel Core i7
    16GB 1600MHz DDR3L SDRAM
    512GB Flash Storage
    Autodesk AutoCAD 2014 for Windows vs AutoCAD 2013 for Mac
    USER INTERACTION                                                                          Windows         Mac
    Command line


    Multifunctional grips


    Dynamic input


    Auto-complete command entry2


    Hide and isolate objects


    Create and select similar objects


    Delete duplicate objects


    Properties palette


    Quick properties palette

    Quick view


    In-canvas viewport controls


    Editable UCS icon


    Layer tools3


    Layer groups


    Layer state manager4

    New layer notification

    Filter

    Quick select

    DesignCenter

    Tool palettes

    Content palette

    Navigation bar

    ShowMotion

    Coverflow navigation

    Multi-touch gestures

    AutoCorrect command entry

    File tabs

    DOCUMENTATION
    Geometry creation & measurement tools


    Parametric constraints


    Associative arrays


    Copy array


    Object and layer transparency


    Strike-through text


    Blend curves


    Multiple hatch editing


    Sheet set manager

    Project manager

    Dynamic blocks5


    Model documentation tools

    Table style editing

    Hatch creation preview

    Multiline style creation

    Digitizer integration

    Change space

    Express tools6

    Text align

    DESIGN
    Solid, surface, and mesh modeling


    Surface curve extraction


    PressPull


    Autodesk materials library


    Material creation, editing, and mapping

    Basic rendering


    Sun properties7


    Visual styles7


    Advanced rendering settings

    Camera creation

    Walkthroughs, flybys, and animations

    Autodesk ReCap point cloud tool

    Import Sketchup files (SKP)

    Geographic location

    CONNECTIVITY
    External references (DWG)


    Image underlays


    PDF underlays


    DWF underlays

    DGN underlays

    In-place editing of DWG references


    Batch publish


    Publish or plot to PDF


    Plot styles


    Plot style table editor


    AutoCAD WS connectivity


    Autodesk 360 connectivity

    Data links

    Data extraction

    Hyperlinks

    Markup set manager

    dbConnect manager

    eTransmit

    WMF import and export

    FBX import and export

    SAT import and export


    Additional model import

    Design feed

    Share on Facebook

    LICENSING
    Standalone licensing


    Network licensing


    Cross-platform licensing

  • Which JRE / J2SE should be installed for tomcat 5.5?

    Does anyone know which JRE / J2SE should be installed for tomcat 5.5? Could anyone please give me the link for download?
    Thank for any suggestion
    Eric

    Does anyone know which JRE / J2SE should be installed
    for tomcat 5.5? Could anyone please give me the link
    for download?http://java.sun.com/javase/downloads/index.jsp

  • Im not very tech savvy. I use firefox on my desktop, and want to run on my new Asus netbook with Windows Starter. Will FF run faster then IE? What version of FF should I install?

    Im not very tech savvy. I use firefox on my desktop, and want to run on my new Asus netbook with Windows Starter. Will FF run faster then IE? What version of FF should I install? in English
    == This happened ==
    Not sure how often
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MAAU; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MAAU)

    Im not very tech savvy. I use firefox on my desktop, and want to run on my new Asus netbook with Windows Starter. Will FF run faster then IE? What version of FF should I install? in English
    == This happened ==
    Not sure how often
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MAAU; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MAAU)

  • Should I install the Kaspersky Internet Security Software included with the purchase of a new MacBook Air, OS X.

    Should I install the Kaspersky Internet Software included free with the purchase of a new MacBook Air OS X?

    Welcome to the Apple Support Communities
    You mustn't. Apart from the fact that OS X doesn't need an antivirus (OS X has got its own security systems), commercial antiviruses like Kaspersky can do more harm than something good for your Mac. See > http://www.reedcorner.net/mmg
    If you want to install an antivirus, install Sophos or ClamXav

  • I have just started with Logic X, having been a Logic 8 user for many years. I have some expensive plug-ins which are not being recognised by the news Logic. Where should I install them ?  YoursdisillusionedbyLogic

    I have some expensive plug-ins which are not being recognised by the new Logic. Where should I install them ? 
    I am using Mavericks OS, and I am considering transfering my choiceof DAW to Protools.
    YoursdisillusionedbyLogic

    Hi
    LPX only supports 64bit Audio Unit plugins. You probably need to get the latest updates for all of your plugs.
    Some plugs are not currently available as 64bit versions: you may want to try
    http://www.soundradix.com/products/32-lives
    CCT

  • How to Include JRE with our Setup Package

    please help me,
    i have created one swing application.i successfully created setup.exe using installsheild 11.It is working in my machine.when i run this in another machine .it is not working.iam using some external jar also in the appln.i put that jars into the jre/lib/ext in destination machine's directory then it works.
    i want to include JRE with my setup package(first the setup should find whether the jre is installed or not ,if not it must insall JRE and put my external jar files into jre/lib/ext directory in destination machine then only my appln should insall).please give me a solution for this

    What?!! It isn't considered legal to access a
    root-level class from a higher level package?Well it's not now because your code won't compile, but
    prior to 1.4 you could. I think the JLS has been
    updated to say you can't import from the unnamed
    namespace.Hmm! I must have missed that bit (not that I read it in any great detail, anyway!). I suppose it forces you to use packages, which is a good thing, IMHO.
    What I was wondering about was, is the directory structure of classes strictly necessary, given that a class contains information on its package anyway? I know some IDEs don't require the source files to be in the right directory - they will check on the package statement, and locate the class file accordingly - but is it absolutely necessary for class files to be located according to their directory structure? I know the JLS says they have to be, but could the JLS be relaxed on this point, without breaking anything?
    RObin

Maybe you are looking for