Help, how to install jvm and set the classpath using a batch file

hello,
i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
or is it advisable to explain it to the user how to go about it in tht user manual.
and would also like to know that if i install the JVM will the path for the java.exe be set
or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

hi,
I have windows and I use it.
The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
Stijn

Similar Messages

  • How to set the classpath for external .jar files after importing?

    Hi techs,
    How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
    urgent

    I got it.
    after importing the jar file to the perspective,we need to right click on project name, go to proprties,
    goto java build path,
    there we need to include the external jar files.

  • How i can access and edit the table of database(.mdb) file through Labview

    Dear sir,
    I want to access and edit the table of database(.mdb) file through Labview and it should save.
    please tell me how i can do it.
    i am waiting for reply.
    regards
    Rajendra

    there are options aplenty for this.  First off, do you have the database connectivity toolset?  If so, You can do it from there.  Following the examples in labview. Or you can do a search for ADO or access database, and find plenty of VIs that can do this. 
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How to account for and set the temperatur​e in testing

    The problem is this: I'm setting up an airflow resistance test and I need to account for temperature and barometric pressure. However, I don't know how to setup LabVIEW to account for these variables.

    Devont:
    Actually this issue is a fairly complex problem in aerodynamics. I am
    an aerospace engineer who has developed computer code for this very
    purpose in a couple of wind tunnels. When you say you are setting up
    an airflow "resistance" test, what physical (aerodynamic) properties
    are you trying to measure? Tunnel flow velocity? Mass flow?
    Aerodynamic properties on a test model? (lift and drag coefficients,
    center of pressure, gross forces?)
    If you are trying to measure air flow velocity through a wind tunnel
    test section, then the next question is what type of sensor system are
    you using to do this? A pitot-static probe? A hot wire anenometer?,
    an LDV (doppler laser)? Each has different techniques for getting
    back flow properties.
    Also what kind of tunnel is this? Low speed subsonic (say less <100
    M/s) Mid speed subsonic <0.6 Mach? Transonic 0.8 to 1.2 Mach?
    Supersonic 1.2 to 4.0 Mach? Hypersonic (say >4.0 Mach?) This will
    make a great deal of difference in computing flow properties.
    Mach number is a ratio of the flow velocity to the local speed of
    sound where;
    M=v/a where a is the speed of sound.
    a=(gamma*r*t)^0.5
    where gamma is the ratio of specific heats Cp/Cv, r is the gas
    constant, and t is the absolute temperature. Gamma is a constant up to
    about mach 4 but really starts to fall apart after that so this speed
    of sound equation becomes a lot less useful for hypersonic analysis.
    At low speeds gamma for air is approximately 1.4, r is about 287 for
    air. At STP, the speed of sound is about 340 meters/second.
    What is the scale of your tunnel? What is the density altitude of
    your tunnel? What is the fluid medium in your tunnel? (Is it regular
    air or something else?) These play into computing flow properties
    because they affect a dimensionless flow property called the Reynolds
    number which affects how the flow in the tunnel behaves.
    You will need to consider also humidity which affects the density of
    the fluid medium in your tunnel. Water vapor has a molecular weight
    of 18. Dry air (0% RH) has a molecular weight of about 28.9. The
    more water vapor you have, the lighter the sample volume of "air" will
    be. The ability of air to retain water vapor is a function of
    temperature, so a relative humidity of 100% at 0 degrees C will
    contain much less water vapor than a relative humidity of 20% at 30
    degrees C.
    Because of something called the "boundary layer" the velocity profile
    will be faster in the center of your tunnel than at the walls. It
    will resemble something like a U shape for higher Reynolds numbers and
    for very low Reynolds numbers may look more like a parabola. Reynolds
    number is computed by:
    Re=rho*V*L/mu
    where rho is the air density, V is the flow velocity, and mu is a
    property called the kinematic viscosity which is a function of
    temperature.
    The Reynolds number, like the Mach number, the Nusselt number, and a
    few other fluid dynamics properties is a dimensionless ratio. Flows
    with a similar dimensionless property should behave more or less the
    same. This is called similitude.
    Mass flow calculations first require that you know the air speed
    profile of your tunnel and then you will need to compute the density
    of the air in the tunnel and then perform an integration process to
    calculate the actual mass flow through a particular plane of interest
    in the tunnel.
    Also, even when you put a test probe into the tunnel to measure the
    flow in the tunnel, this will interfere with the free flow to a
    certain of the tunnel. To minimize this, the test probes have to be
    carefully designed and their size needs to be much smaller than the
    overall tunnel dimensions. Later when you put a test model in the
    tunnel, it and it's mounting system will also have an interference
    effect on the tunnel that has to be accounted for.
    To give a simple (perhaps an overly simple) answer to your question,
    temperature and barometric pressure will play into your problems of
    computing forces in that they affect the density of the fluid medium
    in your tunnel via the unified gas law (which is a combined expression
    of Charles and Boyles laws for perfect gases):
    PV=nRT
    or
    Pv=rT
    where rho, the density is the inverse of v, so this is sometimes
    written as:
    P/rho=rT
    This only applies for perfect gases though. A perfect gas is one
    where the constant pressure and constant volume specific heats (Cv,
    and Cp) are fixed. The hotter and more dense the fluid medium, the
    less true these equations become.
    Temperature in these equations doesn't mean the common ways that we
    ordinarily talk about temperature when cooking or talking about the
    weather. Instead of C or F, temperature in the gas law must be on an
    absolute scale such as Kelvin or Rankin. 0 degrees Kelvin or
    Rankine=-273.15 degrees C or -459.67 degrees F. One Kelvin degree=1.8
    Rankine degrees but both start at the same point of absolute zero.
    For standard atmospheric conditions (called STP for standard
    temperature and pressure), 1 cubic meter of air weighs about 1.226 kg.
    You have to calculate the density of air at non standard conditions
    by solving algebraically for the above gas law equation.
    r is called the gas constant and can be derived from the universal gas
    constant R (8314 units I can't remember of the top of my head but it
    involves kJ/kg.mole or something like) by deviding by the molecular
    weight of the gas in question. If the gas is a mixture then you will
    have to apply the partial pressures rule to come up with an averaged
    molecular weight of the mixture. Dry air contains mostly nitrogen
    which has an atomic weight of 28 (about 79%), and then oxygen (about
    20%) which has an atomic weight of 32, and the balance (about 1%)of
    inert gases (Helium, argon, krypton, etc.) which have much smaller
    atomic weights. For dry air r (small r that is) is about 287.
    If the air is not dry, then you have to account for the water vapor in
    the air by figuring out what partial pressure of water vapor is in the
    air and then performing an average between the water vapor portion and
    the other components of the air. Wator vapor only has a molecular
    weight of 18 (1 Oxygen + 2 Hydrogens=18) and so is lighter than dry
    air and tends to make the air less dense.
    The partial pressure of water vapor that can be supported in the air
    is a function of temperature that more or less grows exponentially
    with temperature. I'm sure if you search the web you can find several
    empirical equations for this. Relative Humidity (RH) is an expression
    of how much water vapor is in an air sample versus the maximum that
    can be supported at the current temperature of the air sample but what
    you really want is the partial pressure of water vapor in the air.
    There are sensors that can give this to you by measuring the
    electrical conductivity of the air. Dry air is actually a very good
    insulator, whereas water vapor decreases the insulating property of
    the air.
    All other things remaining equal, increasing the humidity will
    decrease the density of the air.
    All other things remaining equal, increasing the temperature will
    result in decreasing density while decreasing temperature will result
    in increasing density. If the temperature in your tunnel is different
    than standard then you will need to account for this.
    Tunnels generally heat up the air by the way when they accelerate the
    air through the fan and also through boundary layer friction with the
    tunnel walls. Many tunnels actually have heat exchangers to keep the
    air from getting too hot. You will need to make sure you measure the
    temperature at the same point thats you are measuring the static and
    stagnation pressures in your your tunnel so that you can account for
    its effects. Standard temperature is 15 degrees C or 59 degrees F.
    For conversion purposes, 15 degrees Celsius =288.15 degrees Kelvin= 59
    degrees Fahrenheit=518.6 degrees Rankine.
    All other things remaining equal, increasing pressure will result in
    increasing density, while decreasing pressure will result in
    decreasing density. Barometric pressure is usually given by the
    weather service as inches or millimeters of mercury or sometimes
    millibars. For conversion purposes, 29.92
    inHg=760mmHg=1000millibars=14.7 psi= 101325 Pascals pressure. If the
    pressure in your tunnel is different than standard then you will need
    to account for this.
    Depending on tunnel velocity, you will also have to consider
    stagnation versus static properties. Stagnation properties are what
    you measure if you bring the flow at a point to a complete stop, i.e.
    the kinetic (as opposed to random thermal) energy in the sample is
    completely converted thermal energy. How you do this depends on what
    speed of sample you are trying to measure and is the subject of whole
    books. Suffice it to say that at low speeds there is little
    difference between stagnation and static properties but the faster you
    go, the less resemblance they bear to one another.
    Compressibility is another issue. At low speeds air is
    incompressible, but at higher speeds v>100m/sec, compressibility
    becomes worth accounting for in your measurments.
    At higher temperatures and velocities, (high supersonic, or
    hypersonic, or high temperature >500 degrees C), the constant pressure
    and constant volume (Cp and Cv) specific heat assumptions break down
    and so does the gas law. The simplifications that can be made for
    using the ratio of Cp/Cv (called gamma) also break down because Cp and
    Cv and therefore gamma all stop being constants. Solving flow
    problems in this regime becomes much more complex requiring numerical
    models for Cp and Cv and requiring numerical (as opposed to simple
    analytical) methods to compute flow properties.
    Once you know the flow density, you can calculate air speed. For
    lower speed low temperature tunnels (low subsonic) you can use a
    simple incompressible Bernoulli equation for converting pitot-static
    pressure to air speed. At higher speeds and temperatures this depends
    on the regime (transonic, supersonic, hypersonic, etc.)
    The Bernoulli equation is simply:
    Pstagnation=Pstatic+1/2 rho * velocity^2
    For lower speed supersonic, the isentropic gas relations are sometimes
    used.
    In any event, you have to be sure to get your units right. If you use
    metric, pressure is Pascals (Newtons/m^2), rho is kg/m^3 and velocity
    is meters/sec. It's harder in U.S/U.K units because of conversions
    between slugs and pounds etc.
    Also you have to consider the concept that there will be a steady
    state average that you will measure and a transient/turbulent portion
    that will occur for each parameter that you measure (temperature,
    pressure, RH, etc.) that you will need to account for.
    Once you know the air speed and the density, you can compute their
    product - mass flow. Mass flow then can be used for other purposes
    such as calculating performance properties if you are testing a jet
    engine or propeller or something.
    Hot wire anenometers work by heating a wire and measuring the
    resistance of the wire. The faster the air flow past the wire
    filament, the more it will cool. I don't remember the equations off
    of the top of my head but I believe that there is a square rule
    involved. Hot wires work better at lower speeds than pitot-static
    sensors but both become less effective the slower you go.
    LDV's are neat, high tech toys that I haven't had a chance to work
    with yet but they measure the airspeed by measuring the doppler shift
    in the light emitted by a laser beam going through the flow, much like
    doppler (WX-88) weather radar works. They actually measure the speed
    of the air more directly than the pitot-static or hot wire methods are
    probably simpler to implement from an equations point of view but they
    are very very expensive.
    In conclusion, I know I have written a lot of stuff up here that
    probably sounds pretty intimidating with regards to solving your
    problem. It would help to eliminate some of this by telling us more
    about your test problem so that we can make the appropriate
    simplifying assumptions. Tell us more about the details.
    Douglas De Clue
    LabVIEW developer (and degreed Georgia Tech aerospace engineer)
    [email protected]
    Devont wrote in message news:<50650000000800000025530000-1027480788000@exc​hange.ni.com>...
    > The problem is this: I'm setting up an airflow resistance test and I
    > need to account for temperature and barometric pressure. However, I
    > don't know how to setup LabVIEW to account for these variables.

  • How to install XE and specify the SID (instead of XE) during install

    I would like to use Oracle 10g Express Edition for development purposes but I already have an existing project that requires a specific SID.
    I tried following some instructions on asktom.oracle.com on changing the SID but it was disastrous and did not work.
    Ultimately I have to rip XE off and reinstall everything because it was so mucked up.
    I would like to reinstall XE but during install specify the SID just like I can with Oracle 10g R2 Enterprise Edition.
    Can someone please tell me how to do this, and Oracle if you are listening, can you modify XE so that the SID can be specified on install? This one thing is a deal breaker for me and am considering falling back and using postgresql for the initial release of this product instead of Oracle to clients. I am sure many of them would upgrade to Oracle Enterprise edition if I were able to release a product based on XE first.
    thanks
    OracleTek

    At the time of installation , you can't change SID XE.
    After installation, you can add another service name
    Check following thread for more details
    Re: How to create service on Oracle 10g XE
    - Virag Sharma
    http://virag.sharma.googlepages.com
    http://viragsharma.blogspot.com

  • How to install SWC and load the package in CS3

    hello,
    does anyone know how to install a swc and load the package?
    I have installed the two SWC as3corelib-.92.1 and
    xmlsyndication.swc into components, but when I call the package
    from an AS file nothing happens other than, 1172: Definition
    com.adobe:xml could not be found.
    They turn up ok in flash as components, but I think I miss
    something..
    anyone knows how to make these to work in flash so I can make
    this:
    http://www.ploem.be/blog/?page_id=105
    hints, advice anything most appreciated.!
    //Peter

    right :) an instance of a component needs to be either
    dragged to the stage, or in some cases into the file Library,
    before they become available in your file. is it working
    now?

  • How do I locate and delete the "other" used space on my Ipod 2 ?

    Not only did I get curious about the Autofill button and lose all of my music on my Ipod Nano 2nd Edition but now my Ipod is showing that I have 90% Other stored on it and can't figure out how to locate and delete it! I have looked all over online and nothing seems to work because mine is a different model.. :/  Someone HELP me PLEASE!

    You probably have data corruption.  You may want to do a Restore, as the simplest fix.  The Restore button is on the iPod's Summary screen in iTunes.  It will erase the iPod, reinstall its software, and set it to default settings.  All data will be erased, including whatever is taking up space as "Other."

  • I have Macbook Pro 13" mid 20012. How to install Windows 8 onto the mac using DVD? 10.8.3

    the title says it all.
    i have windows 8 DVD and i would like to have a clear instructions on how to install windows 8. I dont understand the need for USB

    Welcome to the Apple Support Communities
    You need a USB drive to install the Windows support software. It contains all the drivers that your MacBook Pro needs, and you will have to install them after finishing the Windows installation. If you don't install them, a lot of things won't work: the wireless card, the sound card, the brightness, the trackpad gestures... Apart from that, you don't need it for anything else.
    Apple has released the official steps to install Windows 8 on a Mac, so if you want, print this PDF > http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.8.pdf

  • How do I change and set the width of the Address and Search box

    Currently, the Address box crowds out the Search. I really don't need the Address box as much as I need the Search box. I recall a method of setting them using a routine in the Chrome folder but I sure can't find it. Can you help?
    Thank
    Ed

    Method 1:<br/>
    Using the resizer on the interface. See - https://support.mozilla.org/en-US/kb/search-bar-easily-choose-your-search-engine#w_moving-or-removing-the-search-bar (''second bullet item; done without entering customize mode.'' By default, Location and Search bars will occupy all available space on the Navigation toolbar in a 2 to 1 ratio, respectively.)
    Method 2:<br/>
    Add code to userChrome.css below the @namespace line.
    ''@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    See - http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files<br/>
    Adjust the width to your needs, no space before px
    *urlbar-container {max-width: 400px !important;}
    *search-container {max-width: 200px !important;}

  • How do I get and set the double field in a Double?

    Thanks - this has to be easy but I cant find documentation

    It's immutable, so you have to provide the value when you create it:
    Double a = new Double(18.76);
    Double b = new Double("18.76");
    Double c = Double.valueOf(18.76);
    Double d = Double.valueOf("18.76");
    Double e = Double.parseDouble("18.76");Going from Double to double is easy -- I'm surprised you didn't see it in the API:
    double x = a.doubleValue();Again, Doubles are immutable, so there is no way to change the double value of a Double object.

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Setting the classpath

    doing a jsp page which calls for:
    <%@ page import="java.sql.*" %>
    <%@ page import="javax.sql.*" %>
    <%@ page import="sun.jdbc.rowset.*" %>
    <%@ page import="java.util.*;" %>
    at the top of the page , so i downloaded the jar files that i needed and set the classpath to:
    C:\jdk1.3.1_01\rowset.jar;C:\jdk1.3.1_01\jdbc2_0-stdext.jar;C:\jdk1.3.1_01\jndi
    this is the first time ive set the classpath
    but when i run the page i get loads of Error: Could not find package named:
    anyone no what im doing wrong?

    When you say you "set the classpath", does that mean that you changed the system CLASSPATH environment variable, or that you went into the configuration of whatever it is that's running your JSPs and put those jars and directories into the appropriate place?

  • Hello, I have long been using Mozilla Firefoh, but I can't restore a theme (in the browser before I used the theme in anime), I do not remember how to install it and where to find, maybe it was not a topic, and skin. Please help me solve this problem.

    (in the browser before I used the theme in anime), I do not remember how to install it and where to find, maybe it was not a topic, and skin.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I re-installed XP and kept the old program files on another drive, how can I transfer my bookmarks list to the new Firefox ?

    I re-installed XP and kept the old program files on another drive, how can I transfer my bookmarks list to the new Firefox ?
    I tried shifting the Profile folder contents from the old to the new, that seemed to work but I kept getting a message that my security was affected and that the problem could be in that folder so I shifted it back.

    Hello Kencrews,
    When you connect the iPod to the computer and iTunes is authorized for your Apple ID, then you will get a prompt to transfer the purchases from the device to the computer. Keep in mind this will only transfer purchased items from the iTunes Store.
    Here is a helpful article to assist getting that done.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/ht1848
    Regards,
    Sterling

  • Need help ...just bought a mac mini, how to install adobe lightroom4 without the cd-rom?

    need help ...just bought a mac mini, how to install adobe lightroom4 without the cd-rom?

    You could download it as a trial version, and enter your serial number when prompted to buy.
    https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_lightroom

Maybe you are looking for