Java version question

I am a little bit confused with the compile version and run version. I have a 1.4 SDK, but I have to develop an applilcation that will run on a 1.3 environment. Is the option "javac -target 1.3" sufficient to make sure that my application will run on a 1.3 environment? I use many 1.4 features in my program, such as JSSE, I wonder whether a 1.3 JVM will understand what are those things. Also, can I tell my 1.4 JVM to run like a 1.3 one? Or I must download a 1.3 JVM to test my program? Any help would be appreciated.

To absolutely assure that a program will run on 1.3, it need to either
1. Be compiled by 1.3, or
2. Be compiled by (say) 1.4 using the -target 1.3 and -bootclasspath options. Using the -target option alone may or may not work, depending on code usage and changes that were made in 1.4..
This information is detailed in the javac documentation here http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
You should read and understand this if you need to cross-compile versions.

Similar Messages

  • Quick Java version question...

    I'm unable to use VNC while connected through a semi-restricted VPN tunnel into work (I have to visit a certain website at work and when I click a button an Aventail application springs into life and I get a VPN tunnel). My work doesn't support Macs, so I spoke to tech support for the VNC vendor and he assured me they support Macs. He said to make sure I'm running version 1.5 or 1.6 of JRE (Java Runtime Environment) and Safari. I don't know how to determine that - anybody out there able to help?

    Thanks for the reply - I'll give this a try when I get home later on. It does seem a bit odd that I was asked to inquire about JRE, but this Java Preferences application talks about JSE. I don't suppose they're the same thing?...

  • JDeveloper and Java Version question

    I would like to know how to change the version of java that JDeveloper is using. I have 1.5 installed on the machine, yet the default version is 1.4 which i can see what going into help. How may I change JDev so it uses 1.5?
    Thank you,
    Russ

    Set the JDK version with Tools>Project Properties>J2SE Version field.

  • EM Question (Java version)

    Hi Guys,
    I have a question about EM (Java version, not the web based one).
    Lately, we are having issues displaying tablespaces and datafiles informations.
    It takes up to 10 minutes just to display the datafiles from a tablespace (when double-clicking on a tablespace name). Then it takes another 10 minutes if we click on a datafile to display the information of that datafile. Samething if we apply a change.
    Is there anything we can look at to solve this situation?
    Thank you,
    Nayas
    aka Felix

    To absolutely assure that a program will run on 1.3, it need to either
    1. Be compiled by 1.3, or
    2. Be compiled by (say) 1.4 using the -target 1.3 and -bootclasspath options. Using the -target option alone may or may not work, depending on code usage and changes that were made in 1.4..
    This information is detailed in the javac documentation here http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
    You should read and understand this if you need to cross-compile versions.

  • How do I downgrade to a specific update of Java version 6?

    I am used MBA Mountain Lion OSX.
    I am trying to use Business Objects through the web and unfortunately Java 7 is not compatible. I was able to downgrade to Java 6u65 (Java 1.6.0_65)  but I really need update 45 to get Business Objects to work. Can anyone help me with the terminal code and/or a download that will allow me to pull out Java version 6u45? (Java 1.6.0_45)?
    I've been on here trying several other's codes and it says permission denied or "unable to find any JVM versions matching 1.6.0_45"
    Could that mean I don't have version 6u45 available to me period?

    Just wanted to post the answer in case others have the same issue. I had to remove ALL java related files in order to install an earlier version and there was ONE transient file that I couldn't find and this code worked
    http://apple.stackexchange.com/questions/38384/how-do-i-downgrade-java-on-osx-10 -6-8
    sudo rm -R /Applications/Utilities/Java\ Preferences.app/
    sudo rm -R /System/Library/Frameworks/JavaVM.framework/
    sudo rm -R /System/Library/Java/
    sudo rm -R /System/Library/CoreServices/Jar\ Launcher.app
    sudo rm -R /System/Library/CoreServices/Java\ Web\ Start.app/
    sudo rm -R /System/Library/CoreServices/JavaVersion.plist
    sudo rm -R /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/
    sudo rm -R /System/Library/Frameworks/JavaEmbedding.framework/
    sudo rm -R /System/Library/CFMSupport/StubLibraries/JavaEmbeddingLib/

  • Java version and amount of SAPDATA

    Hi!
    I would like to install SAP Solution Manager on Solaris Sparc 10 Zone (64 Bit) with Oracle.
    Questions:
    1) Which Java version applies for the installation? I have installed 1.4.2.12.
    2) Is that problem that the <sid>adm user exist already on the server?
    Or should I delete these, because thes will be created with SAPINST?
    I run Installation as root-user
    3) How much SAPDATA do I need for the installation. I would abolish to have more than 3 SAPDATA. So I have 3 SAPDATA, each 70 GB. Is that ok? 
    Thank you very much!
    regards
    Thom

    Hi Thom,
    1) Which Java version applies for the installation? I have installed 1.4.2.12.
    Answer: Please go through the note 716604, and also 1.4.2_12 version for JDK is fine. You can go with this.
    2) Is that problem that the <sid>adm user exist already on the server?
    Answer : It wont be the problem if it exists,but check the owner and modes as per the guide and change it.
    3. should I delete these, because thes will be created with SAPINST?
    Answer:  Yes,users will be created by SAPINST,but if its already exists, you dont need to delete this. If you dont know the changing of owners or modes for the sidadm user. you can delete, it will create by SAPINST.
    4.I run Installation as root-user
    Answer: Yes. you have to start installation with root user.
    5.3) How much SAPDATA do I need for the installation. I would abolish to have more than 3 SAPDATA. So I have 3 SAPDATA, each 70 GB. Is that ok?
    Answer: SAP recommends 4 sapdata's. The size is depends on how much data you maintain in the system. Try to create SAPDATA4 and distrube the size to all 4 sapdata's.
    Hope you understand this.
    Thanks
    Kishore

  • Java Georaster API error - wrong java version

    Hi all. I've done some searching about but cannot see this question answered (or indeed asked) anywhere else so perhaps i'm the first person to encounter it.
    I've got some georaster data from a customer in an Oracle DMP file which i've imported. It all checks out as being valid (using sdo_geor.validategeoraster) but i cannot view it in the Georaster Viewer tool. I wrote some java to extract a piece to a file but i get this error with the select command ...
    DEBUG <10:27:51> [GeoRaster] jGeor.getRasterImage(conn,0,600, 1199, 1801, 2400 )
    ERROR <10:27:51> [GeoRaster] Failed to getRasterImage() because of a GeoRasterException : -13464;GeoRaster object has float or double data type.
    It can be retrieved only with Java version 1.4.1 or higher.
    Java version found: 1.5
    ERROR <10:27:51> [GeoRaster] stack trace is ...
    DEBUG <10:27:51> [GeoRaster] 0  oracle.spatial.georaster.JGeoRaster.getColorModel(JGeoRaster.java:1276)
    DEBUG <10:27:51> [GeoRaster] 1  oracle.spatial.georaster.JGeoRaster.getRasterImage(JGeoRaster.java:2568)
    DEBUG <10:27:51> [GeoRaster] 2  com.espatial.ps.georaster.GeoRaster.getRenderedImage(GeoRaster.java:736)
    DEBUG <10:27:51> [GeoRaster] 3  com.espatial.ps.utilities.TemplateApplicationHelper.testExport(TemplateApplicationHelper.java:294)
    DEBUG <10:27:51> [GeoRaster] 4  com.espatial.ps.utilities.TemplateApplicationHelper.main(TemplateApplicationHelper.java:130)If I query the georaster I get this ...
    ORCL10GR:SQL> SELECT georaster FROM intermap_iscsi.CORE_DTM g WHERE g.georaster.RASTERDATATABLE = 'CORE_DTM_RDT_01' AND g.georid = 101;
    GEORASTER(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES), RASTERDATATABLE, RASTERID, METADATA)
    SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-114.87502, 35.0000208, -114.87502, 34.93
    75, -114.87502, 34.8749792, -114.8125, 34.8749792, -114.74998, 34.8749792, -114.74998, 34.9375, -114.74998, 35.0000208, -114.8125, 35.0000208, -1
    14.87502, 35.0000208)), 'CORE_DTM_RDT_01', 101, XMLTYPE(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
      <objectI))I'm running my java program with JDK 1.5.0_11 so that error about needing 1.4.1 or higher is odd. Is it to do with the Oracle instance needing that JDK? Anyone got any ideas?
    John.

    Looks like the code is explicitly checking for a specific version of Java without doing a greater than check, you'll have to trick the API
    Before you call the JGeoRaster Method, call:
    String temp = System.getProperty("java.specification.version");
    System.setProperty( "java.specification.version", "1.4.1" );
    the after call:
    System.setProperty("java.specification.version", temp);
    Alternatively, the JGeoRaster library that comes with 11g has a fix for this issue.

  • Java Version for ERP 2005 and Oracle 10.2.0.1

    Hi all,
    I've just a question. I'm trying to install ERP2005 on Windows 2003 Server with Oracle 10.2.0.1.
    But the process terminates at the step "Import ABAP" with the error messages concerning "CJS-30022 Program 'Migration Monitor' exits with error code 103 " and " FCO-00011 The step runMigrationMonitor with step key".
    I've had a similiar abort with another installation. Could the java version cause this error? Which java version is recommended as standard in regard to our ERP2005-installation?
    Please help me !!
    Thanks in advance.

    10.2.0.1 is not supported.
    you have directly update 10.2.0.1 after the installation to 10.2.0.2 and then install at least hotfix 10.2.0.2.12 (current is 10.2.0.2.13).
    Using older version of Oracle 10.2.0.2.12 will cause a lot of problems.
    By the way, are you installing a blank new ERP2005 or are you performing a systme copy?
    Peter

  • Upgrade Java version in DB server.

    Hi,
    in my db server current version is:
    [root@prod-db /]#java -version
    java version "1.4.2"
    To install TSM for oracle (tape backup) i was asked by SA to update server java version to jre1.7.0_07. But i have never done any work like this. Can any one help??

    user8983130 wrote:
    My db version 11.2.0.2
    OS RHEL 5.5 (64 bits each)
    Actually i don't want to touch oracle/oracle software , i just want to upgrade java without hampering my oracle.Then you need to update the Java version installed in the o/s - and ignore what is installed in Oracle as that is not relevant to your problem.
    What do you have installed? What Java components do you need?
    You can check what is installed and available using the yum command. Basic Java can be installed using the java-<version>-openjdk.x86_64 package I think.
    This is not a database question though, and I suggest that you either re-post your question to the {forum:id=822} forum, or that a moderator moves this posting there.

  • Java version 6 update

    I love my Mac and have enjoyed nearly flawless operations for over 3 years now. Software update offered the latest Java version 6 update last week. I have downloaded other Java updates over the years and have never had any problems, so I downloaded version 6. Now I can not get into an important web site that I use for business. I read the discussion topics in here and someone said, "don't forget to repair permissions". What does that mean and exactly how do you "repair permissions"...??? Any information or help would be appreciated.

    Hi
    In your regular user account, there are several areas possibly creating a block to the site. As the site is password protected, it's quite possible it is a secured site, beginning with https in the address.
    Try these suggestions in the order listed:
    1. Go to your Keychains Access.app in the Applications>Utilities folder. Open it, then go to Keychain Access Menu>Keychain First Aid. Select it. If errors appear, rerun until you get a clean pass. Quit the application when finished.
    2. Open Safari>Safari Menu>Preferences>Auto-fill>User Names and Passwords>Edit. There, scroll until you find the entry for that particular site. Highlight it, then select "remove". Close the panel.
    3. Safari Preferences>Security>Cookies. Remove any cookies from the site in question. Close the panel.
    4. Try the site.
    Post back

  • Finding the minimum needed Java version to run app

    Hello, I have created an application and would like to distribute it. However, I would like to know the minimum Java version that would be needed to run the app. Aside from digging through the APIs, would there be any tool that would help with that task.
    (P.S. I'm sorry for any cross-posting that may occur, I did not know what this would fall under).

    Doesn't answer the question, which java version did you use?
    In eclipse, pull down the help menu and select About Eclipse SDK, then click the Configuration button. In the dialog that comes up near the top is a section with java.??? look for the one that say java.home and see which version of the jdk it's using, then go to your project, right click on it and to go properties. Under Java Compiler in the tree view you will see JDK compliance. That will tell you absolutely which version(s) of Java are involved. The one in the compiler compliance is the one that the system trying to run your application must have.
    PS.

  • How to determine the Java version in Windows XP

    In Windows 2000, I can determine the version of Java that's running by typing 'java -version' in a command prompt. However, when I type this in a command prompt in Windows XP, a message says 'java is not recognized as an internal or external command ...'.
    Is there some other means of determining the version of Java that's running on Windows XP?
    Thank you.

    I found the directory with java.exe on my XP client. After updating my Path and then typing 'java -versions' I still see a 'java not found message'. No problem though - a README.TXT says that I have JRE 1.1.7B.
    One final question - a co-worker who also has XP just starting seeing a pop-up window saying 'Runtime' error when running a Java applet. His java.exe is in a path that includes the sub-directory 'JRE' On my XP client, java.exe is in a path which includes a 'JRE11' sub-directory. We therefore seem to have different versions of the JRE. Since I don't see the Runtime error when running the same applet, should my co-worker try upgrading his JRE?
    Thank you.

  • Java Version BI 4.1 SP1

    Hello,
    The last couple of weeks we have experienced quiet a lot of error messages that seems to relate to Java versions installed on users computers.
    Examples:
    What we have told our users is to upgrade or downgrade the Java to 7.45.
    My question is, does anyone know of a patch that makes Business Objects work more smoothly with new Java versions (7.25 and newer)
    Or is there any other way to make it a bit more stable?
    Many thanks

    There were know issues with Java 7 update - 45, however these were fixed with 7 update 45 +.
    We have update 51 and do not find any issues to occur.
    A way of getting this corrected would be that the reports load the Java binaries existing in the BO installation.
    You can try with un-installing Java in client boxes and let them retrieve the same from BO installation. This would be a one time activty and hence help in removing all such errors / messages.

  • Unable to install Java Version 7

    I currently have Java Version 6 loaded. I downloaded the latest version of Java Version 7. It was a pkg installer. When I ran it it said I couldn't install it because I didn't download it from the Apple Store. Also there is no Java panel in the System Preferences like in Moultanl Lion. It looks like any Package Installer wont run unless it came from the Apple Store

    Glad to help. But seriously, since Java is a known and popular vector for cyberattack, I'd suggest leaving it disabled in your browser(s) unless it's necessary for a valid reason. Also, having allowed apps from anywhere, I'd suggest switching back to the earlier, more secure setting until another such need arises to avoid a questionable app slipping in under the wire.

  • Java -version is it a java command or OS command.

    java -version is it a java command or OS command.
    I am in a bet. I said its a java command and it will be same no matter what the OS is. What do u genius say

    java -version is it a java command or OS command.
    I am in a bet. I said its a java command and it will
    be same no matter what the OS is. What do u genius sayWhat do you mean "java command." There isn't really such thing as a "java command." At least, the term does not have a standard definition.
    java is the name of the executable that is the JVM. It wouldn't have to be. You could change it to whatever you like. You could also change it so that "java" invoked some other executable.
    The -version argument is supported by Sun's VM on several OSes, but it is not inherent to Java, it wouldn't have to be supported on all VMs, or on all OS versions of a specific VM. Is there a VM out there that doesn't support -version? I don't know, but there could be. And if there's not today, there could be tomorrow. There's certainly no requirement that a VM support that option.
    In short, the answer to your question is [url http://en.wikipedia.org/wiki/Mu]Mu.

Maybe you are looking for

  • Safari 5.1.2 / Lion question

    Is it my css or Safari running in Lion that displays the blue border around hover links? Regarding this page / site http://jordieshapiro.com/home.html

  • How do I know which version of Firefox is installed on my laptop

    How ca I tell which version of Firefox is installed on my laptop.

  • How to use table name as variable in insert statement

    Hi, I want to insert data from the cursor into the table and I want to submit table name as a variable. I tried the code below but it's not working. Any ideas how to solve this problem? Thx DECLARE v_new_table_name VARCHAR2(30) := 'test'; --open curs

  • Explain Plan in Raptor

    Over all a very nice product. As with everything now it is difficult to place the raptor feature set in the over all product set. However any comparison is inevitable. It would be nice if the explain plan option would ask for a default userid in case

  • Caused by: java.sql.SQLException: Invalid column type  OR NOT?

    He all, I am using JDev Studio Edition Version 11.1.2.3.0 Oracle 11g Problem is simple have table CREATE TABLE "BILING"."MU_UREDJAJ" "MUURE_ID" NUMBER(32,0) NOT NULL ENABLE, "MUURE_BROJ_UREDJAJA" VARCHAR2(25 CHAR), "MUTU_ID" NUMBER(15,0), "MUURE_GOD_