Could not find the main class.

I run my application and it runs fine. I run the application in other three computers and it runs fine. When I try to run this application in Human Resources computer I am receiving the followgin message.

Could not find the main class. Program will exit.

can someone please tell me why it works in one computer and other computers is not running propertly. the application is sitting on the server.

Thanks in advance for your help

wilfer

[471 byte] By [CDCDevelopera] at [2007-11-27 8:00:51]
# 1
Looks like the classpath isn't getting set properly on that one machine.How are you "running" the program?
bryanoa at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...
# 2
Thanks Bryano for your response , I use the same classpath for every computer. I create a shorcut and I set the following target\\Server\I-lYNX\jdk\bin\javaw.exe lynxjava.LYNXI set the same target for everycomputer.
CDCDevelopera at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...
# 3
Yes, but where do the actual class files reside? And can that location be found in the classpath of the machine you are executing this on?
bryanoa at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...
# 4
The class files reside in this path, here is where the rest of the classes are residing.\\Server\I-LYNX\jdk\bin\lynxjava\Here is the way I am executing the Application, in the bin folder I have the main class.\\Server\I-lYNX\jdk\bin\javaw.exe lynxjava.LYNX
CDCDevelopera at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...
# 5
Would you not then want this:\\Server\I-lYNX\jdk\bin\javaw.exe -classpath \\Server\I-lYNX\jdk\bin lynxjava.LYNX
bryanoa at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...
# 6

bryano ,

I tried and It worked Bryano.

I appreciate your help. is very strange that the origonal path that I typed worked for every one in the office except my Human Resources computer.

Do you know why my original way of executing this application was not working in Human Resources computer and why is was working in other computers.

I appreciate you help.

CDCDevelopera at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...
# 7
maybe (not sure but maybe) it's got a different version of java installed (first in the PATH) which doesn't have hot spot?Just an idea.
corlettka at 2007-7-12 19:42:54 > top of Java-index,Java Essentials,New To Java...