S
Stefan Ram
What could be reasons that Sun did never implement
the following behaviour upon installation of the JDK
(or possibly, the JRE) on Windows, which after all
is an important plattform. (Similar things might be
possible under other operating systems, too.)
The following behaviors seem so obvious to me:
- The directory with the commands »java« and
»javac« is added to the Windows »path«.
- When a *.class file is »opened« in the explorer
and this file has a static main method it is
opened with the java command (when it extends
Applet/JApplet it could be opend with appletviewer
and a default HTML wrapper file; when it contains
a reference to Swing or AWT, it is opened with javaw.)
When it needs other classes, they are compiled
if this is necessary.
- When a *.java file is »opened« in the explorer
it is compiled to a *.class file, which is kept
in memory and then treated as described above.
- (if possible)When »example ...« is typed on the
command line and a file »example.class ...« exists
but no file »example« exists then this treated as
if »java example ...« would have been typed
(I don't know if this is possible).
- All of the above options are indicated with a
checked checkmark in the installation program,
so that a user can deselect them, if he does not
want them.
the following behaviour upon installation of the JDK
(or possibly, the JRE) on Windows, which after all
is an important plattform. (Similar things might be
possible under other operating systems, too.)
The following behaviors seem so obvious to me:
- The directory with the commands »java« and
»javac« is added to the Windows »path«.
- When a *.class file is »opened« in the explorer
and this file has a static main method it is
opened with the java command (when it extends
Applet/JApplet it could be opend with appletviewer
and a default HTML wrapper file; when it contains
a reference to Swing or AWT, it is opened with javaw.)
When it needs other classes, they are compiled
if this is necessary.
- When a *.java file is »opened« in the explorer
it is compiled to a *.class file, which is kept
in memory and then treated as described above.
- (if possible)When »example ...« is typed on the
command line and a file »example.class ...« exists
but no file »example« exists then this treated as
if »java example ...« would have been typed
(I don't know if this is possible).
- All of the above options are indicated with a
checked checkmark in the installation program,
so that a user can deselect them, if he does not
want them.