'TheJVM'

From Jmri

(Difference between revisions)
Line 7: Line 7:
==Determining which Java is installed==
==Determining which Java is installed==
-
*Windows98: Go to 'run' -> 'Command' and enter 'cmd' at the prompt. This will open a new window with a prompt something like: 'C:>'. Enter (no quotes) "java -version" and it should return the version number of your installation. If some kind of error message comes back you're going to need to download Java from [http://www.java.com/getjava Sun].
+
* Windows98: Go to 'run' -> 'Command' and enter 'cmd' at the prompt. This will open a new window with a prompt something like: 'C:>'. Enter (no quotes) "java -version" and it should return the version number of your installation. If some kind of error message comes back you're going to need to download Java from [http://www.java.com/getjava Sun].
-
*Other Windows - Help!
+
* Other Windows - Help!
-
*Apple Macintosh: Start a terminal window (Apps -> utilities -> terminal) and enter (still without quotes!) "java -version"
+
* Apple Mac OS X: Every version of MacOS X has a suitable version of Java already installed, so you don't need to do anything
-
*Linux - If you're running Linux you know how to do this! :-)
+
* Apple Macintosh "Classic": Check for an "MRJ Libraries" folder in the Extensions folder in the System Folder.  If not present, you need to download Java from [http://docs.info.apple.com/article.html?artnum=75097 Apple].
 +
* Linux - If you're running Linux you know how to do this! :-)
==Do I need the Java development kit? (The 'Java SDK')?==
==Do I need the Java development kit? (The 'Java SDK')?==
-
No, just the virtual machine!
+
Only the virtual machine (JVM, sometimes referred to as the JRE, for 'Java Runtime Environment') is needed to run the JMRI programs.
 +
 
 +
The Software Development Kit lets you recompile and debug Java code.  If you'd like to work on the JMRI program itself, or write your own Java program that uses it, you'll eventually want to download the SDK.  Until then, you don't need it.

Revision as of 03:50, 19 February 2006

Do I have Java? What version is needed?

Most systems already have a suitable Java Virtual Machine (JVM) installed. In general, if you're planning to run on a pretty modern machine, a good start would be to ensure that you have the latest version [1.5] installed. However, any version from 1.1 onwards should work and earlier versions, being smaller, tend to load faster than the behemoth that is version 1.5 :-)

[As an example, on a Pentium 166 with 128mb ram, startup time for DecoderPro went from over 30seconds before the logo appeared to less than 10 when comparing Java 1.5 to 1.3. Of course, ymmv and a discussion on this topic is hopefully taking place on the 'discussion' page above!]

Determining which Java is installed

  • Windows98: Go to 'run' -> 'Command' and enter 'cmd' at the prompt. This will open a new window with a prompt something like: 'C:>'. Enter (no quotes) "java -version" and it should return the version number of your installation. If some kind of error message comes back you're going to need to download Java from Sun.
  • Other Windows - Help!
  • Apple Mac OS X: Every version of MacOS X has a suitable version of Java already installed, so you don't need to do anything
  • Apple Macintosh "Classic": Check for an "MRJ Libraries" folder in the Extensions folder in the System Folder. If not present, you need to download Java from Apple.
  • Linux - If you're running Linux you know how to do this! :-)

Do I need the Java development kit? (The 'Java SDK')?

Only the virtual machine (JVM, sometimes referred to as the JRE, for 'Java Runtime Environment') is needed to run the JMRI programs.

The Software Development Kit lets you recompile and debug Java code. If you'd like to work on the JMRI program itself, or write your own Java program that uses it, you'll eventually want to download the SDK. Until then, you don't need it.

Personal tools