Results 1 to 9 of 9
  1. #1
    satimis is offline Member
    Join Date
    Apr 2010
    Posts
    22
    Rep Power
    0

    Default One program for both Windows and Linux

    Hi folks,

    Java is new to me.

    I'm looking for a programming language to create a program which can work on both Windows and Linux. Some folks suggest Java (not javascript). If it is the case please advise where shall I start?

    Further detail will be posted if Java is the right way for me to go. TIA

    B.R.
    satimis

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by satimis View Post
    I'm looking for a programming language to create a program which can work on both Windows and Linux. Some folks suggest Java (not javascript). If it is the case please advise where shall I start?
    Java indeed is platform independent; for a good start study the Sun Java Tutorial and if you really start expeirmenting don't forget to download the entire Sun Java API documentation.

    kind regards,

    Jos

  3. #3
    satimis is offline Member
    Join Date
    Apr 2010
    Posts
    22
    Rep Power
    0

    Default

    Quote Originally Posted by JosAH View Post
    Java indeed is platform independent; for a good start study the Sun Java Tutorial and if you really start expeirmenting don't forget to download the entire Sun Java API documentation.
    Hi Jos,

    Thanks for your advice and URL

    A further question do I need requesting the Windows user to install Java framework for running the program thus created? Do all Windows have the said software running as basic? In the former case it is NOT so convenient.

    Thanks

    B.R.
    satimis

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by satimis View Post
    A further question do I need requesting the Windows user to install Java framework for running the program thus created? Do all Windows have the said software running as basic? In the former case it is NOT so convenient.
    Yes, people do need to have a JRE (Java Runtime Environment) installed on their machine. You, the developer also need a JDK (Java Development Kit) installed. Those don't come with an OS distribution but users can implicitly install the JRE through the 'webstart' tool: it checks for the presence of an (up to date) JRE and installs one if not found on the target machine.

    kind regards,

    Jos

  5. #5
    satimis is offline Member
    Join Date
    Apr 2010
    Posts
    22
    Rep Power
    0

    Default

    Quote Originally Posted by JosAH View Post
    Yes, people do need to have a JRE (Java Runtime Environment) installed on their machine. You, the developer also need a JDK (Java Development Kit) installed. Those don't come with an OS distribution but users can implicitly install the JRE through the 'webstart' tool: it checks for the presence of an (up to date) JRE and installs one if not found on the target machine.
    Hi Jos,

    If I understand your advice correctly. When the user starts my program on Windows. If it is found No JDK available. It'll ask for permission to install it automatically. Please correct me if I'm wrong?

    Thanks

    B.R.
    satimis

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by satimis View Post
    Hi Jos,

    If I understand your advice correctly. When the user starts my program on Windows. If it is found No JDK available. It'll ask for permission to install it automatically. Please correct me if I'm wrong?

    Thanks

    B.R.
    satimis
    Sort of: the user has nothing installed yet and s/he asks webstart to run your application; webstart checks if the user has a JRE available and installs it if it can't find any; then it downloads your application from the net and runs it; next time your user can do the same (a JRE won't be installed again) or s/he can install your application (and forget about webstart from then on).

    kind regards,

    Jos

  7. #7
    satimis is offline Member
    Join Date
    Apr 2010
    Posts
    22
    Rep Power
    0

    Default

    Quote Originally Posted by JosAH View Post
    Sort of: the user has nothing installed yet and s/he asks webstart to run your application; webstart checks if the user has a JRE available and installs it if it can't find any; then it downloads your application from the net and runs it; next time your user can do the same (a JRE won't be installed again) or s/he can install your application (and forget about webstart from then on).
    His Jos,

    Whether you meant Java Web Start ?

    e.g. Web Start for Windows Vista
    Free java web start for vista free Download - java web start for vista free Files

    User needs to install this software first? Then use it to check the program. He/She only needs to do it once for ever.


    B.R.
    satimis

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by satimis View Post
    His Jos,

    Whether you meant Java Web Start ?
    Here's the 'official' link of what I was talking about; read the documentation for starters.

    kind regards,

    Jos

  9. #9
    satimis is offline Member
    Join Date
    Apr 2010
    Posts
    22
    Rep Power
    0

    Default

    Quote Originally Posted by JosAH View Post
    Here's the 'official' link of what I was talking about; read the documentation for starters.
    Thanks

    satimis

Similar Threads

  1. Under Windows OS, how to call *.EXE produced in Linux OS?
    By tony_lincoln in forum Advanced Java
    Replies: 9
    Last Post: 03-26-2010, 06:08 PM
  2. Errors running app in linux but not in Windows
    By JohnST in forum New To Java
    Replies: 3
    Last Post: 03-12-2010, 01:58 AM
  3. Replies: 3
    Last Post: 01-21-2010, 01:51 AM
  4. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  5. Access Linux shared folder from Windows OS
    By nitinpjairaj in forum Networking
    Replies: 3
    Last Post: 08-26-2008, 06:14 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
  •