The moose likes Java in General and the fly likes ClassPath problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ClassPath problem" Watch "ClassPath problem" New topic

ClassPath problem

narayana murthy pedapudi
Ranch Hand

Joined: Jul 23, 2003
Posts: 42
I have a typical problem.
I am doing serial port communication in java, for that i need to set the classpath for the comm.jar,I am trying to set the classpath using command prompt and environment variable, bu the thing is not working properly.
where as it is working fine when i am doing this in another system.
i am not able to solve this. please let me know...
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Setting classpath from command prompt only sets the environment for that window, could that be the problem?
Personally, I have given up on setting special paths in CLASSPATH, instead I run programs from ANT which is very convenient for defining a classpath for execution of a particular program.
I agree. Here's the link:
subject: ClassPath problem
It's not a secret anymore!