installing so will run programs

Installing java to a networked computers. Security setting are set and maintained elsewhere.

Installaing went fine and "compiling" (english is not my first language) ok. So from Hello.java to Hello.class with javac went allright.

When givin the order java Hello all we get is an exception -- no class ... Hello

When I take this Hello.class to a home computer it works just fine. And when I take another workin .class from home to one of these computers all I get is the same exception.

So command javac works fine but command java wont.

Our tech support has no idea what the problem is. I think maby something to do with the security settings. Maby.

Any ideas where to start looking? We have no help elsewhere and are totally swamped.

[779 byte] By [qwerasdfa] at [2007-10-3 11:59:08]
# 1
What exception are you getting?
CaptainMorgan08a at 2007-7-15 14:35:13 > top of Java-index,BigAdmin,Set up and Deploy...
# 2

Problem you now have is the classpath variable.

The class path is not properly set to the folder where the hello.class file resides.

if you are using windows xp, 2000 follow the steps given below.

1. Right click the my computer icon

2. click properties ->advanced tab.

3. In the advanced tab click Environment variables.

4. In Evironment variables click New.Then enter classpath as variable name and ;.; as variable value.

5 click ok.

Now run the program

RenBalamurugana at 2007-7-15 14:35:13 > top of Java-index,BigAdmin,Set up and Deploy...
# 3

Basicly this can be caused by just about anything.

I would suggest strongly against setting a classpath environment variable since Java doesn't need it and it will only limit your actions. I think you either tried to run a class without a main() method or simply tried to execute a class file instead of a class (java hello.class vs. java hello).

Best if you gave us a little more context.

Lion-Oa at 2007-7-15 14:35:13 > top of Java-index,BigAdmin,Set up and Deploy...