Operational Systems & Java
Answer: Unfortunately there is no command as "cls", but try this instead:
for (int i=0; i<25; i++) System.out.println();
It will print 25 empty lines and they will move current printouts up
Q: Why my program does not give the address of the local machine on one PC
and give on another?
Answer: As long as you have TCP/IP installed, you should at least get 127.0.0.1
Can applet corrupt my registry file?
Q: I have written a java applet for displaying my genealogy. It has worked fine at
home. My brother tested it on my web site with no problems. BUT, the third person I
asked to take a look at it reported, that though it worked fine, when he exited the
page, his system locked up and he had to reboot. After the reboot he said his registry
was corrupted and had to be restored.
Has anyone seen anything like this? if so, do you have any suggestions as to
probable cause and fix?
Answer: Any time you don t shutdown properly, your registry can be corrupted, even
if the program that did the freezing was not even using the registry.
The registry is one of the stupidest ideas ever conceived in computer science. It puts
ALL your eggs in one basket.
by Roedy Green
For the JAVA GLOSSARY see
http://mindprod.com/jgloss.html
Q: Does anybody know how to find out the complete path of a system default
browser (if there s such) from a Java stand alone app?
Answer: Under Windows you can invoke the default browser calling
start filename.html , under Unix is a lot more complicated because nobody can
assure you that a browser exists and the user is under X....
Davide
Q: ...The problem is that, after the file is uploaded to the server, every end of line
is placed with ^M character...
I have written a servlet which uploads a file from client(Win32) to server (Unix). I
have used DataInputStream to read the file in bytes and FileOutputStream to write
the file to the location in the server.
The problem is that, after the file is uploaded to the server, every end of line is placed
with ^M character. This problem is faced only when I upload to Unix Server from
Windows O/S.
Answer: This is normal, I think. A line ends with a single return symbol in Unix and
ends with a return symbol and a switching line symbol in Windows. The editor in Unix
shows "^M" when it meets the switching line symbol.
So to fix this bug, you can remove the switching line symbol in the end of lines when
you upload files from Windows to Unix.
file:///F|/a_jsite/350_tips/os_win_linux.htm (6 of 8) [2001 07 08 11:24:58]
footer
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved