Com port weirdness.

A

Arinté

I have java installed on a xp machine in the same partition as my windows
directory.

I am doing some Com port programming and what I have noticed is that if I
just do something simple like:
Enumeration en = CommPortIdentifier.getPortIdentifiers();
while ( en.hasMoreElements() )
System.out.println( ((CommPortIdentifier)en.nextElement()).getName() );

If I run this from the DOS Prompt
"C:\" it will show all of the com ports
but if I switch to "d:\" none are shown at all.

Has anyone seen this problem? Any solutions? Any problems with my config
even though I don't give much?
 
K

Knute Johnson

Arinté said:
I have java installed on a xp machine in the same partition as my windows
directory.

I am doing some Com port programming and what I have noticed is that if I
just do something simple like:
Enumeration en = CommPortIdentifier.getPortIdentifiers();
while ( en.hasMoreElements() )
System.out.println( ((CommPortIdentifier)en.nextElement()).getName() );

If I run this from the DOS Prompt
"C:\" it will show all of the com ports
but if I switch to "d:\" none are shown at all.
?

Has anyone seen this problem? Any solutions? Any problems with my config
even though I don't give much?

No. No. ?

Do you mean it won't run if you put the class file on d:? Are you
getting an error message?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top