Is this statement accurate?

My program would not compile and the reason given by others users was that the version of java I used to compile was different than the java version i used to run the program.

a) Please excuse my ignorance, but in layman terms, does this mean that the JDK version (which contains the compiler?) is different from the Java runtime version I had downloaded?

b) Also, if that statement is accurate, is there a setting that would allow automatic updates java runtime and JDK?

c) And finally, if I tried running all java programs in Solaris OS, then is there a need to download the java RE application?

cheers,

Zeeshan

[653 byte] By [dogara] at [2007-11-27 6:52:44]
# 1

> My program would not compile and the reason given by

> others users was that the version of java I used to

> compile was different than the java version i used to

> run the program.

>

> a) Please excuse my ignorance, but in layman terms,

> does this mean that the JDK version (which contains

> the compiler?) is different from the Java runtime

> version I had downloaded?

Yes, could be.

>

> b) Also, if that statement is accurate, is there a

> setting that would allow automatic updates java

> runtime and JDK?

I don't think so. The automatic upgrades will only upgrade to later minor versions.

>

> c) And finally, if I tried running all java programs

> in Solaris OS, then is there a need to download the

> java RE application?

Depends on what version it is running now.

kajbja at 2007-7-12 18:27:20 > top of Java-index,Java Essentials,New To Java...
# 2
to see the version of the compiler and of the JVM use something likejavac -versionjava -version
S_i_m_ua at 2007-7-12 18:27:20 > top of Java-index,Java Essentials,New To Java...