Installing JRE and webserver on client machine

I want to deploy J2se application having tomcat webserver and mysql database.This application is to be installed on client's machine from CD as a single-click application.How can we setup JRE and webserver using JavaWebStart?
Is it possible to install JRE using WebStart?This is most urgent requirement for us.Any who worked on it?Pease help!!!!

You need a JRE installed to run Java WebStart (because Java WebStart is a Java program itself). However, this does not need to be the same JRE that your application uses, because you can specify the JRE to use in your JNLP file and Java WebStart will automatically (most of the time) download and install the correct JRE.
As to the original question of installing a webserver and database on the client: you will have to distribute both as (or in) one or more jar file (which are likely to be quite large), unpack the jar file(s) on the local machine and then run an installation script, using Runtime.exec(). This requires the user to grant "all-permissions" to your WebStart app, as well a fool-proof installation script for the webserver and database.
Webstart may not be the ideal solution for your situation. If the users are always connected to the network, why the local webserver and database (can't they just use one connected to the net)? If the users aren't connected to a network, why Webstart?

Similar Messages

  • Install JRE and OpenJDK Side-by-Side [Unecessary - So Solved]

    As far as I know this is impossible, but if there is a way to install JRE and OpenJDK side-by-side, that would be great.
    The reason I would like this is that there is a specific webserver I access that simply will not work with OpenJDK. It's a known issue that may or may not be fixed any time soon. On the other hand, I would like to install freeCAD, but this depends on OpenJDK and not JRE.
    So as of right now, there is no way for me to have freeCAD installed and access this webserver. Now if JRE and OpenJDK were installed side by side, then this wouldn't be a problem. The other option, is letting users install freeCAD with and OpenJDK or JRE dependency, whichever best suits them.
    Is anybody else in a similar boat as this?
    Last edited by fini_fly (2009-12-17 16:56:07)

    tdy wrote:
    fini_fly wrote:I would like to install freeCAD, but this depends on OpenJDK and not JRE.
    Where do you see this requirement?  I don't see anything that specifically depends on openjdk6.  The only java deps I see are in opencascade.  It depends on java-runtime and makedepends on java-environment, which can be satisfied by jre + jdk.
    When I went to install, it was forcing me to install OpenJDK and uninstall JRE.

  • Installed jre and jdk and setup environment  variable

    installed jre and jdk and setup environment variable but still i am not able to rum program?
    cannot find symbol class string
    package system does not exist

    if removing 1 jre will help your disk space problems
    then you urgently need a bigger disk.
    Btw i never notice Java installing 2 different JRE's
    so i dont think it will harm remvong one, make sure
    you dont delete one you are using :)I assume that you don't run MS os; that's the only one that installs 2 JRE's.
    To OP: This has been discussed by Sun, but no changes have been announced. Maybe the relocation in version 1.5 of the private (aka developer) code to the Program Folder is a start of this change?

  • Install jre and mysql by wizard

    hi all.
    I don't know it is the right place that I'm talking about or not.
    I have project that created by java swing controls and it has MySQL database. I want to create an installation wizard for my project.
    I want to install JRE and MySQL into installation wizard(not separately). any idea?
    thank for your attention.

    847289 wrote:
    I've just take a look on the documentation but I didn't see anything about MySQL.
    Could you please give me a tutorial about this?No, that's your job to figure it out. If IzPack doesn't work, investigate others. I'm pretty sure there is no installer out there that will specifically offer an installation of MySQL however; more likely you'll need to be able to fork a new process to run the MySQL installer.

  • How to install SSL Certificates automatically in Client machine

    Hi All
           I have installed Certificates for SSL in Planning server machine for Planning Web services.While connneting to Server through excel-addin from client machine it is not connecting
     Error is bleow:
    "The underlying connection was closed : could not establish trust relationship for the SSL/TLS secure channel" and then getting the following error
    "The PerformancePoint Server System is currently unavailable"
    I got it this is due to Certification not installed in client machine.
    So i tried to install certificate through IE web browser ..i typed webservices links ..i.e https://servername:443 in address box
    ..not admin console link.Because if i connect to Admin console then i connect to Planning server it is  not showing me the dialog box  " Security Alert "
    So typed direcly  webservices in address box.Then "Security Alert" dialog box opened ,In that i clicked "View Certificate" button and installed manually.Then this problem solved.
    But i want to check this is a way to install cerficate in the client machine or there is any other way to do it automatically...
    Please help me to solve this..
    Thanks
    Abdul

    Abdul,
    The problem seems to be that the certificate authority that created your certificate is no trusted by Windows.... That process of installing the root certificate in the clients machines should not be needed if the ceritifcate is obtained from the right ceritifcate authority...
    Where did you purchased your certificate from?
    Regards,
    Pablo Barvo - MSFT

  • How to Install OBIEE and BIP on a machine with Windows XP ?

    Hi,
    I am very new to OBIEE and want to learn it by myself.
    Can I install OBIEE and BI Publisher on my home PC with Windows XP ? Can I install client and server on the same PC?
    If no, what are the other options ?
    Please help!!
    Thanks!
    Yogini

    Thanks for the link, but I am referring the same to install OBIEE.
    The pre-requisites section says :
    Client operating systems:
    - Microsoft Windows 2000 Professional with Service Pack 3 or later
    - Microsoft Windows 2003 Professional with Service Pack 1 or later (32-bit only)
    - Microsoft Windows XP Professional with Service Pack 1 or later
    Server operating systems:
    - For Oracle BI Server: Microsoft Windows 2000 Service Pack 4/2003 Server
    Thats why I wonder if I can install client and server on the same machine with Windows XP ?
    Please do let me know.
    Regards,
    Yogini

  • How do I use pots on my client machine to change values, from the field, on my server machine and all other client machines?

    I am using Lookout 4.5, build 12, and I am having a problem concerning pots. I have data tables created for the different size sewer stations my system monitors. For each station, there are setpoints for starting and stopping of the pumps. I want to be able to change the setpoints for a station on the client file using a pot and have it change on all other machines running Lookout. I did this in 3.8 using DDE, but I don't want to use DDE anymore.
    I created a pot on the client file and URL'ed it to a pot on the server. On the server I created a table with a generic member "A" named "Lead Setp" and then created a member "A1" named
    "C5_1LeadSetp" then a member "A2" named "C3_1LeadSetp" and so on....
    In this table I connected the generic member "A" to the Pot I created on the server, and I connected A1 to its corresponding setpoint signal coming in from the field.
    On the client file I connected (in the table similar to the one on the server but with all signals for the station) the "A1" member to the setpoint signal coming in from the field, and I connected the "A" member to the Pot I created on the client file which is URL'ed to the pot on the server file.
    But, when I change the value of the pot on the client file, only the pot on the server and the "A" member in the table on the server change to the value of the pot on the client. The "A1" member whose screen I am changing the values from on the client does not change! This is the last thing I have to do and my file will be completely converted to 4.0. Does anyone have any ideas?
    Thanks for any responses..
    GBWY
    Jason
    Jason Phillips

    Hi Jason,
    If I understood your task correctly, you want to change the Setpoints on the Server DataTable using Pots from different clients. And also reflect these changes on the clients locally.
    You correctly remoted the Pots on the Clients to the corresponding Pots on the Server. However, you do not need tables on your clients. All you need is Expressions on each client to the particular cell of the Clients.
    So, to summarize: On the Server, the Pots write to the DataTable. And since the Pots on the Clients are remoted to these Pots on the Server, you can affect any change using these Pots. Because of the common remote source (Server Pots, i.e.) all of these Pots will always be in sync. Finally, to get the Setpoints on the Clients, just insert Expressio
    ns to the Server's DataTable.
    I am attaching a simple example (exmpl.zip) which does this. There are three processes -- My_Server, My_Client1, and My_Client2. I had them setup on the same machine so the paths are all process relative, but you can always change those to computer relative or absolute and move the client processes to diff machines.
    Hope this helps.
    Rgds,
    Khalid
    Attachments:
    exmpl.zip ‏12 KB

  • Reg :File upload and download from client machine

    hi..
    anyone help me the way that how to upload and download word
    document file from client machine.. i am using j2eeserver1.4 in linux..
    i want upload file from client machine(windows) to server(linux.) please
    help me . tell me idea regarding..
    i have tried this coding.. but i can transfer txt file. only. when i upload mirosoft word file.. it will open with some ascii values with actual content.
    <!-- upload.jsp -->
    <%@ page import="java.io.*" %>
    <%String contentType = request.getContentType();
    String file = "";
    String saveFile = "";
    FileOutputStream fileOut = null;
    if ((contentType != null) && (contentType.indexOf("multipart/form-data") >= 0))
    DataInputStream in = new DataInputStream(request.getInputStream());
    int formDataLength = request.getContentLength();
    byte dataBytes[] = new byte[formDataLength];
    int byteRead = 0;
    int totalBytesRead = 0;
    while (totalBytesRead < formDataLength)
    byteRead = in.read(dataBytes, totalBytesRead, formDataLength);
    totalBytesRead += byteRead;
    try { 
    file = new String(dataBytes);
    saveFile = file.substring(file.indexOf("filename=\"") + 10);
    saveFile = saveFile.substring(0, saveFile.indexOf("\n"));
    saveFile = saveFile.substring(saveFile.lastIndexOf("/") + 1,saveFile.indexOf("\""));
    int lastIndex = contentType.lastIndexOf("=");
    String boundary = contentType.substring(lastIndex + 1,contentType.length());
    int pos;
    pos = file.indexOf("filename=/" + 1);
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    pos = file.indexOf("\n", pos) + 1;
    int boundaryLocation = file.indexOf(boundary, pos) - 4;
    int startPos = ((file.substring(0, pos)).getBytes()).length;
    int endPos = ((file.substring(0, boundaryLocation)).getBytes()).length;
    String folder = "/tmp/uploads/";
    fileOut = new FileOutputStream(folder + saveFile);
    fileOut.write(dataBytes);
    fileOut.write(dataBytes, startPos, (endPos - startPos));
    fileOut.flush(); } catch(Exception e) {  out.print(e);
    } finally
    {  try
    {fileOut.close();
    }catch(Exception err)
    %>
    please which package will help me to upload word document file with no errror. send me how can use in ftp.. send me some sample program..
    Regards..
    New User M.Senthil..

    Hi,
    Well,i don't know whether if this helps people here are not.
    It is always a good practise to do it via Servlet and then download content.
    The adavantage of doing this is
    1). You may not need to pack the downloadable with the .war which you ultimately genrate which ceratinly help us in terms of faster deployment.
    3). You may update the new content just by moving a file to the backup folder.
    2).One may definately download the content irrespective to the content/file.
    Hope example below helps..
    Configurations:
    In the above example we are assuming that we placing all downlodable file in D:/webapp/downlodables/ and you have configured the same path as a init param with the name "filePath" in your web.xml.
    something like the one below.
    <servlet>
        <servlet-name>DownloadServlet</servlet-name>
        <servlet-class>com.DownloadServlet</servlet-class>
        <init-param>
           <param-name>filePath</param-name>
           <param-value>D:/webapp/downlodables/</param-name>
           <!--Could use any backup folder Available on your Server-->
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>DownloadServlet</servlet-name>
        <url-pattern>/downloadFile</url-pattern>
    </servlet-mapping>DownloadServlet.java:
    ==================
    package com;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.BufferedOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.activation.MimetypesFileTypeMap;
    *@Author RaHuL
    /**Download Servlet
    *  which could be accessed downloadFile?fid=fileName
    *  or
    *  http://HOST_NAME:APPLN_PORT/ApplnContext/downloadFile?fid=fileName
    public class DownloadServlet extends HttpServlet{
      private static String filePath = new String();
      private static boolean dirExists = false;
      public void init(ServletConfig config){
          // Acquiring Backup Folder Part
          filePath = config.getInitParameter("filePath");
          dirExists = new File(filePath).exists();      
      private void processAction(HttpServletRequest request,HttpServletResponse response) throws Exception{
           // Some Authentication Checks depending upon requirements.
           // getting fileName which user is requesting for
           String fileName = request.getParameter("fid");
           //Building the filePath
           StringBuffer  tFile = new StringBuffer();
           tFile.append(filePath);    
           tFile.append("fileName"); 
           boolean exists = new File(tFile.toString()).exists();
           // Checking whether the file Exists or not      
           if(exists){
            FileInputStream input = null;
            BufferedOutputStream output = null; 
            int contentLength = 0;
            try{
                // Getting the Mime-Type
                String contentType = new MimetypesFileTypeMap().getContentType(tFile.toString());          
                input = new FileInputStream(tFile.toString());
                contentLength = input.available();
                response.setContentType(contentType);
                response.setContentLength(contentLength);
                response.setHeader("Content-Disposition","attachment;filename="+fileName);
                output = new BufferedOutputStream(response.getOutputStream());
                while ( contentLength-- > 0 ) {
                   output.write(input.read());
                 output.flush();
              }catch(IOException e) {
                     System.err.println("Exception Occured:"+e.getMessage());
                 System.err.println("Exception Localized Message:"+e.getLocalizedMessage());
              } finally {
                   if (output != null) {
                       try {
                          output.close();
                      } catch (IOException ie) {
                          System.err.println("Exception Occured:"+e.getMessage());
                             System.err.println("Exception Localized Message:"+e.getLocalizedMessage());                      
           }else{
             response.sendRedirect("/errorPage.html");
      public void doPost(HttpServletRequest request,HttpServletResponse response) throws Exception{       
            processAction(request,response); 
      public void doGet(HttpServletRequest request,HttpServletResponse response) throws Exception{
            processAction(request,response); 
    NOTE: Make sure You include activations.jar in your CLASSPATH b4 trying the code.
    therefore,if you have something like above set as your application enviroment in the above disccussed
    can be done by just giving a simple hyper link like
    <a href="downloadFile?fid=fileName.qxd" target="_blank">Download File</a>REGARDS,
    RaHuL

  • List all printers configured from server and local machine when hosted in server machine and working from Client machine

    Hello Team
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    can any one please let me know the process, in this i was able to load printers from server, so need to load printers from local machine.
    Thanks in Advance
    Bindu

    Hi Bindu,
    I am developing web application in asp.net. When application run from IIS(hosted in server machine running from client machine using web browser) application should list all the configured printers in local and network.
    From this message, this is a web application in asp.net, and it also related to IIS.
    You should post in the dedicated ASP.Net Forum
    http://forums.asp.net
    For IIS issue, http://forums.iis.net/ IIS forum should post.
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Installing JRE in windows IA64 bit machine

    I need to install JRE in windows IA64 but I could not find it in the download page. Does any one know if this is still supported? Where can I download the JRE?
    Thank you.

    Do you specifically need JRE/JDK1.5? As per your reply, it does not seem to be so. In that case, just use JDK1.4
    http://java.sun.com/j2se/1.4.2/system-configurations.html
    It supports windows on Itanium. Also, as you mentioned Jrockit is another alternative. I am not sure, but IBM JDK is also an option, if they have already ported it

  • Login Error after installing Lion and migrating from time machine

    I cannot log into Lion under my user setting, I am getting the error: "You are unable to login to the File Vault User account {name} at this time."
    Apparently I did not turn off file vault before upgrading to Lion and when I set up Lion I did not migrate from time capsule because it was not finding it even thought the firewire was plugged in so I went ahead and filled out my name and set up a password. I was in Lion and attached the external drive and finally it read it so I migrated the information. I'm not sure if I didn't check the transfer "user" box or the Lion password does not match my File Vault password but now I cannot get into Lion.
    I contacted Apple Support and they told me I would not be able to access my old user info because it is locked. I tried to reinstall Lion and get back to the screen where it prompts me for a password so I could change it to my file vault password and cannot get back to that screen. I also cannot create a new user - I can only use guest.
    I tried reset password from the terminal and this did not work.
    Is there any way I can do a clean Lion install and try the migration again to make sure the passwords and user box is checked?
    Please help... I'm desperate!

    You say Downloads folder has never been excluded and you can't find the Downloads Folder.  Do this... OpenFinder then in Finder select your Downloads Folder, open Time Machine if your Downloads Folder has been backed up, Time Machine will take you directly to your Downloads Folder backups.

  • Installing AS and Database on one machine

    Hi all
    I want to install Oracle Database 10.2.0.3 and Oracle AS 10.1.2.0.2 (Business Intelligence and Forms Developer Topology) on one linux machine (AS 4). I can install the database and the AS as suggested in the installation guides. But now my machine has 3 ORACLE_HOME, 2 physical databases with different SIDs. To start the services I have to startup both databases and their listeners :-(
    What I want to do is to install DB 10.2.0.3 first and then the AS. Application server Infrastructure should use the already available and running database and should not create a new database. I think this will create a neater installation structure and will be easy to start/stop the service and machine.
    Please guide me
    Thanks

    Thanks for the help.
    Now I am stuck at another place :-(
    I installed the DB, patched it to 10.2.0.3. Then installed Metadata Repository Assistant. Now when I run repca, it asks for the Internet Directory Hostname and port number. Till this time, I haven't installed the Internet directory as it is part of Identity management. Repca doesn't allow me to leave this information blank as it tries to communicate with the given host.
    Please help again.
    Regards
    RMA

  • How to install oracle8i and 9ias in one machine.

    I need u help. I should install both product in one machine. and should 9ias should be enterprise version.

    For NT here are the steps.
    First you install 817 database say in home orahome1. Your database should be up and runningbefore insatlling iAS
    See that you pagesize(swapfile) is >= 500MB
    Then install iAS in a different home. iAs 10220 will list two homes (default is 806 and iSuites)
    Give the required parameters when prompted.
    If you give me more info as to which version of ias platform and what is your requirement then I can be more clear

  • How to deploy Forms, Reports and Menu from Client to Server machine

    Dear Experts,
    I have one requirement to deploy the Forms, Reports and Menu from client machine to server machine.
    Deployment involves the following steps :
    1. Firstly we have to search the selected file in a folder where the .fmx is present ( in Server machine) and take the back up of the the existing file in the server (Source and destination paths will be available).
         Ex. If the existing FMB name is TEST.fmx then the backup file should be TEST_sysdate.fmx.
    2. Secondly we have to transfer the file from the client folder (or from another folder of the same server) to the server folder where the back up exists.
    Please help me to search/rename/copy/replace the _.fmx/.rdf/.rep/.mmx_ files from client to server.
    We are using
    9i Database.
    10g Forms and reports.
    SQL Developer tool.
    OS is Windows (Client and Server).
    Help me out to attach a file of front end screen which we are planning to develop. It will give a clear picture on this requirement.
    Thanks :)
    Edited by: 941175 on Jun 17, 2012 9:09 AM
    Edited by: 941175 on Jun 17, 2012 9:12 AM
    Edited by: 941175 on Jun 17, 2012 9:14 AM

    941175
    Welcome to the forum. Please take a while to go through the FAQ to be found to the top right of the page.
    Your issue is more to do with batch files rather than Forms. The only relation with Forms, as I see it, is that you will be using HOST/CLIENT_HOST to start a batch file with the file name to be deployed as a parameter passed to it.
    You need to rewrite either a CMD batch file or a Powershell script to achieve what have set out to do.
    For CMD batch files look up http://www.robvanderwoude.com/battech.php , or any of the other excellent resources available on the internet.
    Regards,

  • Automatic download/install JRE via JNLP

    Under Java Web Start Reference (http://java.sun.com/products/javawebstart/developers.html)
    "A MAIN feature of the ... JNLP... is the ability to automatically download and install JREs onto the user's machine".
    Many have taken this to mean "if the client doesn't have the necessary JRE it will be installed". Well, if the client doesn't have ANY JRE isn't that the same thing as not having the necessary JRE installed? Apparently not. It appears that it is similar to the old joke: How to be a millionaire: 1) First, get a million dollars. The documentation might be enhanced if this chicken/egg situation were mentioned. It seems that we have to write scripts, etc to either point to a JRE download site or somehow manage the install ourselves. I started to look into this but then realized YOU HAVE TO HAVE ADMIN RIGHTS to install the JRE on the client.
    This may all be self-evident to those who have been through this but it's a bitter lesson. If what I have written is not true would someone set me straight and tell me how to get around the admin rights problem? Oh, and does the admin rights problem persist if the the client has a JRE but JNLP needs to download/install a different version? This may be the mortal blow to three months' effort at getting J2EE/J2SE in the door at my company: all we want is to download and run a small Java app for the user to use regardless of which machine he or she is using.

    To change the Registry, Windows requires admin rights. This may (or may not be something you can achieve with Secondary Logon Rights - see http://support.microsoft.com/Default.aspx?kbid=225035 ) There is also a lot of information about this on the web, you should do some further research.
    To run applets and browser related programs requires that Java install the JRE, which uses Browser Helper Objects (BHO's) and that involves Registry entries.
    However, if you only need to run Java programs from the commandline, then the possibility exists to install the Java JDK without a public JRE. That could be done by a simple copy of the appropriate directory(s). This will give you a private JRE inside the JDK, and doesn't make any Registry entries. (Of course, then applets can't be run.) That JRE can then be accessed using a full path to the java.exe executable. (I don't know whether using Sun's downloaded installer will do this - it may still require admin privileges.)
    You're in an area where you'll probably have to do some experimentation. I would address the JNLP questions to the Java Web Start forum, there are some good people that monitor that forum.

Maybe you are looking for

  • Blue Screen of Death in Windows

    Hello, I am getting the Blue Screen of Death about once a every few days. My iMac does not do this. Please help. My HD is defragmented. I have Windows XP Home. Thanks!

  • Switching audio output device without pulseaudio

    I frequently use a USB sound card with a pair of headphones, which had been playing nicely with Gnome and Pulseaudio. Gnome provides a GUI to switch between output devices which seems to work well, but requires Pulseaudio. Long story short, I'm in th

  • Can I still get apple care?

    Hey, I was wondering can I still get apple care on my Mac BookPro 13" I got it in Late 2011?

  • How to use cursor function for nested xml

    Hi, i have a query for XMLQuery like select * from bills where bill_id=???? it results in something like <bills> <bill> <city>london</city> <amount>44</amount> </bill> <bill> <city>london</city> <amount>988</amount> </bill> <bill> <city>new york</cit

  • XL Reporter Error: Permission denied

    Dear all expert, I'm having problem when running xl reporter. The error is "could not start Microsoft Excel. Micosoft Excel is required to start XL Reporter, Error, Permission Denied..There is already installed microsoft excel version 2007 and I alre