What is path to JVM?

I'm trying to install a tool that requires that "the JAVA_HOME environment property is set to match the top level directory containing the JVM you want to use."
The example they give for bash is
JAVA_HOME=/whatever; export JAVA_HOME
And I can run that command without errors. However, I can't figure out what the path should be. I found an old post saying it should be /Library/Java/Home, but when I tried to run the shell script to build the tool, it said JAVA_HOME wasn't set.
I also tried /System/Library/Frameworks/JavaVM.framework and /System/Library/Frameworks/JavaVM.framework/JavaVM, but it still said JAVA_HOME was not found.
I can't tell whether the path is wrong, the command I used to set JAVA_HOME didn't work, or something else is wrong. Does someone know the path is 10.6.2 for sure? That would really help me figure out where I'm going wrong.

Sorry I don't know what the path should be, but is this tool run from Terminal or is it a GUI Mac app (i.e. launched by Finder)? Remember that setting a Terminal environment variable only affects programs started from that Terminal session, and setting a Terminal var will have no effect on a GUI app (even an app started from the command line with 'open', AFAIK). A script started from Terminal would read the Terminal vars, but if it's installing a GUI app it might be smart enough to look at the GUI environment.
To read your Terminal envr vars, just type 'set' at the Terminal prompt. If you do this in a new Terminal session, check the list to be sure your original Java install didn't already set JAVA_HOME. If so, and your new tool is a GUI app, just copy the Terminal var to the GUI environment.
To access your GUI envr vars see [Environment Variables|http://developer.apple.com/mac/library/documentation/MacOSX/Conceptua l/BPRuntimeConfig/Articles/EnvironmentVars.html] in the +Runtime Configuration Guidelines+ or take a look at [http://stackoverflow.com/questions/135688/setting-environment-variables-in-os- x].
As to what the path should be, it's probably the directory your Java installer wants to use when it asks you if you want to install in the default location or not. I guess you could run the installer up to that point and then cancel after you copy that path. If all else fails, find the JVM(s) and try the parent directory.
Btw, I'm not a Java programmer, only working from what little I know about OS X envr vars. So after you get JAVA_HOME set correctly, please don't keep the thread open to ask why the tool is making bad coffee, ok? We have some Java experts around here, but another Subject line would be the best way to get their attention.
Hope that helps!
\- Ray
p.s.: This reply was in the editor when you posted an update, so the above isn't responsive to your recent progress. Sorry for that confusion. - R
Message was edited by: RayNewbie

Similar Messages

  • What Version of Sun JVM has JDeveloper been qualified with?

    We have a bug that appears in Java 1.5.06.
    Code worked in 1.5.02.
    Issue is in the swing library event handling.
    What version of the JVM has JDeveloper been qualified with?

    Hello pjtobi,
    Thank you for the details of the error message you are receving when launching iTunes.  I recommend removing and reinstalling iTunes.  Follow the steps in the article below:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • What is virtual in jvm

    hi friends.
    i have a basic doubt. why java runtime mechanism is said to be virtual machine. Virtual means imaginary. what is dummy in jvm.
    by vinod

    It is virtual, because it hides the differences between each platform.
    When you develop a java program, you don't have to worry about whether it is run on an Intel processor or a Sparc processor, Windows or Unix.
    The Java program, presents the java developer with a "virtual machine", as opposed to a specific platform and processor.
    Ps. Virtual does not mean imaginary. In this case, it means a common interface to many platforms.
    regards,
    Owen

  • What's in the JVM Process's Memory Space?

    Hello
    I'm noticing the following behavior on an NT system. On
    application startup, I see
    Total Heap 9 MB
    Used Heap 5.5 MB
    java.exe memory (from NT Task Manager) 36 MB
    After a "login" operation which loads a few more
    classes:
    Total Heap 12.5 MB
    Used Heap 8.2 MB
    java.exe memory (from NT Task Manager) 53 MB
    Heap memory leaks have been ruthlessly suppressed
    (thanks to OptimizeIt and careful programming). The
    behavior I do not understand is that the NT process
    (java.exe) increased in size by 17 MB when the Java
    heap increased by only 3 MB. The .jar file in which the
    application resides is less than 1 MB, so this 14 MB
    growth can not be attributed to new classes being
    loaded.
    Does anyone know what is going into the process
    memory space of java.exe? It tends to grow larger
    and larger.
    Should I even care? Do I want a large allocation of
    process memory for java.exe, or will that hamper
    performance of machines with less physical memory?
    Posts on related topics in this forum have sometimes
    advocated allocating a lot of memory to the JVM with
    -X options.
    Thanks

    Hello
    I am facing exactly the same problem on NT. However, on 2000 Server this problem doesn't seem to exist. Are you, by any chance, using JNI? We are extensively using JNI in our Servlets and found that there is definitely some momory leak there. We could not figure out any substantial leak at Java end. In NT's "Task Manager" java.exe is always listed first and very rarely the memory usage seems to come down. On 2000 Server the performance is far better.
    Please visit this link:
    http://forum.java.sun.com/thread.jsp?forum=33&thread=211330
    Regards
    Manish Bhatnagar

  • What would make a JVM memory size 1.9GB ?

    This is on Solaris 2.6, JDK 1.2.2_05a, JDK1.2.2_07, possibly JDK 1.3 (it crashed).
    WLS 5.1, SP8. With inline_instrs_jit=0.
    This is the [heap] segment shown by /usr/proc/bin/pmap. This is native heap, it is
    NOT the Java Heap.
    I know it could be the Type 2 db drivers - but I doubt it.
    With JDK1.3 we set -XX:MaxPermSize=128m - it crashes after an hour.
    One part of the application creates its own threads for some parallel processing.
    Is this a known
    problem with the JVMs?
    Any help is much appreciated.
    Mike Reiche

    What is the 'Break difference' that the debug JVM shows? Is that the Java Heap? Or
    is memory in the C Heap that is wasted by fragmentation?
    ============== C Heap Report ========================
    mmap space 300515328
    Committed space 95690752
    Allocated space 34049316
    Break difference 66060288
    Breakdown by type:
    ClassSpace 15252128
    JITCompiledStackMaps 5277188
    StackMap 1892672
    Dependency 1856760
    utf8_space 1854838
    untagged 1783520
    basicBlocksState 1664992
    utf8_table 1055903
    Class 811520
    JITPrestub 610480
    NearClass 531360
    CardObjectTable 386048
    JavaStack 257024
    CheckingDone 200367
    SummaryCardTable 193024
    name_loader_cache_entry 65976
    ScratchRecord 65548
    basic_block_t 50896
    IntfMethodTable 48960
    stringTableOverflowRecord 46480
    BitVectorElem 32768
    ObjectMap 30724
    ClassName 28407
    Clinit 18752
    Table_mem 18628
    LoaderConstraintsTableEntry 11668
    JITInlineByteCode 1928
    LoaderConstraintsTableLoaderEntry 520
    stateVecBuf 237
    =====================================================
    Total GC time: 2987981 ms
    - Mike
    "[email protected]" Mike wrote:
    >
    >
    Aslo - GC[1] are taking way long (Debug JVM) - I'm used to seeing them taking
    500
    ms with the regular JVM. With -ms32m -m256m - I wanted GC[1] to run often
    because
    that has helped with other memory problems in the past - it doesn't work
    so hot here.
    GC[1] in 5514 ms: (38Mb, 0% free) -> (38Mb, 69% free)
    GC[1] in 6300 ms: (38Mb, 0% free) -> (38Mb, 65% free)
    GC[1] in 7130 ms: (38Mb, 0% free) -> (38Mb, 64% free)
    GC[1] in 6158 ms: (38Mb, 2% free) -> (38Mb, 62% free)
    GC[1] in 6171 ms: (38Mb, 0% free) -> (38Mb, 65% free)
    GC[1] in 6885 ms: (38Mb, 0% free) -> (38Mb, 64% free)
    GC[1] in 7403 ms: (38Mb, 0% free) -> (38Mb, 61% free)
    GC[1] in 689101:25:49 PM PST {218} - Evaluation is: true
    GC[1] in 6545 ms: (38Mb, 1% free) -> (38Mb, 61% free)
    GC[1] in 7459 ms: (38Mb, 0% free) -> (38Mb, 62% free)
    GC[1] in 6861 ms: (38Mb, 2% free) -> (38Mb, 58% free)
    GC[1] in 6090 ms: (38Mb, 0% free) -> (38Mb, 56% free)
    GC[1] in 6413 ms: (38Mb, 0% free) -> (38Mb, 60% free)
    GC[1] in 8230 ms: (38Mb, 1% free) -> (38Mb, 58% free)
    GC[1] in 7649 ms: (38Mb, 0% free) -> (38Mb, 54% free)
    GC[1] in 7912 ms: (38Mb, 0% free) -> (38Mb, 55% free)
    GC[1] in 7696 ms: (38Mb, 1% free) -> (38Mb, 57% free)
    GC[1] in 6543 ms: (38Mb, 1% free) -> (38Mb, 60% free)
    GC[1] in 7036 ms: (38Mb, 1% free) -> (38Mb, 59% free)
    GC[1] in 7483 ms: (38Mb, 0% free) -> (38Mb, 56% free)
    GC[1] in 5132 ms: (38Mb, 1% free) -> (38Mb, 59% free)
    GC[1] in 8186 ms: (38Mb, 0% free) -> (38Mb, 53% free)
    GC[1] in 5691 ms: (38Mb, 0% free) -> (38Mb, 58% free)
    GC[1]01:35:49 PM PST {575} - Evaluation is: true
    GC[1] in 8176 ms: (38Mb, 0% free) -> (38Mb, 46% free)
    GC[1] in 8463 ms: (38Mb, 0% free) -> (38Mb, 47% free)
    GC[1] in 7342 ms: (38Mb, 0% free) -> (42Mb, 41% free)
    GC[1] in 6920 ms: (42Mb, 0% free) -> (49Mb, 41% free)
    GC[1] in 8610 ms: (49Mb, 1% free) -> (60Mb, 40% free)
    GC[1] in 9581 ms: (60Mb, 1% free) -> (60Mb, 50% free)
    GC[1] in 10514 ms: (60Mb, 0% free) -> (60Mb, 59% free)
    GC[1] in 9865 ms: (60Mb, 0% free) -> (60Mb, 60% free)
    GC[1] in 11323 ms: (60Mb, 0% free) -> (60Mb, 57% free)
    GC[1] in 18768 ms: (60Mb, 0% free) -> (60Mb, 60% free)
    GC[1] in 11147 ms: (60Mb, 0% free) -> (60Mb, 55% free)
    GC[1] in 7293 ms: (60Mb, 0% free) -> (60Mb, 42% free)
    GC[1] in 9372 ms: (60Mb, 0% free) -> (60Mb, 53% free)
    GC[1] in 8814 ms: (60Mb, 0% free) -> (60Mb, 55% free)
    GC[1] in 9695 ms: (60Mb, 1% free) -> (60Mb, 54% free)
    GC[1] in 7309 ms: (60Mb, 0% free) -> (60Mb, 53% free)
    GC[1] in 8713 ms: (60Mb, 0% free) -> (60Mb, 54% free)
    GC[1] in 11955 ms: (60Mb, 0% free) -> (60Mb, 55% free)
    GC[1] in 12685 ms: (60Mb, 1% free) -> (60Mb, 55% free)
    GC[1] in 18906 ms: (60Mb, 0% free) -> (60Mb, 58% free)
    GC[1] in 13333 ms: (60Mb, 0% free) -> (60Mb, 51% free)
    "[email protected]" <[email protected]> wrote:
    Rob -
    Thanks for your attention -
    We create lots of threads - up to five threads for each DB hit (i didn't
    design it).
    The multi-threading will be disabled/removed and tested later on today.
    Both 'top'
    and pstack show around 85 threads.
    I've read articles on the bea newsgroups about WL hanging on to threadreferences
    so that the threads could not be GC'ed, but it sounded more like a customer's
    impression
    of what might be going on than something from BEA engineering.
    Right now we are running with the 1.2.2_05a 'Debug' JVM with -verbose:gc
    -verbose:gc
    -verbose:gc
    JVMARGS=verbose_c_heap,inline_instrs_jit=0
    Unfortunately, some of the code being tested is now broken and not being
    excercised
    today. I will keep you posted.
    - Mike
    Rob Woollen <[email protected]> wrote:
    How many threads are you creating?
    Each thread uses some memory (stack etc.), but 1.9GB would be a lot of
    thread creation.
    -- Rob
    Mike Reiche wrote:
    This is on Solaris 2.6, JDK 1.2.2_05a, JDK1.2.2_07, possibly JDK 1.3
    (it
    crashed).
    WLS 5.1, SP8. With inline_instrs_jit=0.
    This is the [heap] segment shown by /usr/proc/bin/pmap. This is nativeheap, it is
    NOT the Java Heap.
    I know it could be the Type 2 db drivers - but I doubt it.
    With JDK1.3 we set -XX:MaxPermSize=128m - it crashes after an hour.
    One part of the application creates its own threads for some parallelprocessing.
    Is this a known
    problem with the JVMs?
    Any help is much appreciated.
    Mike Reiche--
    Coming Soon: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnweblogic.com

  • Eclipse can't find the path to JVM

    I tried running Eclipse and got an error that said that it looked for Java in /usr/share/eclipse/jre/bin/java and couldn't find it, so it can't run.
    I'm pretty sure both the JVM and JDK are installed, although running 'java' and 'javac' result in "bash: java/javac: command not found".
    Thanks.

    Do you have the files /etc/profile.d/{jre,jdk}.sh?  Do they get sourced when you log in?  They should.  They are the ones that set up the various paths required to run java.  I'd also have a look at /etc/profile.  It should contain this part, that sources all files in /etc/profile.d:
    # Load profiles from /etc/profile.d
    if test -d /etc/profile.d/; then
    for profile in /etc/profile.d/*.sh; do
    test -x $profile && . $profile
    done
    unset profile
    fi

  • Can't change path to JVM

    Hello all,
    I recently installed the latest JDK (jdk1.5.0_14), but when trying to start a server the path defaults to a previous JRE path (jre1.6.0_03), and so I get the error that there is no server VM in that directory.
    I've added the JDK path to the environment variable (the original JRE path was not there at all), and even changed all references in the registry.
    In the Java control panel I've added the JDK's VM paths (both the root bin and jre folders) for the JNLP on the USER tab, disabling the other JVMs, but can't do anything on the SYSTEM tab.
    I'm inexperienced with Java so apologies if I haven't made any sense, or its a simple fix. I'm at a loss to know where it's picking up the path from, and any help would be appreciated.
    Thanks
    Matthew
    **Edit. So actually not the latest JDK, just the one that was recommended. Can you run a JDK older than a newer installed JRE?**
    Edited by: MattLeach on Feb 18, 2008 8:00 AM

    1. which server are you using?
    2. your server is referring JRE right, while installing the server you was gave the JRE path right, so try to change you JRE location in your server configurations, then your server will point to right JRE,

  • What the path tutorials don't tell you

    Well I just learned about the multicolor paths. Not in any tutorial I've read yet.
    And now Path times 2..
    What I'm trying to do is learn the cintiq, and the ins & outs of the different PS functions. I'm currently hitting walls using PATH's to draw a simple lamp.. Base path 1, and shade - path 2.
    Ok made the base, saved that path..This part's pretty much done. But I make many different layers, and want to draw a lot of those layers with the pen tool as paths.
    Started a shade path [work path], went to stroke it, and the stroke, fill, new path, etc.. icons were all dead. Couldn't stroke it, fill it, or make new path. Actually I think the make new path button did work [once]. Still can't stroke the shade.
    So, back to needing help that isn't that easy to find in the PS help.

    Lots of free tutorials here:
    http://www.google.com/search?hl=en&source=hp&q=ps+cs4+path+tutorials&aq=f&oq=&aqi=

  • What is technology behind jvm ?

    can anyone tell me what are all technologies used to create JVM
    means language etc.
    please tell me the meaning of these lines
    The Java programming language originated as part of a research project to develop advanced software for a wide variety of network devices and embedded systems. The goal was to develop a small, reliable, portable, distributed, real-time operating platform. When the project started, C++ was the language of choice. But over time the difficulties encountered with C++ grew to the point where the problems could best be addressed by creating an entirely new language platform.

    There are varying JVMs for the varying platforms and from varying vendors. Which one are you interested in? And, once you know that, ask them.
    If you are asking what the "standard" is, there isn't one, and it doesn't matter, regardless of what you may think of that answer.

  • What migration path from 10.g AS tiers to Fusion Middleware 11g AS tiers ?

    Hi all,
    We have purchased Oracle AS Enterprise Edition 10g a couple of months ago and
    we are currently running the following tiers :-
    - one Forms & Reports 10.1.2 AS instance,
    - one infrastructure 10.1.4 instance for OID/SSO,
    - one OC4J 10.1.3 instance for ADF applications deployment.
    What would be the new tiers et their respective downloads to migrate to 11g with AS EE licences acquired and protected under OTS without having to purchase any new products or options ?
    -Portal,Forms,Reports,.. 11g for Forms & Reports. (seems clear in the download list).
    -What about ADF 11g deployment ? What to download ? (seems to be Web Logic Server in the Required Additionnal software section but not sure)
    -What about OID/SSO ? What to download ? (it seems Forms & Reports 11g will work with OID/SSO 10.1.4 but what about ADF 11g apps deployed on WLS ? it is also going to be able register with 10.1.4 ?
    Any clarification will be most welcomed.
    Thanks.
    Jean-Marc
    Edited by: GCC team on Jul 2, 2009 4:23 PM

    If you open the project in the 11g preview it will automatically update the metadata and generate the deployment XML in the new format. Alternatively you should be able to open the 10.1.3.3 metadata in the 11g preview's runtime.
    The biggest issue you may encounter in the upgrade besides replacing the libraries and ensuring you are using JDK5 is the removal of the code deprecated in previous releases.
    Doug

  • What is path that is given while configuring communication channels

    I had recently installed xi on my desktop, i'm unable to write path for communication channel....
    while practicing in my institute I had used "//ECCserver/SAPMNT" as path for both sender and reciever communication channels...
    now i'm unable to write the path for both
    please help me out

    hi narssimha
                        just identify  the application server path. like in ur system some part it work like server . just identify.
    its MENU-RUN- application sever path. then only its work.
    and when ur downloading the business system we will create the communication channal . thats different

  • What career path to take after CCNA??

    Hi All
    I completed my ccna 2 years ago.I am working as 2nd line IT support but have no experience to any of the cisco products.Because all of the switches are allready configured and company dont let you touch the stuff unless you have experience.Because i need to renew the certification at the end of the year i am thinking shall i go for ccna security or not?
    I have tried applying for all the cisco jobs but no luck so far??Please help........

    I completed my ccna 2 years ago.I am working as 2nd line IT support but have no experience to any of the cisco products.Because all of the switches are allready configured and company dont let you touch the stuff unless you have experience.Because i need to renew the certification at the end of the year i am thinking shall i go for ccna security or not?
    You are in a proverbial spin-cycle:  Which comes first, the chicken or the egg?
    Companies won't hire you because you are not CCNA, for example.  Now that you are CCNA they won't hire you because you don't have any experience.  You can't have any experience because no one will hire you.
    Unfortunately, in our line of work, we always require someone who has "certification" because we won't spend endless time explaining the concept of IP subnetting, for example.  However, this does not stop anyone who claims to be CCNA/CCNP and designs a rack-full of HP servers and a 3750E as top-of-rack switch and hoping the PoE can power up the servers.  Or someone who claims to be CCNA but doesn't know how to erase a config of a router.
    Short story is this:  Unless you can gain a foothold to the IT industry, studying for more certification is a waste of your time.  I mean, CCNA Security is nice-to-have but unless you have three years of experience under your belt, it doesn't really mean much. 

  • What is happening overriding method  in JVM(urgent -------------------- )

    how to know , what is happeing in jvm
    abstact class abstractTest{
    public abstract void abstractmethod();
    public void method{
    System.out.println("hai i am in abstact class");
    }//end of class
    public class runClass extends abstractTest {
    pubic void method(){
    System.out.println("iam in sub clas");
    public static void main(String a[]){
    abstractTest obj = new runClass ();
    //how to call abstract class method
    obj .method();/*sub class method can recive how to call abstract method using polymorphishm*/
    }//end of main class
    --------------------urgent ----------------------------

    There's plenty of information in the Java Virtual Machine specification available here on this web site.
    http://java.sun.com/docs/books/jvms/second_edition/html/Compiling.doc.html#14787
    regards,
    Owen

  • What is happening overriding method  in JVM

    1.what is happeining in JVM while i do overriding method ?
    2. why we cant create object for abstract class. what is happeining in JVM?
    HOW TO I KNOW internal process of JVM above i mentioned . is there any book for this?

    There's plenty of information in the Java Virtual Machine specification available here on this web site.
    http://java.sun.com/docs/books/jvms/second_edition/html/Compiling.doc.html#14787
    regards,
    Owen

  • What is the XI 3.1 adminlaunch/launchpad path?

    We have just installed xi 3.1 on our development machine. Does anyone know what the path to the adminlaunch/launchpad is for XI 3.1?
    Under XIR2 we use this path:
    http://Server Name:8080/businessobjects/enterprise115/adminlaunch/launchpad.html
    I would appreciate any response,
    Mike

    Hi Michael,
    No launchpad in R3 or 3.1.
    CMC can be accessed at http://server:8080/CmcApp/
    Infoview can be accessed at http://server8080/InfoViewApp
    Hitomi

Maybe you are looking for

  • XML Parsing Error (that works in Eclipse)

    I have been working on an application using JIDE this afternoon. I have been using some of the examples that are provided. To start with I did the usual copy and paste action on one of their examples into JDeveloper so I could run it and walkthrough

  • How to prepare for Flex 3 Certification?

    Hi Guys, I am a Web Developer... I want to do Flex 3 Certification.. So anyone knows the procedure to approach for the exam...? thanks in advance!!! Regards, Flex Sachins

  • Delivered Scores not available

    Hello community, unfortunately I am facing an issue with the contact fact sheet. When opening the contact fact sheet and navigating to the facet "Scores" it displays "No scores available". Also the key performance indicators (KPIs) are missing in the

  • Confused on albums and stacks

    Before I upgraded to Snow Leopard and Aperture 2.1.4 I had built three albums with 45 pictures each, and put them in a folder. I used these albums to sync to my iPhone, and looking at my iPhone all 135 pictures are in the right place. After upgrading

  • XML Publiaher Versus BI Publisher

    Hello All, I am very knew to BI publisher. I would like to know what is the main difference between XML Publisher and BI Publisher. Kind Regards, Sai.