Results 1 to 4 of 4
  1. #1
    sysp is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

    Default JAR can be installed on any JRE?

    Hi,

    as i remember the main goal of java is to create 1 apps that can be installed and run on many platforms (a particular JRE)


    So, is all .jar file can be installed to any JRE? for example i install one .jar on windows, then can i expect it to work also if i install in on solaris?

    Because i ve been told that the libraries on java windows are diffrent with java on other platforms.

    thanks in advance.

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    Hi, if you use special library, for example java3d, you can need install this library for particular platform.
    Same if you use in your code new features in Java6 or Java5, for example generic, you must use Java5 and above.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    Yeah, assuming your jar is self contained and is pure java (no native code calls), then you can run it on any platform that has a JRE of the same or higher version that you compiled the JAR for. So, if you compile for 1.5, you can use 1.5 and above on any system (as Petr pointed out).

  4. #4
    sysp is offline Member
    Join Date
    Jan 2011
    Posts
    3
    Rep Power
    0

Similar Threads

  1. How to find where jdk is installed ......
    By bhushan in forum New To Java
    Replies: 2
    Last Post: 07-29-2010, 03:45 PM
  2. Listing Installed DSA
    By anoopasta in forum XML
    Replies: 1
    Last Post: 05-06-2010, 04:10 PM
  3. Running a jar after it's installed
    By Doctor Cactus in forum New To Java
    Replies: 7
    Last Post: 01-20-2009, 11:08 AM
  4. Getting Installed Look And Feels
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 07:45 PM
  5. cannot find a JVM installed
    By tommy in forum New To Java
    Replies: 2
    Last Post: 07-29-2007, 08:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •