Author Topic: Does Java work on all computers?  (Read 7282 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Does Java work on all computers?
« on: December 17, 2010, 04:12:42 pm »
If a Java program is translated into "Java Byte Code," is it guranteed to run on Windows, Mac and Linux as long as they have java installed?

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Does Java work on all computers?
« Reply #1 on: December 17, 2010, 04:14:23 pm »
if they have the JVM (java), then yes.


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Does Java work on all computers?
« Reply #2 on: December 17, 2010, 04:36:01 pm »
It should, except I noticed sometimes that even after installing Java, sometimes some browsers will still think it's not installed.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Does Java work on all computers?
« Reply #3 on: December 17, 2010, 04:37:34 pm »
It should, except I noticed sometimes that even after installing Java, sometimes some browsers will still think it's not installed.
Even if you make sure to select for it to install the correct browser plug-in and then you restart? What browser is this?
And yeah, it should work on any computer with a JVM installed
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Does Java work on all computers?
« Reply #4 on: December 17, 2010, 06:16:42 pm »
It eventually worked after 2 or 3 restarts. It was IE and Opera. It happens often, though, when first installing Java..

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Does Java work on all computers?
« Reply #5 on: December 17, 2010, 07:18:14 pm »
If a Java program is translated into "Java Byte Code," is it guranteed to run on Windows, Mac and Linux as long as they have java installed?
Not necessarily. You have to make sure you are using routines that are not deprecated, or provide some sort of version check.  You also have to make sure any native libraries are compiled to the correct architecture and installed. And you have to make sure that any libraries and functions you use are available to all systems.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Does Java work on all computers?
« Reply #6 on: December 17, 2010, 08:17:55 pm »
Would the program have to be updated regularly forever to maintain compatibiility? I remember PJIRC, for example, stopped working completely during about 3 versions of Java, then it started working again 4 versions later.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Does Java work on all computers?
« Reply #7 on: December 17, 2010, 10:00:22 pm »
I just updated my java to 6r23. it works fine in browsers however there are problems for me when i run .jar files (runtime). I can run them, but only after a massive amount of tweaking with cmd. I dunno why i have this since everyone else seems to be able to run them directly by double-clicking. but as for the java in browsers it should work.
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Does Java work on all computers?
« Reply #8 on: December 17, 2010, 10:41:04 pm »
I just updated my java to 6r23. it works fine in browsers however there are problems for me when i run .jar files (runtime). I can run them, but only after a massive amount of tweaking with cmd. I dunno why i have this since everyone else seems to be able to run them directly by double-clicking. but as for the java in browsers it should work.
Try just adding -d32. Unless you are on a 64 bit processor?
Would the program have to be updated regularly forever to maintain compatibiility? I remember PJIRC, for example, stopped working completely during about 3 versions of Java, then it started working again 4 versions later.
No, not necessarily. What I said was mostly referring to packages that have not been adopted to the java standard (Don't want to explain that. It's basically like making the package "official", and having it be released with any new updates).  E.G. 3rd party packages and such.

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Does Java work on all computers?
« Reply #9 on: December 17, 2010, 10:44:52 pm »
to the jar file or java.exe
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Does Java work on all computers?
« Reply #10 on: December 17, 2010, 10:45:28 pm »
to the jar file or java.exe
Jar file. Also, are you 32 bit or 64 bit user? what OS?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Does Java work on all computers?
« Reply #11 on: December 18, 2010, 12:21:50 am »
I just updated my java to 6r23. it works fine in browsers however there are problems for me when i run .jar files (runtime). I can run them, but only after a massive amount of tweaking with cmd. I dunno why i have this since everyone else seems to be able to run them directly by double-clicking. but as for the java in browsers it should work.
Try just adding -d32. Unless you are on a 64 bit processor?
Would the program have to be updated regularly forever to maintain compatibiility? I remember PJIRC, for example, stopped working completely during about 3 versions of Java, then it started working again 4 versions later.
No, not necessarily. What I said was mostly referring to packages that have not been adopted to the java standard (Don't want to explain that. It's basically like making the package "official", and having it be released with any new updates).  E.G. 3rd party packages and such.

Ah ok thanks for the info.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Does Java work on all computers?
« Reply #12 on: December 23, 2010, 04:58:50 pm »
I believe that .jar files do work in all platforms.

However, if converted to .exe, they won't anymore since .exe is for Windows :)

EDIT: Afterall, that's what Java is famous for: compatibility and portability :D
« Last Edit: December 23, 2010, 04:59:10 pm by ScoutDavid »

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Does Java work on all computers?
« Reply #13 on: December 23, 2010, 08:33:24 pm »
I believe that .jar files do work in all platforms.

However, if converted to .exe, they won't anymore since .exe is for Windows :)

EDIT: Afterall, that's what Java is famous for: compatibility and portability :D
Java will work as all the JRE is there (Java Runtime Environment).  Also, all methods for systems classes must be supported and not deprecated.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Does Java work on all computers?
« Reply #14 on: December 23, 2010, 09:00:21 pm »
A while ago, I managed to mess up Java on my computer. I got it working again, but we are stuck at version 1.6.2 (or is it just 6.2). Anyways, you can never assume that someone has the latest version of the JRE installed. My grandparents don't use their internet much, and so use DIAL-UP!!!!! I have no idea what version of the JRE they have, but it probably isn't up-to-date. I recommend using Java 5, as most of the common apis didn't change from 5 to 6, and there is a better likelihood of a user having at least v5.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results: