Java JDK versions and compilation levels

Hi,
I have a question about differents java versions and the compilance level. As far as I know, if I am developing an application, for example a swing application or a JSF web project, that will be deployed to run in a JVM 1.6, I must compile my code with similar JDK, in this case, I must compile my code with a 1.6 JDK.
But, for example, can I use JDK 1.7 with compilance level 1.6 to run code under 1.6 virtual machine?
Suppose a JSF web project compiled with JDK 1.7 and source level 1.6 can be deployed on a tomcat that run in a 1.6 VM?
If that is correct, I think that I should always get the last JDK version installed in my computer and choose the different compilance level (example 1.4, 1.5, 1.6 or 1.7) to compile my code based on the target JVM, is that correct?
Thanks for your help, regards.

kerule wrote:
If my project will be executed on a JVM 1.4, I must have installed in my computer a JDK 1.4 and the project must be compiled with 1.4 JDK
If my project will be executed on a JVM 1.6, I must have installed in my computer a JDK 1.6 and the project must be compiled with 1.6 JDK
If my project will be executed on a JVM 1.7, I must have installed in my computer a JDK 1.7 and the project must be compiled with 1.7 JDK
Correct?Yes, and NO: the problem with what you said is "must be". If you compile with 1.7, but use objects that are backwardly compatible with 1.4, then it will work in 1.4 onward, but if you use features of 1.7 that are not compatible or possibly not available in 1.4, then you will not run in 1.4.
Your statements:
If my project will be executed on a JVM 1.4, I must have installed in my computer a JDK 1.4 and the project must be compiled with 1.4 JDK
If my project will be executed on a JVM 1.6, I must have installed in my computer a JDK 1.6 and the project must be compiled with 1.6 JDK
If my project will be executed on a JVM 1.7, I must have installed in my computer a JDK 1.7 and the project must be compiled with 1.7 JDKare safe, except where/if inconsistancies exist between versions.

Similar Messages

  • Supported JDK Versions and Platforms

    Any further information on backward compatible JDK versions and what underlying Platforms are supporting.
    We are on PA-RISC and Solaris.         
    We are coming off jProfile and intend to test this kit, please excure very basic question and many thanks in advance.
    Many thanks for your help!
    Cheers

    The usage of Flight Recording is only for JDK 7 update 4 and later versions of the JVM.
    Using the Java Mission Control Client
    The Java Mission Control interface use JMXRMI (JVMX over RMI) with J2SE 5.0 and later versions of the JVM.
    Managing JVM Connections
    Regards!

  • DB Version and Patch level

    Hi Friends
    Where can i see DB2 Version and patch level on ECC 6.0?
    For Windows Database : DB2 or DB6??
    Patch level?
    Thanks
    srinivas

    Hi Srinivas,
    DB6 is a SAP abbreviation for "DB2 for Linux, Unix and Windows" .
    The DB2 version and FP level of your database server can be found in SAP transaction ST04 or DBACOCKPIT.
    In SM50 you can view the work process traces to display the server and client level
    C  Running with UTF-8 Unicode
    C  Running with CLI driver
    C
    C Wed Oct 21 17:03:27 2009
    C  DB2 client driver version '09.05.0001'
    C  Connected to DB2 server type 'DB2/LINUXX8664'
    C  Connected to DB2 version '09.05.0002'
    If you need more detailed information you have to use "db2level" in a DB2 CLP window on the DB server.
    Regards
                     Frank

  • GRC version and SP level

    Hi Guys,
    Can anyone tell me where I can find my GRC version and SP level? I went to System info but did not find the specific location on where I can see my GRC version and SP level.
    Thanks.
    Raymond

    Hi Dirk,
    I was actually using the above mentioned paths (was hoping it could be the solution for me as a central olocation for monitoring) but was only able to see certain SP for certain GRC components.
    I've checked "Development Components Vendor" and also "Provider", and all I can see is only as below:
    1) virsa  ccappcomp  null (0.2007.09.13.22.08.49)  LOKAL  LOKAL  20071220141100  null/null 
    2) sapgrc  ffappcomp  null (0.2007.09.25.16.06.33)  LOKAL  LOKAL  20071218104251  null/null 
    3) sapgrc  ffume  null (20061001181959)  LOCAL  LOCAL  20071218104206  null/null 
    4) virsa  ccxsysactionws  null (20070913155905)  DNJ  DNJ_CCSP3_D  20071220153828  virsasystems.com/COMPLIANCECALIBRATOR 
    5) virsa  ccxsysbe  null (20061205153153)  DNJ  DNJ_CCSP3_D  20071220140901  virsasystems.com/COMPLIANCECALIBRATOR 
    5) virsa  ccxsysbehr  null (20061205150240)  DNJ  DNJ_CCSP3_D  20071220140946  virsasystems.com/COMPLIANCECALIBRATOR 
    6) virsa  ccxsysbgear  null (20070913155835)  DNJ  DNJ_CCSP3_D  20071220141441  virsasystems.com/COMPLIANCECALIBRATOR 
    7) virsa  ccxsysdb  null (20070308113442)  DNJ  DNJ_CCSP3_D  20071220140623  virsasystems.com/COMPLIANCECALIBRATOR 
    8) virsa  ccxsysws  null (20070913155752)  DNJ  DNJ_CCSP3_D  20071220141305  virsasystems.com/COMPLIANCECALIBRATOR 
    9) sapgrc  ffdb  null (20070909125827)  DNJ  DNJ_FF_D  20071218103726  sapgrc/FIREFIGHTER 
    Thus, you can see that the above monitoring does not give a full GRC components overview, and thats why I've asked if there are other options to see the needed info centrally.
    Any other possible suggestions?
    Thanks.
    Raymond

  • Update java/jdk version

    Is there any documentation or guide to update the java/jdk version in my DB???
    the actual version is 1.4.2_04 I wanna update to a newest.
    10 g.
    release 10.2.0.3
    java/jdk version 1.4.2_04

    840877 wrote:
    Is there any documentation or guide to update the java/jdk version in my DB???
    the actual version is 1.4.2_04 I wanna update to a newest.
    10 g.
    release 10.2.0.3
    java/jdk version 1.4.2_04Oracle supplies its own JRE environment with the installation. Why you want to update your JDk ? What's the reason?
    For Java, check the below link,
    http://www.java.net/external?url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Aman....
    Edited by: Aman.... on Aug 2, 2011 11:11 PM

  • Java JDK versions on Mac OS Lion

    I was just looking at the JDK on my Mac with Mac OS X 10.7.3 and it looks like I have different versions of the JDK around.
    That's what I have
    /Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk
    /Library/Java/JavaVirtualMachines/1.6.0_31-b04-411.jdk
    /System/Library/java/JavaVirtualMachines/1.6.0.jdk.
    Why is that messed up ?  
    I checked to what I'm pointing and I get that
    /usr/bin/java  points at  /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
    /System/Library/Frameworks/JavaVM.framework/Versions/Current points at  /System/Library/Frameworks/JavaVM.framework/Versions/A
    Is that ok ?  How can I check that I'm really using the most recent version of JDK, in this case /1.6.0_31-b04-411.jdk ? Should I remove redundant JDKs, and if yes what and how ?
    Thanks.

    Hey guys,
    Sorry in advance if my question is a bit uncalled for in this thread.
    Somehow I have not managed to get the latest version of Java (1.6.0_31) installed on my MacBook.
    According to JavaTester.org I have version 1.6.0_29 which is confirmed by my Java Preferences Panel.
    The only 2 versions listed in the panel are 1.6.0_29 (64-bit) and 1.6.0_29 (32-bit)
    The webplugin check from firefox states that 'Java Applet Plug-in" is not up to date.
    Firefox Add-on Tab says I have 'Java Applet Plug-in' version 14.0.3
    Oracle.com says the latest version of Java is  Version 7 Update 3
    Java.com says the latest version of Java is Version 6 Update 31
    Furthermore Java.com says updates will be automatically download through 'Apple Software Update' but it shows no sign of an update.
    What's wrong? What is the latest version of both Java JDK and Applet? How can I fix this?
    {- Mac OS X 10.7.3 Lion
    {- Firefox 10.0.2

  • JDeveloper JDK version and Weblogic server?

    Hi! Please can anyone tell me where I can see which JDK version uses my JDeveloper? And where I can download newest Weblogic server, please link and the name of the newest WeblogicServer!
    Best regards, Debuger!

    WSL 10.3.3: http://www.oracle.com/technetwork/middleware/downloads/index-087510.html
    Comes with its own JDK or download the newest here http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Timo

  • Java JDK Versions?

    I am installing 11g XE, Weblogic, Forms & Reports, and SQLDesigner for a class and I don't understand why it keep whining about needing obsolete JDK versions. We all know there was a big uproar over Java security issues over the past few years so I don't understand why this software would be complaining when I try to tell it to use the current JDK version. Isn't Java JDK always written to be backward compatible? What about the real installations of this software? Or is the JDK version irrelevant if the JRE is up to date?

    Hey guys,
    Sorry in advance if my question is a bit uncalled for in this thread.
    Somehow I have not managed to get the latest version of Java (1.6.0_31) installed on my MacBook.
    According to JavaTester.org I have version 1.6.0_29 which is confirmed by my Java Preferences Panel.
    The only 2 versions listed in the panel are 1.6.0_29 (64-bit) and 1.6.0_29 (32-bit)
    The webplugin check from firefox states that 'Java Applet Plug-in" is not up to date.
    Firefox Add-on Tab says I have 'Java Applet Plug-in' version 14.0.3
    Oracle.com says the latest version of Java is  Version 7 Update 3
    Java.com says the latest version of Java is Version 6 Update 31
    Furthermore Java.com says updates will be automatically download through 'Apple Software Update' but it shows no sign of an update.
    What's wrong? What is the latest version of both Java JDK and Applet? How can I fix this?
    {- Mac OS X 10.7.3 Lion
    {- Firefox 10.0.2

  • Matrix for jdk version and j2ee version.

    Recently, I started working on web application.
    I downloaded eclipse etc and now i am totally confused b/w various j2ee + jdk versions.
    I want to develop application in jdk1.4, and j2ee v1.4
    So how j2ee 1.4 version is related jdk version? Eclipse is giving me so many options to select for version compatibility.
    Isn't j2ee api is based on jdk 1.4?
    Where i can find version matrix for servlet specs + ejb specs for j2ee v1.4?

    WSL 10.3.3: http://www.oracle.com/technetwork/middleware/downloads/index-087510.html
    Comes with its own JDK or download the newest here http://www.oracle.com/technetwork/java/javase/downloads/index.html
    Timo

  • Interaction oracle 8.1.7 internal jdk version and jdk1.4

    Hi all
    If I install a jdk 1.4 in my PC which runs an oracle 8.1.7 server, which jdk version does oracle use if I create and execute a java stored procedure ?
    Thank you very much.

    Installing any other JVM on your system doesn't change the JVM Oracle uses to run Java stored procedures. I believe 8i was using a 1.1 JVM, but it's been a while.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • JAVA JDK version

    Hi,
    For implementing Daylight savings, I may need to look at JDK used in my system, The component is SAP_JEE. ( OSS Note - 983147)
    Where to look at the version and how to implement it.
    System is SAP R/3 4.6B and 4.7
    Thanks,
    Sam

    If you want to do it programmatically,
    System.getProperty("java.version")
    will give you the JDK version information.
    Regards,
    Jens

  • Sentinel SDK support for Java JDK Version 7

    According to Oracle:
    "Java SE 6 End of Public Updates
    After February 2013, Oracle will no longer post updates of Java SE 6 to
    its public download sites. Existing Java SE 6 downloads already posted
    as of February 2013 will remain accessible in the Java Archive on Oracle
    Technology Network. Developers and end-users are encouraged to update to
    the most recent Java SE versions. "
    When will the Sentinel SDK be compatible with Java 7?
    There are security concerns with having out-of-date Java versions on
    systems.
    rkhobson
    rkhobson's Profile: https://forums.netiq.com/member.php?userid=2814
    View this thread: https://forums.netiq.com/showthread.php?t=46949

    rkhobson;226030 Wrote:
    > According to Oracle:
    >
    > "Java SE 6 End of Public Updates
    > After February 2013, Oracle will no longer post updates of Java SE 6 to
    > its public download sites. Existing Java SE 6 downloads already posted
    > as of February 2013 will remain accessible in the Java Archive on Oracle
    > Technology Network. Developers and end-users are encouraged to update to
    > the most recent Java SE versions. "
    >
    >
    > When will the Sentinel SDK be compatible with Java 7?
    >
    > There are security concerns with having out-of-date Java versions on
    > systems.
    I would consider it compatible as of right now. I've used it under
    Java 7 reliably for the last 6-9 months, and have not run into any
    problems with it to date. If you do run into any problems, feel
    welcome to open an issue with NTS and we can look into it.
    brandon.langley
    brandon.langley's Profile: https://forums.netiq.com/member.php?userid=350
    View this thread: https://forums.netiq.com/showthread.php?t=46949

  • Difference - jdk versions and features

    Hi,
    I wanna know the difference between the various available java versions from java jdk 1.1 till todays version .Can anyone of you help me in getting the clear picture about the difference between various versions.
    Thanks in Advance .

    http://en.wikipedia.org/wiki/Java_version_history hope this will give you idea

  • Using the java jdk version as a conditional

    Hi,
    I have an method that I only want to occur for jdks over 1.4.2. Is there any easy way (handy API or something) of coding it so I can check what jdk the program is running on and then call or not call a method depending on this jdk being greater then jdk 1.4.2.
    Thanks,
    John

    no am refactoring an idl to java compiler and need to
    take into account changes in the Java Language
    Specification between JDK's, for instance certain
    things that were legal in early jdks are illegal now
    and therefore the compiler should not let java code
    be created if it will be illegal for the jdk in use.Could you give an example? The only one that I know of is that pre-1.4, you could use a method named assert(), and post-1.4 you can't. That's going to be a serious problem if it shows up in your IDL, but otherwise not something you need to worry about.
    I've found that the more likely case is that I want to use a version-N-specific library method, but still need to compile the code in a pre-version-N environment. In that case, reflection can help: at runtime, determine whether the method is available, and fall back to alternatives if it isn't.
    Also, is the JVM version that you're running your compiler on guaranteed to be the same one that runs the generated code? If not, then checking its version isn't going to help. Instead, you'll have to follow the lead of javac, and use "-source" flags on the command line.

  • Java JDK 7 and CurrentJDK

    Hi, I've just installed the las JDK from Oracle (JDK 7 with java 1.7.0_25)
    After that in /System/Library/Frameworks/JavaVM.Framwork/Versions/ directory CurrentJDK still links to java 1.6 version but I don't have java 1.6 installed in my machine and that directory doesn't exists.
    "CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents"
    What can I do?
    Thanks

    Terminal:
    cd /System/Library/Frameworks/JavaVM.framework/Versions/
    sudo ln -fhsv 1.7 CurrentJDK ; exit

Maybe you are looking for