Running w/ different JRE than JDK compiled w/

What are the implications of:
1) Running app with a later JRE build (like 1.2.2_10) when the app has been compiled with an earlier JDK (like 1.2.2_07).
2) Running app with a earlier JRE build (like 1.2.2_07) when the app has been compiled with a later JDK (like 1.2.2_10).
App runs on Solaris but is compiled on Windows.
We're getting a mysterious SIG9 core dump which we can't seem to pin down. I know we shouldn't be mixing runs and compiles across releases (1.2 and 1.3) but I'm not sure about builds in the same release.
thanks

What are the implications of:
1) Running app with a later JRE build (like 1.2.2_10)
when the app has been compiled with an earlier JDK
(like 1.2.2_07).
Won't matter
2) Running app with a earlier JRE build (like
1.2.2_07) when the app has been compiled with a later
JDK (like 1.2.2_10).
Could be problematic but mainly because it might be using something from the Java API that did not exist in the earlier version.
App runs on Solaris but is compiled on Windows.
We're getting a mysterious SIG9 core dump which we
can't seem to pin down. I know we shouldn't be mixing
runs and compiles across releases (1.2 and 1.3) but
I'm not sure about builds in the same release.
Isn't sig 9 an unconditional kill? If so as far as I know applications don't generate that internally (unlike say sig 11.) If so it would suggest something external to your process is killing it.

Similar Messages

  • I cant sleep....Running two different JRE versions........

    Hey Guys,
    I m sure u must be rocking !!! Let me come to the point !! I have following doubts...
    1) Is it possible to run different JRE versions on the same machine...? This might be a real life scenario. For example u have java application-1 installed on ur machine which uses JRE1.4. Then u install another java application-2 which was built and tested using JRE1.5. That means u need to have both the JREs on ur machine and User might invoke both the application at the same time which needs respective JREs to be invoked.
    If u smart guys guessed it that this guy is coming from .NET back ground and talking about Side by side execution, then u got it right. I m planning to shift the parties !!
    2) If above answer is yes, then How can we achive it...?
    Thank you guys !!

    > I could not think of any better scenario on top of
    my mind, But even the examples which I gave are
    valid i guess, may be some people will agree with me
    in the forum....
    "I guess" and "maybe" are far different from "it is always better to not touch the old application and its JRE".
    > But i dont understand why u think that these
    examples are non sense !!
    I work for a multi-billion dollar business in which the JRE of a critical application was upgraded without a problem. According to your suggestion, that's a mistake, but I have a hard time imagining what your justification for that position would be.
    > Correct me if i m wrong
    anywhere....I m very new to Java,
    Considering some different scenarios is good for the imagination. Not to be too harsh, but perhaps counselling people that one should never upgrade the JRE of a business- or mission-critical application should wait until you have some actual experience. :o)
    ~

  • Specifiying different JRE than the bundled with JDK

    We are migrating out web application previously deployed on Sun ONE 6.0 to Sun ONE 6.1 and upgrading to JRE 1.5_06 but JDK will remain to be 1.4.x. My question is how I can use a differnt JRE because in the "Java" tab in the admin interface we can set the Java path which points to the JDK and I'm assuming it uses the same JRE that is in that folder. I can ofcourse explicitly delete the jre folder and replace it with the upgraded JRE 1.5 but just wondering if thats the best option...
    Thanks
    SA

    yeah i understand it wont be a good idea to mix and match the jre but the requiremnet for my product is to move to jre 1.5 so i need to do move to the higher JRE.
    For those who may wanna know one of doing that is to procompile all your JSPs and in the server.xml you can manually set the java-home and then make sure in the start script those changes are reflected by setting the relative paths right..

  • Why can't I run my Java program with just the JRE, the JDK is required?

    I've recently written 3 programs in Java using the Netbeans IDE with JDK 1.6 as the default Java platform. The compile-time libraries include the Swing Application Framework. I use BuildDesk from ProductiveMe to package the each program into a Windows installer.
    When I install the programs on a new computer without a JRE or JDK being present, and attempt to run them I get an error (as expected) stating that there is no JVM. The messages says that I need to install JDK 1.3 or higher. I downloaded the latest JRE onto the new computer and attempted to run the programs and I get the same error message. My question is, why can't I run these programs with just the JRE installed? Why do I need the JDK? When I install the JDK, the programs run fine. The typical user may not have the JDK on their system, but they likely have the JRE if they've run Java programs before.
    Is the answer as simple as there must be library functions being used by the programs that belong to the JDK, but not the JRE? I'd rather a user not have to install the JDK verses the JRE because they may also have to update some Windows environment variables.
    Thank you for any help on this issue.

    915088 wrote:
    Thanks for your replies. I further investigated BuildDesk and found an option which allows a JVM check but that check needs the JDK. I stopped the JVM check and rebuilt using BuildDesk and it now only requires the JRE to run the programs. The reason why I use BuildDesk is to package more than just the jar file for the user. BuildDesk allows me to create a installation folder structure as well as include any other files in the build. I could just as well zipped all this together for the user but decided against that method.I don't think anyone will question your usage of an installer tool; that is entirely up to you. But what is questionable is that you have problems with that installer tool and then go look for help in a Java programming forum. The next time, go look for help at the source. If there is no way to acquire help (support, a forum, a mailinglist, anything) then that is a very good reason to not use the product in question.

  • Need to run swing GUIs under different JRE versions

    I need to run swing GUIs under different JRE versions. Where can I find information about how to use only classes which exist from version 1.1.7 and above?

    Under 1.1.7, Swing (then version 1.0) was under com.sun.java.swing. The package name changed in Swing 1.1 b3/JDK 1.2 to javax.swing. You can see what classes were available under Swing 1.0 at http://java.sun.com/products/jfc/swingdoc-api-1.0.3/frame.html

  • Preview is different than final compile? HELP PLEASE

    This is a simple test animation, but 2 things go wrong when I compile it
    1: the clouds in the compiled version move at different speeds than when I hit "play" in the workstation
    2: one of the clouds dissapears (the bottom one), and then reappears randomly, something that it doesn't do in the workstation
    Ive tried it in different layers, with different types of objects, and even capturing it frame-by-frame, but it always messes up when i export it!
    Heres the .fla and the .swf files, if someone could look and see if i'm overlooking something and give me feedbac
    http://speedy.sh/fxWTk/RECOVER-RECOVER-1.fla

    Hi,
    It looks like you have accidently added the same motion tween twice at different levels of nesting within the same symbol. Also within nesting, you're using Movieclip instance somewhere and Graphic instance at other places.
    This answers both of your queries:
    1. Speed is different because the resultant speed is the addition of two motions along the same path. (When previewing within application, animations within a movieclip are not shown but within Graphics are shown.)
    2. The disappearance happens due to the same eason. The start and end point of a grapic animation is dependent on the parent timeline and remains the same during looping. Movieclip animations on the other hand, always play completely and may spill over multiple loops. So basically the start point of the animation is getting shifted with every loop.
    You can remove one of the tweens from the nested symbol to fix this.
    -Nipun

  • How to Setup a JSP to Run on Different Physical Location than OC4J Defaul

    I am trying to setup a development environment for jsp application development in Oracle 9ias Release 2 for a development group. I followed the steps outlined in NOTe:167960.1 using both EM Website (creating a OC4J and editing server.xml and defau*.xml files) and DCMCTL (Doc ID: 185635.1) utility. OC4J app is coming up only partially which does not work.
    Is this possible to "Setup a JSP to Run on Different Physical Location than OC4J Default Home" in Oracle 9ias Release 2 ?
    Appreciate insight
    Thanks
    Subu

    I was finally able to get it up and running... I commented out all the apple specific lines in smb.conf until I was able to successfully finish the driver copy process via the Windows driver wizard. The line in the /etc/smb.conf which was causing this weird problem was:
         vfs objects = notify_kqueue,darwinacl,darwin_streams
    I have no idea what this line is about. However after commenting it out the driver installation immediately started to work. I cross checked it by adding the line again and viola the problem was back - so it can be broken down to this line...
    As I've found some other comments to this line in the internet I guess I will go for the smb.conf changes described in this article:
    http://blog.djmnet.org/2009/02/09/macs-needing-unix-network-geekery/
    Cheers
    jogi4mac

  • Is it possible to run two different version of jre simultanously ?

    My client is using two diffrent application those supports two different versions of jre(1.2 & 1.4). If he uses jre1.2 only one application works ,and if he uses jre1.4 then the other works but the 1st shows error messege And vice versa.
    Is there any solution to shortout this issue?

    Is it possible to run two different version of jre simultanously ?Yes. In different processes, of course.

  • Can I run a different user as the managed server than the admin server?

    Under unix, can I run a Weblogic 7 managed instance as a different user than the
    admin server in the same domain? If not, any reference docs on BEAs site?

    You mean a different UNIX user? Yes, that should be fine.
    -- Rob
    Frank wrote:
    Under unix, can I run a Weblogic 7 managed instance as a different user than the
    admin server in the same domain? If not, any reference docs on BEAs site?

  • Can you run a different user on the managed server than the admin server?

    Under unix, can I run a Weblogic 7 managed instance as a different user than the
    admin server in the same domain? If not, any reference docs on BEAs site?

    That shouldnt pose a problem.
    anand
    In article <3f679e4d$[email protected]>, Frank wrote:
    >
    Under unix, can I run a Weblogic 7 managed instance as a different user than the
    admin server in the same domain? If not, any reference docs on BEAs site?

  • Running different JRE on the same system to measure JRE Performance

    Hey there,
    I want to run several java benchmarks on different runtime environments on the same system.
    Now, I need to know what I have to consider that those machines do not affect each other?
    What do I need to consider while installing those different runtime environments.
    How do I have to set the classpath, etc. - I guess it shouldn't be set...
    Are there any files in the operating system that could affect the different JRE versions, such as java.exe and javaw.exe in the Windows NT System directory? What do I have to do with those files?
    And which would be the proper steps to reach a meaningful result?!
    Right now I am using Windows NT, but I will also try to run some tests on Linux! So, I am open for any kind of help!
    Thanks,
    Marc

    Hi Marc,
    Have you considered installing one JRE at a time and running your benchmarks? Before installing the next JRE, uninstall
    the existing JRE. Thus eliminating any possibility of
    overwriting/corrupting any of the Windows NT System
    directories or registry settings.
    -Sun DTS

  • Invoking java methods from C/C++ on the machine with different JREs

    I implemented Windows NT Service instantiating JVM and invoking several java methods. Everything works but I have an issue with running the service on the machine where multiple different versions of JRE have been installed. The service is calling java methods that require JRE 1.3 or later so I wrote the code that is setting system PATH from within the service based on the configuration stored in the external file. The problem is that the service requires jvm.dll to be in the PATH prior lunching it since this library is instantiated through the implicit linking. When I put jvm.dll in the same path as the service binary I can lunch it but JNI_CreateJavaVM fails and returns -1. This happens even if JRE 1.3 is in the system PATH prior lunching the service.
    Everything works if the system PATH contains references to JRE 1.3 and jvm.dll is removed from the service's directory.
    I am looking for an advice on what is the proper way to deal with invoking java methods from the C/C++ executable in the environment with different versions of JRE.
    Thanks, Kris.

    Here's a way I have done what you are asking about:
    What you want to do is make all of your linking happen at runtime, rather than at compile time. This way, you can edit the PATH variable before the jvm.dll gets loaded.
    Following is some code that I used to handle a dll of my own in this manner. You can decide if you want to write a "wrapper" dll, or if you find it simpler to approach the jvm.dll in this way.
    // Define pointer type for DLL entry point.
         typedef void JREPDLL_API (*EXECUTEREQUEST)(char*, Arguments&);
    // Set up path, load dll, and pass everything off to it.
    HINSTANCE javaServer = javaServer = LoadLibrary("jrepdll.dll");
    if (javaServer != NULL) {
    EXECUTEREQUEST executeRequest = (EXECUTEREQUEST)GetProcAddress(javaServer, "ExecuteRequest");
    if (executeRequest != NULL) {
    if (argc == 1)
         // Execute the request.
         executeRequest("-run", args);
    else
         // Execute the request.
         executeRequest("-console", args);
    Here's some code for how to edit the PATH:
              // Edit the PATH environment variable so that we use our private java.
    char *appendPt;
    char *newPath;
    char *path;
              char tmp[_MAX_PATH];
              // Get the current PATH variable setting.
    path = getenv("PATH");
              // Allocate space for an edited path setting.
              if (path != NULL)
                   newPath = (char*)malloc((_MAX_PATH * 2) + strlen(path));
              else
                   newPath = (char*)malloc((_MAX_PATH * 2));
              // Get upper part of path to desired directories.
              strcpy(tmp, filepath);
              appendPt = strstr(tmp, "dbin\\jreplicator");
              appendPt[0] = '\0';
    sprintf(newPath, "PATH=%sjava\\jre1.2.2\\bin;%sjava\\jre1.2.2\\bin\\classic", tmp, tmp);
    // Append the value of the existing PATH environment variable.
    // If there is anything, append it.
    if (path != NULL) {
         strcat(newPath, ";");
         strncat(newPath, path, (sizeof(newPath) - strlen(newPath) - 2));
    // Set new PATH value.
    _putenv(newPath);
              free(newPath);

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

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

  • Referenced assembly vspbatchparser.dll targets a different processor than the application

    referenced assembly c:\program files\microsoft visual studio 9.0\common\ide\microsoft.visualstudio.vspBatchPaser.dll
    targets a different processor than the application

    The message is telling you that you're trying to use an x86 assembly in an x64 process or vice versa. Given that the assembly is in the IDE subfolder of VS and VS is x86 I assume you are either compiling your app for x64 or you are running an x64 OS and
    your app is compiling with AnyCPU. Change it to x86 and it should work.
    Michael Taylor
    http://blogs.msmvps.com/p3net

Maybe you are looking for

  • Error while transferring Data from PSA to DSO

    Hi all, We had a requirement to load data into the DSO.We are extracting it from R3. Problem is that while loading in PSA it is showing 1056 records ,But when we are trying to load it in DSO it is showing Transferred records as 1428 and added records

  • HT204053 Why isn't my iPad sending iMessages using my phone number?

    I can't get my phone number to show up in (message) settings  on my iPad. My IPhone is sending/receiving iMessages but my iPad is not. I've checked passwords and restarted both devices multiple times. Any suggestions? Thanks.

  • Isight Camera as a Security Camera

    Is there any way in which I can log into my iMac at home from work and run my iSight camera, essentially using it as a security camera? Is there any software that does this? I would appreciate any specific information you could provide. Thank you.

  • Trackpad not sending mouseUp on tap?

    I have a problem with the trackpad on my 17" MBP (2009, unibody). It's not consistent, but it is happening with increasing frequency. I normally have my trackpad set for click on tap (I hate how the whole pad moves for a physical button-click, plus t

  • Can't find Photoshop CS6 in Aperture

    I installed Photoshop upgrade to CS6 and I am using Aperture 3.4.3 with a Mac Computer. I don't want to export to Photoshop I want to send to Photoshop so the photo wil go back to Aperture. I used to be able to do this before I upgraded. Edit with Ex