Java on different platform

I have a Java source code is compiled.
Is it possible for me to run on the version diffenet for Windows platform (32-bit or 64-bit and Windows XP, Vista, 7, or 8)?
Is it easy to compile once and run on a different platform?

BusMan29 wrote:
I have a Java source code is compiled.
Is it possible for me to run on the version diffenet for Windows platform (32-bit or 64-bit and Windows XP, Vista, 7, or 8)?

Yes.

Is it easy to compile once and run on a different platform?

It has already been done.

All you need to do to run your program on another PC installs a runtime environment Jva for the target PC architecture and operating system. (Most likely it is already there).

There is only a single pitfall: the JRE on the target system must have the same or higher major version (for example: 1.7) as the JDK, you compiled with.

Good bye
DPT

Tags: Java

Similar Questions

  • CATALOG RMAN WITH DIFFERENT PLATFORM

    Respected by all,
    my linux platform database and can create rman catalog in the windows platform?


    Thank you all for the reply.

    This is the same mechanism of functioning of the LINK DB in heterogeneous platforms like Oracle to SQL server, and vice versa.

    When you be able to update the database of different platforms, why not possible when the operating system is different.
    It will keep the repository with ORACLE, nothing to do with the OS.

  • I have to buy 2 licenses for my computers in different platform?

    1. do I need to buy 2 licenses for my computers in different platform? In windows, another is a macbook pro.

    2. is it possible for me to install cs6 on multiple computers using a license?

    Thank you.

    If you buy the perpeptual license it would be specific OS, in this case, you would have to buy 2 separate license however if you go for the creative cloud then in this case it would be OS independent, you can install with cloud 2 or creative on 2 Windows Mac or windows 1 and 1 Mac.

    In addition, with each license, you get 2 activation so 2 can use the software on machine 2, but not at the same time.

  • Cod app and library can be for different platform versions?

    I am writing an application that must run on a wide range of versions of the device. Some of the application contains code depending on the version, but a little is independent of the version. Are there problems or special considerations for structuring an application as a main .cod file compiled for a specific platform version and a .cod of library which contains functions of "lowest common denominator" compiled for, say, 4.2.1?

    What you propose works OK for us.

    The library is developed in a different project and workspace, the "interface" between the use of the application and the library is the jar file, which is imported into dependent projects.  This means that the two become completely independent, and it is possible to exchange the library for a later version on the device, without changing the main cod.

    The biggest problem is multiple applications with the same shared library requiring different versions of this library.  This section of the shared library has been discussed widely in the DevCon, so I hope that Rim will contribute to this requirement in some way in the future.

  • Java Web Start with various java libraries different version.

    Hi fellow Java developers.

    I have a Java Web Start program that works very well.
    My application uses JAX - WS among many other libs.
    I would like to continue my support for Java 1.5 as long as possible. JAX - WS is not included in Java 1.5, so I've been packing via start Java web.

    Now I wish I had a JNLP file that provides Java 1.5 with JAX - WS, while sending is not the 10 MB for customers Java 1.6 or 1.7. Is there a way to do this?

    The problem may be just as relevant within 6 months for Java 1.6 and 1.7 :)

    My server applications (Tomcat) doesn't seem to know which version of Java has a client, so he can't provide the a JNLP different version (or y at - it an easy way to achieve this?).

    for example
    <jnlp>....
        <resources>
         <j2se version="1.5"/>
         <jar href="FastInfoset.jar"/>
         <jar href="http.jar"/>
         <jar href="jaxws-api.jar"/>
    ....
        </resources>
        <resources>
         <j2se version="1.5+"/>
         <jar "mysoftware.jar" />
        </resources>
        <resources>
         <j2se version="1.6+"/>
         <jar "some_libraries_specific_to_java_6.jar" />
        </resources>
    </jnlp>
    but it is only beginning of java web on the client displays
    <jnlp>....
        <resources>
         <j2se version="1.5"/>
         <jar href="FastInfoset.jar"/>
         <jar href="http.jar"/>
         <jar href="jaxws-api.jar"/>
    ....
         <j2se version="1.5+"/>
         <jar "mysoftware.jar" />
         <j2se version="1.6+"/>
         <jar "some_libraries_specific_to_java_6.jar" />
        </resources>
    </jnlp>
    I'd appreciate any suggestions really.

    Thank you

    Martin.

    Published by: mac24nz on June 8, 2011 03:17

    You can have nested inside or elements. Extract from record of JNLP 1.6:
    «element of resources: a java element can contain elements of nested resources.» If the JRE specified by enclosing the java element is chosen by the JNLP Client, then the resources specified in the nested resources is also part of the resources of the application, other they are ignored. Any element of java in this resource element is ignored. »

  • Not able to install Management Agent on the server no - WHO, different platform

    Hello

    I run 12.2 of the WHO on a Linux platform and must make a 64-bit Windows Server a target managed by getting the installed Management Agent.

    The Agent software for the server to Win 64-bit platform has been downloaded using the console auto update. However, I can't add the target host because it maintains have reported that I have selected a platform for which software Management Agent is not available on the WHO and I want to use the update auto etc.

    So, after that I downloaded the agent software for Windows 64-bit at WHO, using the self updated fucntion, in the list of the software updates Agent, I see:
    Downloaded  |  Microsoft Windows x64 (64-bit)  |  12.1.0.2.0  | Oracle  |  Agent Software ...
    and when has highlighted in the past, activities list it shows shares"available"and then "Download", both with the status of successful operation.

    So now, I'm going to: Setup - Add Target - add targets - manually add hosts
    I add an entry, fill in the IP address and choice of platform (win 64-bit), but the platform name is added with * "Unavailable software Agent" * then recommend me again to download the software for this platform using auto update !

    Just in case, I made a new connection in the OEM but which did not help.

    Can anyone suggest me please an action plan to "fix" it?

    Thank you very much!
    Ed

    Hello

    After downloading the software agent, do you have one apply?

    If not, then pls do more...

    Setup > extensibility > auto update > click agents

    in "actions" drop-down menu, select apply.

    You can always check the software available in your OMS agent using emcli.
    Use this command to get the list of the avlble

    emcli get_supported_platforms

  • Same policy, different size on different platforms

    Hello

    I received a few PSDs a designer who use windows. The police is open without, I already have it on my mac.

    I open the PSD files and clicked in the text layer:

    Adobe_Photoshop_and_05_-_Contact_psd___200___RGB_8_.png

    .. After I edited the text and the police has changed, it seems smaller (it is still opensans, but different)

    05_-_Contact_psd___200___Mauris_blandit_mattis_velit__at_eleifend_neque_vehicula_et__Nul__RGB_8_.png

    I downloaded fontsquirrel.com police. You know guys how do I solve the problem?

    I got from the police of this type, but after I installed the police accented characters changed to "BOLD" in browsers. In addition, the police of the downloaded opensans is different too in the browser than in the ps window.

    Sorry, I mixed up my fonts, I meant http://www.google.com/fonts/specimen/Open+Sans

  • deployment of web logical domain on different platforms

    Hi all

    version 11.1.2.1

    I'm configuration of the windows box on which is a unix for the whole environment. When you deploy to the existing web logical domain that we receive an error message indicating that

    "You can only deploy to an existing domain, which is the same type of platform (windows or unix). The existing domain is configured for Unix. You can create a new domain or deploy to an existing domain that is configured in windows. "

    I read an answer to a similar question (thanks John): EAS does not work, how to deploy when the EAS is UNIX and Weblogic Admin is WINNING

    Does this mean that I have to install services reporting and analysis on the Foundation box, but not deploy it? The RAF web application is on the server of the Foundation and the RAF service is in the windows box. FDM is in the box of windows with erpi.

    I would appreciate advise on what to do.

    Thank you

    Nathan

    This is an important point about the link I provide
    "All Web applications in a deployment of EPM system must be deployed on all Windows machines or on all UNIX machines."

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Perfectly reconstruct videos from different platforms/editing software...

    Hello

    I am part of a video collaboration project where a few people are going to be shooting and editing their own videos. These videos will then be reconstituted as a whole to make a flawless video. I was in charge with the final installation and Assembly.

    Some will use PC and some Macs. They all use different editing software. I'll put these separate video together using Premiere Elements.

    Can someone give me some advice on the best way to achieve this? Is there an a particular format that I should ask them all to submit, to make sure that I am able to edit in Adobe Premier elements? I want to give this information before you begin filming and recording of their work.

    Thank you so much in advance.

    I agree with Steve and his exhortation to do not mix very different formats.

    Now, PrPro Adobe CS 5.5 and above all with a card CUDA/MPE, doing a much better job at the to mix images, but at a much higher price, as well as for the smoother edition, a fully certified nVidia CUDA card. This ARTICLE will give you more information about PrPro CS 5.5 and CUDA/MPE.

    Otherwise, by choosing a format/COCEC 'master' and no more get the exported/output images in a correspondence format/CODEC, or do a conversion to this 'master' format / CODEC, solve tons of potential problems.

    Good luck

    Hunt

  • agent12c on different platforms (without SelfUpdate)

    Hello

    Is it possible to install one agent other than the one on which runs my Management Service?

    SelfUpdate is not configured in my SGD server, since access to the internet is disabled.

    Yes. Please see the "Acquisition Management software Agent in Mode offline" section of the following doc
    http://docs.Oracle.com/CD/E24628_01/doc.121/e24473/self_update.htm#CACFAIFI

    You can download the sar program in the below url.

    http://www.Oracle.com/technetwork/OEM/grid-control/downloads/agentsoft-090381.html

  • CPP-problem on different platforms

    Hello

    I have two databases:

    + a STRM named on the Oracle 10R2 database / linux 5.4 32-bit
    + a STRM11 named on the Oracle 11R2 database / linux 5.4 64-Bit

    On STRM11, a database link is defined as:

    create the STRM public database link to connect to STRMADMIN_SRC using "STRM;

    I can read the scott.emp table on STRM of STRM11 as the user strmadmin_tgt
    SQL> select * from scott.emp@strm;
     
    EMPNO ENAME      JOB         MGR HIREDATE          SAL      COMM DEPTNO
    ----- ---------- --------- ----- ----------- --------- --------- ------
     7369 SMITH      STRM       7902 17.12.1980     800,00               20
     7499 ALLEN      SALESMAN   7698 20.02.1981    1600,00    300,00     30
     7521 WARD       SALESMAN   7698 22.02.1981    1250,00    500,00     30
     7566 JONES      MANAGER    7839 02.04.1981    2975,00               20
     7654 MARTIN     SALESMAN   7698 28.09.1981    1250,00   1400,00     30
     7698 BLAKE      MANAGER    7839 01.05.1981    2850,00               30
     7782 CLARK      MANAGER    7839 09.06.1981    2450,00               10
     7788 SCOTT      ANALYST    7566 19.04.1987    3000,00               20
     7839 KING       PRESIDENT       17.11.1981    5000,00               10
     7844 TURNER     SALESMAN   7698 08.09.1981    1500,00      0,00     30
     7876 ADAMS      CLERK      7788 23.05.1987    1100,00               20
     7900 JAMES      CLERK      7698 03.12.1981     950,00               30
     7902 FORD       ANALYST    7566 03.12.1981    3000,00               20
     7934 MILLER     CLERK      7782 23.01.1982    1300,00               10
     
    14 rows selected
    But the execution of the following procedure of STRMADMIN_SRC on STRM11:
    CREATE OR REPLACE PROCEDURE YY IS
    BEGIN
    
      DECLARE
        V_SAL NUMBER(9, 2) := 60000;
      BEGIN
        V_SAL := V_SAL / 12;
        DBMS_OUTPUT.PUT_LINE('The monthly salary is ' || TO_CHAR(V_SAL));
      END;
    
    END YY;
    has failed with the error:
    SQL> execute yy@strm;
    BEGIN yy@strm; END;
    
    *
    ERROR at line 1:
    ORA-04052: error occurred when looking up remote object STRMADMIN_SRC.YY@STRM
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [],
    []
    ORA-06553: PLS-801: internal error [55916]
    ORA-02063: preceding 2 lines from STRM
    
    
    SQL>
    
     
    local (STRM) is running OK.

    Help, please

    concerning

    hqt200475

    Published by: hqt200475 on March 28, 2011 07:23

    You might be hitting this bug number: 4511371

    Concerning

    REDA

  • Reinstall on a different platform Oracle http server

    Hello

    We are currently running APEX on Sun boxes. I have a need to run the server of http to Oracle on a Windows machine. Is there documentation on how to do it? I looked, but I couldn't find anything that was useful.

    Thank you

    Neil

    Process of installation is very easy, it should start installing with Oracle Database 10g companion CD, select Oracle HTTP Server and go step by step with the wizard.
    You can read the documentation on HTTP Server Administrator Guide here http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b12255/toc.htm

  • Use different managed server Java version?

    Hello, I would like to put a server managed to run a Java version different from that set for its WebLogic domain. Could not find anything in the docs on how to do it. But it seems that Start Server properties > JAVA_HOME would solve this. After assigning a different path than the rest of the field, I find that the config.xml file is updated with this setting. But running a ps - ef shows always using the original version. Tried to restart the managed server and the domain, but still uses the original version. Does anyone know how to set it?

    Thanks in advance.

    you need to change $DOMAIN_HOME/bin/setDomainEnv.sh with something like

    If [[$SERVER_NAME is 'ms1']]
    Export JAVA_HOME = / path/to/theotherjava
    endif

    or something like (that I'm not very good at shell script)

    Server startup parameter only affects the JVM settings, but not the actual path of the used java.

  • Passing the list of files to the compiler CAP *.java

    I need to move the list of project files to the EUCPN compiler via the build.files file. It's because I wrote some batch scripts to automate construction projects for different platforms of BB OS. I tried the following script

    "C:\Program Files\Research In Motion\Blackberry JDE 4.6.0\bin\rapc.exe"  -quiet -define=TARGET_BOLD;PREPROCESSOR import="C:\Program Files\Research In Motion\Blackberry JDE 4.6.0\lib\net_rim_api.jar" codename=MyApp MyApp.rapc @MyApp_build.files
    

    but it does not work. Compiler says

    D:\Projects\Current\MyApp\sources\Blackberry>"C:\Program Files\Research In Motion\Blackberry JDE 4.6.0\bin\rapc.exe"  -quiet -define=TARGET_BOLD;PREPROCESSOR import="C:\Program Files\Research In Motion\Blackberry JDE 4.6.0\lib\net_rim_api.jar" codename=MyApp MyApp.rapc @MyApp_build.files
    Warning!: No entry points found
    Warning!: No definition found for exported static routine: .main(String[])
    

    As I understand it, there is a problem with the main application file. But I create MyApp_build.files files using the recursive directory listing and it contains the file .java with public Shared Sub Main definition.

    Compiler generates no file build.files when there are a few files in the project. It creates a long line, where all the file names are listed. I tried to create inMyApp_build.files file in the list by copying-pasting compiler inside line and then split it into lines. After the compiler found the public Shared Sub main, but it loses other files. I can compile the project of the JDE, but I can't compile it from the command line.

    Therefore, it is - how can I generate file build.files make it work? Who controls I need for files of project?

    Thank you, finally I understand your words. The problem is that if you specify destdir attribute of tag, it moves all the resources in the folder root of the .jar file. If you specify destdir as the root of your project JDE (folder, where the file .jdw ) - in other words, when you do not specify this attribute at all - everything is OK, and compiler moves the resources in your project folder structure. So, if you have no problem with the project resources, you should NOT specify the destdir attribute and manually copy the .cod files after compilation.

    Thus, instead of

    
    

    You must use

    
    
  • How can I add Java SE 8 of my browser

    I have a www.runthemodel.com/models/2006 application which requires Java to run 8. I have Java 8 is installed on my desktop. When can I access the site, I get a message 'a plugin is required to run the content. When can I access the site on my laptop, I am able to connect to the program without problem.
    Any suggestions

    To test whether Java is installed and enabled in Firefox, visit one of these Java test pages:

       Verify Java Version
       Verify Java Version (alternate)
    

    When you visit these pages, you will normally have to activate Java. How to enable Java on trusted sites, explains how. You can also see a prompt asking you to confirm that you want to run Java to Java security. This safety message isn't Java, Firefox. For more information, see the Java help page what should I do when I see a security prompt from Java?
    Activation of Java

    If Java doesn't work, make sure that the Java plugin is enabled in the Add-ons Manager tab:

       Click the menu button New Fx Menu and choose Add-ons. The Add-ons Manager tab will open.
       In the Add-ons Manager tab, select the Plugins panel.
       Click on the Java(TM) Platform plugin to select it.
       If Java is disabled, click on Never Activate to open its drop-down menu and select the option to activate Java. The recommended (default) option is Ask to Activate, which lets you run Java when prompted.
    

    Note: You only need to activate the "Java (TM) Platform" plugin, if it is disabled. The plugin "Java Deployment Toolkit" is used by Java developers to detect your version of Java and deploy their Java applications and does not need to be enabled for Java to work.
    Troubleshooting

    If Java is installed but does not work, try these solutions:
    Java plugin does not appear in the Add-ons Manager

    If the Java plugin does not appear in the add-on Manager, even if Java is installed, try each of the following values, one at a time and then reopen Firefox to see if that solves the problem:
    Delete the pluginreg.dat file

    With completely closed Firefox, delete (or rename) the file pluginreg.dat is located in the Firefox profile folder (it will be regenerated once you restart Firefox, but other plug-ins that you can have turned off will be activated). See re - initialize the plugins database to get detailed instructions.
    Ensure that Java is enabled in the Java Control Panel

    From Java 7, Java Control Panel includes the security option, 'Enable Java content in the browser', which is selected by default. If this option will prevent Java applets from running in any browser and the Java plugin will no longer appear in the Firefox Add-ons Manager. Make sure that the content for activate Java in the browser is selected in the Security tab of the Panel control Java. See this Java help page for more details.
    Make sure that the 32-bit version of Java is installed

    On 64-bit Windows, if you have the 64-bit version of Java installed, the Java plugin is available. Releases current Firefox are a 32-bit browser, and you need to install the 32-bit version of Java.
    Make sure that the plugin scanning is not disabled

    Mozilla browsers use the plugin scan to locate the plugins installed, so you must ensure that the preference of plugin.scan.plid.all has not been disabled:

       In the Location bar, type about:config and press Enter.
           The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise! to continue to the about:config page.
       Search for the preference plugin.scan.plid.all
       If it's been set to false, right-click on it and select "Reset".
    

    Uninstall if installed JavaFX

    In some cases, after upgrading from a version earlier than Java Java 7 Update 10 or higher, the plugin java (TM) Platform is no more detected. This can be caused by a conflict with Java and a stand-alone JavaFX installation that prevents the Java plugin to be properly registered. To solve the problem, uninstall JavaFX. For more information, see the java.com help page.
    Other solutions

    If Java is installed and enabled (see above) but does not work properly, try the following:
    Remove outdated Java plugin files

    Ensure that multiple versions of the java plugin (TM) Platform are not detected. For example, if 51 Java 7 update is installed, the java plugin (TM) Platform in the tab of the Add-ons Manager should be among the Java (TM) Platform SE 7 U51. If you see other versions of "Java (TM) Platform" listed, uninstall the older versions (see how can I uninstall Java on my Windows computer?) or otherwise remove manually (see manually uninstalling a plugin).
    Check for other software that may block Java

    Even if Java is installed and enabled in Firefox, it may be blocked by other software or Firefox Add-ons, for example:

       The ZoneAlarm Pro software firewall can block Java. For more information on enabling Java through this program, see the ZoneAlarm Pro forum.
    
       The NoScript extension for Firefox will block Java. For more information, see the NoScript FAQ.
    

    Additional resources

       The Java FAQs page at java.com answers some frequently asked questions.
    

    Based on information from Java (mozillaZine KB)

    Share this article: http://mzl.la/KR1fgO

    This article has been useful?

Maybe you are looking for