JAVA_HOME, JRE and JDK

Does anyone know what JAVA_HOME should be pointing to if only the JRE in installed? What it should be pointing to if the JDK is installed?
On Windows, I notice that c:\program files\JavaSoft gets created after install. For which install does that happen? For the JRE and JDK install? Should JAVA_HOME be pointing to that directory?
I couldn't find any java.sun documentation about the role of the JAVA_HOME env var. If anyone can piont me to some, that would be appreciated. :-)
Version: 1.3.1
Thanks in advance.

Dear dinogg
Does anyone know what JAVA_HOME should be pointing to
if only the JRE in installed? What it should be
pointing to if the JDK is installed?
set JAVA_HOME=C:\jdk1.3.1\bin
On Windows, I notice that c:\program files\JavaSoft
gets created after install. For which install does
that happen? For the JRE and JDK install? Should
JAVA_HOME be pointing to that directory?
actually it is for jre but when u install jdk it also install jre if you notice there is a part setting up java runtime environment
I couldn't find any java.sun documentation about the
role of the JAVA_HOME env var. If anyone can piont me
to some, that would be appreciated. :-)
not sure where you can find it
Version: 1.3.1
Thanks in advance.
version 1.4.0 is out and it is nice
new stuff like scroll mouse, undecorated dialogs, xml transformer better focus management and etc
Thanks
Joey

Similar Messages

  • Installing JMS 3.6 without JRE and JDK

    I'm looking for a way to install JMS only, without installing the new versions of JRE and JDK. The application I'm working on works with JRE 1.5.0_02 only, and there is no plan to change that in the near future, however we want to upgrade to JMS 3.6 to be able to use the new imqPingInterval.

    Are you shure you have included the jre PATH (not CLASSPATH) in your PATH variable?
    Assuming you're working in a Linux (or unix) environmet, check the PATH: it should contain /usr/local/jdk1.3.1_01/jre/bin.
    I'm not sure this is really the answer, but there's no damage on trying it! :-)
    bye
    Michele

  • Jre and jdk differences

    can anybody give the differences between jre and jdk

    [Click Me|http://www.google.com/search?hl=en&q=difference+between+jdk+and+jre&btnG=Search]

  • What is the difference between JVM and JRE and JDK?

    Hi , I want to know what actually is JVM,JRE and JDK ? and the difference between them?

    They should at least try. When it comes to
    terminology, if they can find this site, they should
    be able to find google, wikipedia, etc. It's
    reasonable to expect them to try there first, and
    then, if they still have questions, post here,
    indicating what they looked at and how it fell short,
    what they're still confused about, etc.Perhaps this is a valid point.
    I believe physical JVM hardware has also been
    manufactured. I wonder what we'd call that? A JPM
    (Java Pysical Machine)?No. It is simply a hardware implementation of the abstract Java Virtual Machine.
    .class files are executed by software (in fact,the
    software that executes the .class files is calledthe
    JRE and is short for the Java
    Runtime Environment). The JavaRuntime
    Environment is a native program (i.e. it is run by
    hardware) which provides the ability to executejava
    bytecodes (.class files)That's the JVM.No it's not. The JVM is an abstract architecture.
    The JRE is the JVM plus native libraries plus core
    API Java classes.The JRE is an implementation of the JVM along with some additional facilities. The JVM may be used to describe concrete implementations in industry vernacular, but this is not a technically accurate usage of the term per the specification and is therefore incorrect.
    From the preface to the Java Virtual Machine Specification, Second Edition, viewable at http://java.sun.com/docs/books/jvms/second_edition/html/Preface.doc.html:
    "The Java virtual machine is an abstract machine."
    From Wikipedia (http://en.wikipedia.org/wiki/JVM):
    "A Java Virtual Machine (JVM) is a set of computer software programs and data structures which implements a specific virtual machine model."
    Perhaps this misconception is the source of the confusion. This is one reason why I answered deepakorsun rather than refer him to somewhere else: anywhere that would be reliable and/or completely accurate would be too dense to readily understand, and anywhere understood easily enough might not be completely accurate.
    >
    The Java Development Kit (JDK) just provides the
    facilities necessary to write programs that willrun
    on the Java Virtual Machine. It contains acompiler
    It also contains tools such as jar and javap, the API
    docs for the core API classes, the source code for
    the API classes, probably a few other things, and
    generally the JRE (though I'm not sure if that's
    officially a required part of the JDK).I never said it didn't contain jar, javap, javac, java, jdb, jconsole, or any of the other programs or resources shipped with jdk. I simply stated affirmatively something it did contain. As I implied before, technical comprehensiveness is exactly what makes resources such as the JVM specification almost unusable for answering questions like this. That is why I omitted such details in my description. And since we're being all technical here, the API documentation does not ship with the Java Development Kit (at least not as of JDK 5.0), it is a separate download. It is the core API source files that ship in a .zip file with the JDK.
    Don't get me wrong, I do understand that you have probably seen a lot more people come and go from these forums than I may ever understand and that you have helped more people than you can remember, and I don't mean to disrespect that. I understand that dealing with so many people over such a long period of time and hearing the same questions over and over again can probably start to wear on your patience, but I don't think the right approach is to treat anyone that tries to help them with utter contempt and sarcasm. That's not constructive or useful to anyone. I understand why you would be upset if somebody was purposely trying to be lazy, I probably would be too, but you have no real way of determining whether or not they are being lazy or just don't know something and don't know how to figure it out for themselves so they are asking a question. And if they are honestly just asking a question in good faith and looking up the answer on Wikipedia just did not occur to them (or they couldn't understand what it said), yet they somehow ended up on this site, they have done nothing wrong and there is no reason to get angry at them.
    Oh come on, that wasn't nice. Not everybody isable
    to answer their own questions. WTF are you talking about?!? Why waste the time to
    type something out when they can click on a link and
    find 1000 times more information than you can fit
    into one post? Either way - they're
    STILL going to have to read the
    information themselves...
    Ridiculous.So I suppose you've either read the Java Virtual Machine Specification, the Java Language Specification, and the Java Native Interface Specification in their entireties, or absolutely nothing about programming in Java. This is because, by your reasoning, these three books contain 1000 times more than anyone can fit on a tutorial, Wikipedia entry, mailing list, forum, blog, or anything else.
    Criticizing somebody who isn't doing something the exact way you think it should be done is often quite idiotic and non-constructive. I believe this is this case here. Please post something more useful, meaningful, and/or polite next time. And just for future reference, yelling at a beginner does not help them learn faster or better. It just makes them hate you.
    Oh come on, that wasn't nice. Not everybody isable
    to answer their own questions. Java terminologycan
    be confusing and difficult to understand in part
    because of all the acronyms used and all the name
    changes undergone by the various development kitsand
    platforms.Point taken. You have much more patience than
    I, but with lots of intensive therapy and proper
    adjustment of my medications, I may get better.Thank you for this post. A display of wisdom and patience. You single handedly caused me to reconsider participating in a flame war.

  • Why does the JDK come with a JRE and JDK?

    I was wondering why when I download the JDK does it install a JRE and JDK. The JDK (I believe) includes all the JRE files as well as the compiler files. I can just as easily get rid of the JRE and as far as I know it wouldn't make a difference so why both?

    I thought it was a 2-for-1 deal ;-)
    Seriously, it doesn't make sense for me either. What
    would make more sense
    is for the JDK installation to install that separate
    JRE, but to use that JRE instead of
    installing a second one inside its folders.That would make much more sense, but I am guessing there is some intracacies that I'm not aware of or speed reason or something of the sort that would explain this. The first thing that comes to mind is knowing people might be copying the jre, someone might accidentally pull the jre out so they still wanted the sdk to work with the built in one. This is a pretty big stretch i know but there must be a reason somewhere.

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

  • JRE and JDK

    Hi,
    Dumb question from a java programmer working for 7+ years, but do I need both the JDK and the JRE? Obviously, a JRE is included in the JDK.
    The JDK is 150 MB and the JDK is also 150 MB relatively, if I recall correctly.
    This is 300 MB of Java, do I really need both or can I remove the JRE since the JDK installation has its own JRE?

    The JDK installation installs its own JRE. You don't need a separate one installed. :)

  • Updating to j2se 5, update 7 (jre and jdk) problems..

    I'm runnin win98se, and meet all the minimum requirements..Well I just installed both the jdk and the jre using the online installation. Where did the jdk go? I have no idea what folder the javac.exe file is, so I can't compile anything. Any suggestions? And will the jre be automatically update when I use java.exe command?

    I'm runnin win98se, and meet all the minimum
    requirements..Well I just installed both the jdk and
    the jre using the online installation. Where did the
    jdk go?Even Win98 SE has a file search. Plus, since Windows installs everything into "Program Files" or what it's called if not directed otherwise, I'd have a look there.
    I have no idea what folder the javac.exe file
    is, so I can't compile anything. Any suggestions?Open Explorer. Hit F3. Enter "javac.exe".
    And
    will the jre be automatically update when I use
    java.exe command?No. Why should it?

  • How can I let JRE and JDK display English

    I am using Linux. Since I change LC_CTYPE from en_US.UTF-8 to zh_CN.UTF-8, java program begin to display Chinese. I don't want my computer shows half English and half Chinese, I want to know how to let Java Program displays English meanwhile keep LC_CTYP=zh_CN,,,
    Edited by: jptan on Oct 11, 2007 12:04 AM

    Try setting the default locale:
    Locale.setDefault(new Locale("en", "US"));"Sets the default locale for this instance of the Java Virtual Machine. This does not affect the host locale."

  • Appeasing the JRE and JDK

    I am getting a stupid error about punctuation in one of my programs. I have searched it from the top to where the error is specified, but there seems to be no punctuation missing. I tried appeasing it by simply adding the semi-colons and figiring out why later, but to no avail. It is driving me crazy with the message: battleship.java:54: ' ; ' expected });. Listed is the code from lines 1-55.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Color;
    import java.util.*;
    import java.util.Random;
    public class battleship extends reinforcements implements ActionListener {
                    private int[][] playerGuessValue = new int[10][10];
                    private int[][] playerFieldValue = new int[10][10];
                    protected static int innerRow = -1;
                    protected static int innerCol = -1;
                    private boolean hitLast = false;
                    private int[] lastHitX = new int[5];
                    private int[] lastHitY = new int[5];
                    private final static int MISS = 0;
                    private final static int PATROLBOAT = 1;
                    private final static int SUBMARINE = 2;
                    private final static int FRIGATE = 3;
                    private final static int BATTLESHIP = 4;
                    private final static int CARRIER = 5;
                    private final static int PSUNK = 6;
                    private final static int SSUNK = 7;
                    private final static int FSUNK = 8;
                    private final static int BSUNK = 9;
                    private final static int CSUNK = 10;
                    private int numOfPatrolBoatHitsP = 0;
                    private int numOfSubmarineHitsP = 0;
                    private int numOfFrigateHitsP = 0;
                    private int numOfBattleshipHitsP = 0;
                    private int numOfCarrierHitsP = 0;
                    private int numOfPatrolBoatHitsC = 0;
                    private int numOfSubmarineHitsC = 0;
                    private int numOfFrigateHitsC = 0;
                    private int numOfBattleshipHitsC = 0;
                    private int numOfCarrierHitsC = 0;
                    private int pScore = 0;
                    private int cScore = 0;
                    private Random random = new Random();
                    protected ActionListener listener = new ActionListener() {
                            public void actionPerformed(ActionEvent aei) { //aCTION eVENT iNTERNAL
                                    for (int y = 0; y < 10; y++) {
                                            for (int x = 0; x < 10; x++) {
                                                    playerField[x][y].removeActionListener(listener);
                                                    if (aei.getSource() == playerField[x][y]) {
                                                            innerRow = y;
                                                            innerCol = x;
                                                            playerField[x][y].setBackground(Color.green);
                                    for (int ships = CARRIER; ships > 1; ships--) {
                                    } // end of inner method
                            });

    };

  • Trying to download whole JDK & JRE and NOT installation programs

    Hi all,
    I want to download the JRE and JDK in one go and not download an installation program for each one. Ive searched everywhere but surely sun must provide these? Also does anyone know where i can get my hands on a downloadable version of the API docs?
    Many thanks

    Please note that this applies to the currrent java version installed on "standard" windows systems, only.
    To download the current version of Java, go here:
    http://java.sun.com/j2se/1.4.2/download.html
    and click on the word DOWNLOAD in the column labeled SDK in this line: Windows Offline installation (info)
    The API documentation can be downloaded from this same page, just scroll down...
    After downloading, click on this page of installation instructions and read through #6:
    http://java.sun.com/j2se/1.4.2/install-windows.html
    Install the software according to the preceeding instructions. During the installation process, you will be asked if you want to install a public JRE. Answer YES, this is the separate JRE that gets installed in C:\Program Files\Java\j2re1.4.2_01.
    If you encounter problems, see the section "Troubleshooting the Installation" in the installation instructions.

  • JRE vs JDK

    Hi
    I am doing this to find the version of JDK :
    apcltest@TEST:cd /usr/java14/bin then ./java -version
    java version "1.4.2"
    I do this to find the version of JRE:
    ordbtest@TEST:/oradbi2/oracle/testdb/9.2.0/jdk/bin
    ordbtest@TEST: java -fullversion
    full version: J2RE 1.4.2
    Both JRE and JDK versions are the same.
    I read on spots like this
    http://www.novell.com/communities/node/5812/ways-access-oracle-application-linux-environment
    that we should
    "Verify and confirm the version of JRE/JDK of Oracle Application server" This implies that the version of JRE is going to be the same as the version of JDK.
    Is JRE supposed to be the same? Are both found on the Apps server?
    (I can only find JRE on the db end, since the jdk does not exist on $ORACLE_HOME in apps.

    Thanks I will check those right now.
    I was just reading this on Note 418399.1
    A "database" Oracle home contains both a JDK ($ORACLE_HOME/jdk) and a JRE ($ORACLE_HOME/jre/1.4.2).
    In order to find out the current Java versions you can run:
    cd $ORACLE_HOME/jdk/binjava -versioncd $ORACLE_HOME/jre/1.4.2/binjava -version
    For both Oracle 10.1 and Oracle 10.2 database homes, the result for both the JDK and the JRE are usually 1.4.2_x, where x is the "update" number. The update version can be different between the JDK and the JRE.
    So its usually the same version ... but I am still not sure if we should look for JRE / JDK on tha apps, or the db.
    Let me check those notes you posted
    Thanks.

  • Differences of JDK x86 and JDK x64

    Dear all,
    I am in the progress on studying Java update with existing program.
    For previous, the program is complied in eclipse under JDK 1.4.2.
    We are now updating the JRE and JDK 1.6 update 30, however, there are several questions. Most appreciated if any one can provide a direction or guidance on it.
    1. As my understanding, Java should be able to compile and run under x86 and x64 platform, and it should be no difference on the compiled classes. The only difference should be x86 JVM and x64 JVM (for example, x86 JVM has better than x64 JVM, and x64 JVM should be support larger address range than x86 JVM). If not, what will be differences among classes compiled under x86 and that of x64?
    2. The x86 classes can be executed under x64 JVM. Can the x64 classes be executed under x86 JVM? Although, the classes will be read into byte stream into VM...
    3. If we need the x64 classes to execute under x86 environment, what should we do? If the x64 classes cannot be run in x86 JVM.

    929805 wrote:
    Is there documentation or reference (e.g. Java Knowledge Base, etc) stating this issue?There is documentation which states how Java compiled code must be handled within a JVM. (The Java Virtual Machine Specification.) Here's a quote from very close to the beginning:
    The Java virtual machine is an abstract machine.So you shouldn't expect it to mention specific machine architectures, or to specify how it should work on any particular machine architecture. On the contrary, you should expect it to ignore the existence of different machine architectures. And likewise when it gets around to describing the class file format, it simply provides an abstract description. It's up to the implementers to write something which runs in a particular machine architecture and which faithfuylly implements the JVM specification.

  • JAVA_HOME and JDK

    Hi,
    I installed the Java SDK a while ago, how do I check that I have the JDK with it? The reason why I ask is because I want to set the JAVA_HOME variable and not sure where I must map it to? When I installed the SDK it installed everything under C:\Sun\SDK\. I am running Windows XP.
    What are environmental variables used for? I am a C# developer and I am new to this Java setup.
    Regards
    Brendan

    The compiler with the JDK is called javac and the JVM is invoked with java. You'll find both under the bin directory of your SDK installation.
    The JAVA_HOME variable points to your JDK directoryso it'll be the path that you've given. The PATH variable should point to the bin directory under JAVA_HOME so that you can run javac and java and the CLASSPATH variable should be '.' unless you need to add anything else ( like Tomcat's servlet-api.jar).
    This link[1] should help you out loads.
    [1] http://ist.berkeley.edu/as/ag/technology/howto/install-java-sdk-win.html
    Edited by: nogoodatcoding on Oct 20, 2007 10:39 PM

  • What is the difference between JRE,JVM and JDK?

    plz reply me to the following question
    (1)what is JRE,JVM and JDK?

    The JRE is a java distribution for running java programs. It does not contain the development tools needed to compile and debug java programs.
    The JDK is a java distribution for both running and developing java programs. In includes the deveopment tools.
    The JVM is part of both the JDK and the JRE. It is the 'engine' that executes java bytecodes, performs garbage collection and does just-in-time compilation.
    HTH

Maybe you are looking for

  • Access Privileges

    Hi guys, I'm really hoping someone can help me out here as I'm going on holiday tonight and want to take my ipod nano with me but can't get it to work properly. I'm running Windows Vista and just installed my new ipod nano on it last night. When it c

  • Error while init delta in source system

    I use generic data source with generic delta Delta field - DATUM (Calendar date) Safety Interval Upper Limit = 1 Delta type = "New Status for Changed Records" My underline table for data source has 53 records. All records DATUM field value is 2010/09

  • A pop up box never seen before

    A pop up window has come up with the message of how to restart the computer by holding down the power button until is shuts off and then pressing the power button back on. it has the message in various languages. Is this legit or is a virus?

  • Stat500 files are created with large size

    Hi, in prd system (hp-ux,oracle 9.1, sap 4.7) . /usr/sap/<SID>/DVEBMGS00/data   file system getting full. system is creating stat500, stat501, stat502, stat503 etc..... with large size......please let me know what is this file use. why it is generati

  • Broken Folder Error On Mac Mini

    Hi, I recently brought Mini Mac of i5 2.3ghz 8GB 500GB hdd, when i have got the system it's was perfectly alright and today when i have tried to install windows 7 on my mini mac by divided 500 into two partition while installing i did not found Bootc