Compile with different JRE Version

Hello!
Exists some problem compile application using JRE 1.5.0_8 and run with JRE 1.5.0_11?
Thanks a lot
Andrew

Try it and see, I've ran earlier version bytecode on new releases and also compiled old source on new JDK's without any problems before, but then your app is not my app and you may have used something or combinations of somethings that nobody else ever has and it yacks on you.
Never know until you try it.
BTW: I'm still running some of my 1.5, 1.4, 1.3, and 1.2 code on 1.6 no problems, but then not all of it is rocket science either.

Similar Messages

  • Use different JRE versions in Oracle Discoverer 10g(10.1.2.0)

    Hello.
    We have a Oracle Forms application which also uses Discoverer Plus and Reports.
    Problem is we have some user clients who uses XP/IE 6.0 while otheres has Vista IE 8.0.
    Based on here
    http://www.oracle.com/technetwork/middleware/ias/downloads/as-certification-r2-101202-095871.html#BABGCBHA
    depending on OS/browser different plugin versions are required. If we
    Can we have different JRE versions in separate clients? Kinda confused with the matrix.

    Hi;
    Please check below which could be helpful for your issue:
    Overview of Using Java with Oracle E-Business Suite Release 12 [ID 418664.1]
    Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1]
    Oracle Jinitiator and Sun JRE/JPI Support for Oracle Forms Applications [ID 555720.1]
    Regard
    Helios

  • 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)
    ~

  • Can't create a compilation with different performers on iTunes 11.1.1 anymore!!! Why???

    After I updated iTunes to 11.1.1 I coudn't create a compilation with different artistes anymore! Why??? I don't want the same album cover, like 100 times...
    Thx
    DJG5500

    Generally setting a common Album title and Album Artist will fix things.
    For deeper problems see Grouping tracks into albums.
    tt2

  • Setup Central Contract Management SRM 7.01 with differing release versions

    Hello experts,
    OSS note 1268821 explains how to configure the central contract management between a SRM 7.0 and  an ERP 6.04. So far so good, but how should it be handled if there are differing release versions such as ERP 6.04 and ERP 6.03? I guess that a technical split (xml services/ ALE distribution) is necessary?
    Assuming that there are some backends with differing release versions and in some cases with differing master data (not supported by central master data client) would you always go via PI? Independent of release version, technology and master data.
    Could you give some further detailed informations how to configure such a scenario? What has to be done to transfer existing contracts from an ERP 6.04 into SRM CM component (migration concept)?
    Thanks!!!
    KR Thorsten

    Hi Thorsten
    The minimal ECC version is 6.0 EHP4, Central Contracts require certain business functions in ECC to be activated and as these are included within ECC EHP4 you won't have these available in lower version. Therefore you won't be able to operate central contracts in such an ECC system.
    You would either have to go with patching these systems or go with GOA's for these systems.
    Operating central contracts via PI or SOA i believe provide almost similar functionality. SOA however requires an SRM EHP1 system and ECC EHP5 back-end to operate whilst central contracts configured via PI can be operated onwards from an SRM 7.0 and EHP4 system.
    I can't help you on your migration issue, maybe someone else can.
    Kind regards,
    Tim

  • Pressing Tab key in IE with latest JRE version

    Hi,
    I have question about typing "TAB" key in Java Applet in internet explorer with JRE 1.05_08 or above.
    When I type any key other than "TAB", the function, processEvent, will be called 3 times to process the events: keyPressed, keyTyped and keyReleased. However, when I type "TAB" key, processEvent is only called once to process the event: keyTyped and the focus goes outside the applet.
    Is there any way that the focus won't get lost when typing the "TAB" key?
    Note that this problem only happens in IE browser with JRE 1.05_08 or above. It works well in Firefox and netscape with any JRE version and works well in IE with JRE 1.05_06 and below.
    The following is my code:
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class KeyEventDemo extends Applet implements KeyListener, FocusListener {
         public KeyEventDemo() {
              super();
              addKeyListener(this);
              addFocusListener(this);
         public void keyTyped(KeyEvent e) {
              System.out.println("KEY TYPED: e="+e);
         public void keyPressed(KeyEvent e) {
              System.out.println("KEY PRESSED: e="+e);
         public void keyReleased(KeyEvent e) {
              System.out.println("KEY RELEASED: e="+e);
         public boolean keyDown(Event e, int key) {
              System.out.println("keyDown: e="+e);
              return false;
         public boolean keyUp(Event e, int key) {
              System.out.println("keyUp: e="+e);
              return false;
         public void processEvent(AWTEvent e) {
              System.out.println("processEvent : e="+e);
         public void focusGained(FocusEvent e){System.out.println("FocusGained");}
         public void focusLost(FocusEvent e){System.out.println("FocusLost");}
         public void paint ( Graphics g ){
              this.setBackground ( Color.blue );
         public boolean isFocusTraversable() {
              return true;
         public boolean getFocusTraversalKeysEnabled() {
              return false;
    Thanks very much!

    I apologize - the cross posting snookered me; the solution is provided on:
    http://forum.java.sun.com/thread.jspa?threadID=780250&messageID=4438725#4438725

  • 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

  • Running executables that have been compiled with different versions of a same vi

    I am writing a LabVIEW 7 program on Windwos (NT 4.0 up through XP) that will have to simultaneously call and run at least two executable modules. Both of these modules will be written using some of the same utility vis from my user libraries. How can I run the two modules if they have each been compiled using different versions of the utility libraries (i.e. the two executables will have vis with the same name but with slightly different code)?
    I know i could dynamically call each vi by reference node, but that can get a bit cumbersome with dozens of vis...

    Hi meludwig,
    Unfortunately, LabVIEW keeps track of the different VIs in memory using the VI's name. Therefore, if you want to load multiple executables that use the same VIs but with different code, you will want to rename those VIs. LabVIEW cannot distinguish between 2 VIs with the same name but with different code. Dynamically calling the VIs using VI Server, like you mentioned, will also potentially cause problems because the executables might try to load same VI name into LabVIEW memory at a time and this will still causes problems.
    My suggestion would therefore to be to rename the utility VIs to another name and save it as a custom subVI in that program. Then, make sure to include that custom subVI in the App Builder executable and you should b
    e golden.
    Kileen C.
    NI

  • 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);

  • ToolTip location with different JRE's

    Hi,
    I am trying to set the location of the tooltip for a JButton. I am able to do so with jre 1.5, but when I run the app on jre 1.4.2_03 or 1.4.2_06, the tooltip appears in a different location. I would like to have the tooltip appear just to the right of the button, on the right outside edge of the window. With 1.4.2_0X, the tooltip appears inside of the window, and the tooltip area will not draw outside of the window. Below is the code, any help would be greatly appreciated!
    public class ToolTipTester extends JFrame implements ActionListener
        private JPanel mainPanel;
        private Timer refresher;
        private JButton tempButton;
        private ArrayList myButtons;
        private int numButtons = 10;
        public ToolTipTester()
            initializeDisplay();
            initializeButtons(); 
            updateDisplay();
            setVisible(true);
            refresher = new Timer(1000,this);
            refresher.start();
        public static void main(String[] args)
            ToolTipTester ttt = new ToolTipTester();
        private void initializeButtons()
            myButtons = new ArrayList(numButtons);    
            for(int i = 0; i < numButtons; i++)
                tempButton = new JButton("Button#"+i) {
                    public Point getToolTipLocation(MouseEvent event) {
                        return new Point(getWidth(),0);
                tempButton.setToolTipText("ToolTipText");
                myButtons.add(i, tempButton);           
        private void initializeDisplay()
            setResizable(false);
            setTitle("ToolTipTester");
            mainPanel = (JPanel)getContentPane();
            mainPanel.setLayout( new GridLayout(numButtons,1) );  
            String lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
            try {
                UIManager.setLookAndFeel(lookAndFeel);
            } catch (Exception e) { }
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            ToolTipManager.sharedInstance().setInitialDelay(0);
            ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);
        private void updateDisplay()
            mainPanel.removeAll();  
            for( int i = 0; i < numButtons; i++ )
                tempButton = (JButton)myButtons.get(i);
                mainPanel.add(tempButton);  
                tempButton.repaint();
            pack();
        public void actionPerformed ( ActionEvent e )
              if( e.getSource() == refresher)
                  updateDisplay();
    }

    Serialization is not guaranteed to be compatible between versions. The API for the specific case should have some information about this - check the later version docs.
    One solution is to recompile with the new version.

  • Live Migration with Different CPU versions on the hosts, win 2012R2 Datacenter

    Hello
    This question have been asked in different forums but when I read the the thread's I feel that I get mixed answers.
    And most answers are dating from 2012 (Win 2008R2), I don't know if they are still correct in win 2012R2.
    So now I ask the question myself and hope to get at clear answer :)
    We are in the process of installing a new Hyper-V cluster using Win srv 2012 R2 Datacenter as OS.
    I'm planning to re-use some of the "old" servers from our current Hyper-V 2008 R2 cluster, removing it from the cluster and do a clean installation of 2012R2 Datacenter.
    But I will need to buy two new servers to manage this (with a new version of CPU, same brand (AMD))
    Old server: AMD Opteron(tm) Processor 6172 (12 Cores)
    New server:
    AMD Opteron™ 6344 (12-core)
    Now my question:
    Will Live Migration work between these servers in my new cluster without me doing any special settings in hyper-v or in the VM or what do I need to do to get this to work?
    /Anders

    Hi,
    It is important that all the hardware supporting Windows Server 2012 Failover Clusters be certified to work with Windows Server 2012. 
    In a cluster where all the nodes of the cluster are exactly the same, hardware migration is fairly straightforward. There are no concerns about differences in hardware, and
    especially no concerns about different capabilities of the CPUs.
    More information:
    When to Use Processor Compatibility Mode to Migrate Virtual Machines
    http://technet.microsoft.com/en-us/magazine/gg299590.aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Using tag OBJECT on a machine with multiple jre versions

    Dear friends,
    i guess that this question has been already answered, but i can't find the thread with all infos i need.
    So please excuse me if i'm redundant.
    This is my problem:
    i have a web application that runs an applet, embedded in an html page;
    by now the applet is loaded with the standard tag <APPLET>.
    I found many Sun's official pages talking about the use of OBJECT tag to specify the jre version that is supposed to run the applet.
    I tried many ways but i can't reach the way to avoid loading the applet with the latest jre installed on my pc.
    Here is the code of my OBJECT:
    <OBJECT NAME="client" CLASSID="clsid:CAFEEFAC-0014-0002-0009-ABCDEFFEDCBB" HEIGHT="38" WIDTH="335" >
                          <PARAM NAME="NAME" VALUE="client">
                          <PARAM name="type" value="application/x-java-applet;jpi-version=1.4.2_09">
                             <PARAM NAME="CODE" VALUE="it.fabio.client">
                             <PARAM NAME="CODEBASE" VALUE="/myapp">
                             <PARAM NAME="ARCHIVE" VALUE="mylib.jar">          
                   </OBJECT>The machines where the application is deployed have the 1.4.2_09 and the 1.5.0_03 jre versions, but my applet runs only on 1.4.2_09 version.
    So i have to find a way to tell the browser which jre has to be called.
    Thanks in advance for help.
    Regards

    Wait a second...there is more to that error message that I overlooked before.
    There might be something other than just the way I set the CODE and CODEBASE parameters wrong here
    Any ideas?
    Here is the entire messsage:
    load: class DisplayMonoApplet.class not found.
    java.lang.ClassNotFoundException: DisplayMonoApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more

  • CK24 - mark and release with different costing version

    Hi,
    We are currently using standard costing variant PPC1 and costing version 1 to mark and release the standard costs. However when we try to recost the material cost due to price changes, system does not allow to mark & release revised standard cost if we try to mark & release on same day. pls note standard cost estimate is already released for the month. And we do not want to delete existing standard cost estimate. Instead we want to explore other options. We are using 4.7.
    My questions are :
      a) Can recost using costing version 2? CK11N allows to save the costing result. However in CK24 Marking allowance, system does not allow to change Costing Version. is there any config option to change this.
    b) If  we cannot use different cost version, can we update material cost with same costing variant (PPC1) and costing version (1) in this case. However when we tried to do recost with same costing variant & verison on same day, system gives an error 'Material AAAA in plant MMM has a released cost estimate.'
    Any inputs on above issue highly appreciated.
    thanks
    Sunil

    Hi,
    While, you can use any of the Costing versions to mark & release Standard cost estimate, you can release Cost estimate only once in a fiscal period. If you want to release correct prices, then you have delete existing released cost estimates using CKR1 transaction and then re-run CK40N to release.
    Hope this helps.

  • Shared Listener with different oracle versions

    Hi,
    I have configured the following shared listener for two databases running with different versions.
    I have started the O02TXN3-9i along with the shared listener and then listener was started with 9i version and then I brought up the O01TXN3 -10g.
    Please let me know whether I can connect to the 10g database O01TXN3 remotely with shared listener.
    Note: Please find listener and oratab files below.
    Your early response is much appreciated.
    Database O01TXN3 with 10g
    Database O02TXN3 with 9i
    ==== Listener.ora File ======
    TNS_DTXN03 =
    (ADDRESS_LIST =
    (ADDRESS=
    (PROTOCOL=IPC)
    (KEY= O01TXN3.world)
    (ADDRESS=
    (PROTOCOL=IPC)
    (KEY= O01TXN3)
    (ADDRESS=
    (PROTOCOL=IPC)
    (KEY= O02TXN3.world)
    (ADDRESS=
    (PROTOCOL=IPC)
    (KEY= O02TXN3)
    (ADDRESS =
    (COMMUNITY = tcpcom)
    (PROTOCOL = TCP)
    (Host = dtxn03)
    (Port = 1525)
    STARTUP_WAIT_TIME_TNS_DTXN03 = 0
    CONNECT_TIMEOUT_TNS_DTXN03 = 10
    LOG_DIRECTORY_TNS_DTXN03 =/dtxn03/txn/oracle/admin
    TRACE_LEVEL_TNS_DTXN03 = OFF
    SID_LIST_TNS_DTXN03 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = O01TXN3)
    (ORACLE_HOME = /dtxn03/txn/oracle/10.2.0-64)
    (SID_DESC =
    (SID_NAME = O02TXN3)
    (ORACLE_HOME = /dtxn03/txn/oracle/9.2.0-64)
    # Added to get rid of the "inbound connection timed out (ORA-3136)"
    INBOUND_CONNECT_TIMEOUT_TNS_DTXN03 = 180
    ==
    Oratab:
    #LISTENER:/dtxn03/txn/oracle/9.2.0-64
    O01TXN3:/dtxn03/txn/oracle/10.2.0-64:Y
    O02TXN3:/dtxn03/txn/oracle/9.2.0-64:Y

    As a general rule, only one listener is required for a machine as long as all database versions are currently supported. (In other words one listener for Oracle7 and Oracle11g will not work.)
    As a general rule, an old listener MAY not be able to handle the features of the newer database (such as transferring blobs was a limitation in Oracle8). Therefore use the newest listener to handle all the databases.
    As a general rule, listeners can be considered independent of databases in a sense similar as ASM. Therefore it's not a bad idea to have a separate ORACLE_HOME specifically to install the listener. This is especially useful if you have multiple databases with differing service level agreements,
    I'd want to see
    1) the output of lsnrctl status
    2) any console session stuff and copy/paste to be surrounded by preview tages as described in the FAQ (http://www.oracle.com/technology/forums/faq.html#q14)

  • Access two EAS with different Essbase versions and different java versions from the same p.c.

    Hi,
    I need to regularly access Essbase 11.1.2.2. and Essbase 11.1.2.3 EAS from the same client machine.
    They are on, and must be on, different versions of java, is there a way to have both versions of java installed but each using the correct version and without the two java versions causing any kind of problems?
    thanks,
    Robert.

    Hi Robert...  I assume this is web-launched?
    I spent a day or so trying understand the intricacies of the JNLP protocol and create shortcuts that will invoke web-launched EAS with the appropriate version of Java.  I can get one version of EAS to use the 1.6 Java Web Launcher, and the other version of EAS to use the 1.7 Java Web Launcher - but both Web Launchers eventually invoke the same version of Java!  There are switches in the JNLP syntax that seem like they should allow you choose the actual Java version that gets invoked, but I just could not make it work.
    You can use the Java Control Panel (in Control Panel) to enable and disable the relevant versions before launching EAS.
    If you find otherwise I would love to know (or if you find out how to control which versions are enabled or disabled via command-line script).

Maybe you are looking for