[1537] in java-interest
RE: JAVAC and Win'95 final beta
daemon@ATHENA.MIT.EDU (Nelson Yu)
Thu Sep 7 06:03:42 1995
From: Nelson Yu <nyu@gpu.srv.ualberta.ca>
To: "'java-interest@java.sun.com'" <java-interest@java.sun.com>
Date: Thu, 7 Sep 1995 00:37:31 -0600
Peter,
>I have been trying to compile the Hello world applet with java =
1.0alpha3 on
>the win'95 final beta. When I drop to the DOS shell, I keep getting =
the
>message, "this program cannot run in DOS mode. Has anyone else had =
>this
>problem? Is it a consequence of using the beta version of win'95, or =
do I
>have a corrupt javac.exe file? Thanks to anyone who can help.
Sorry if your question has been already answered. MS Exchange =
inadvertantly(or at least I did) deleted the last 50+ message headers.
Use the 'Run' command on the Taskbar, because java, javac, etc. aren't =
DOS programs and Win95 doesn't seem to have a console mode like Win NT =
does(damn!).
i.e java c:\html\classes\MyJavaProg.java
and "javac MyJavaProg"(no .class after the file) runs the java program =
if it has a 'main()' in it.
Remember to set your CLASSPATH environment setting in your AUTOEXEC.BAT
Note: I tried writing an applet using Notepad and compiling it with =
java,
but since Notepad adds ".txt" to every text file it becomes =
"MyJavaProg.java.txt" instead of "MyJavaProg.java" and Explorer is set =
to NOT show the extensions so you may have to change the name of file =
you
want to compile. OTOH Explorer allows you to define a action on a file =
depending on its extension, so you can set it up(like I did) to compile =
with the right mouse button(the popup menu) using a user defined =
'compile' action.
P.S I use Borland's IDE for Java(and it syntax-hilights Java code)
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com