Java JDK Installation Problem - Need Help!

Below is my program Access.java which resides in c:\java. It generates a "NoSuchMethodError" when I run it on my Windows 2000 computer at work. When my friend here at work runs the SAME program on his Windows 2000 computer, it runs fine. I have No idea why! I suspect it's a classpath problem, but I use the same classpath on my Windows 98 computer at home w/o a problem.

For windows 2000, I set my path statement by going into the Control Panel ->System->Advanced Tab and adding a user variable named path.

To set my classpath, I use sysedit. Anyway, here's what my path and classpath statements look like in my c:\autoexec.bat

path=c:\windows;c:\windows\command;c:\java

path=c:\jdk1.3.1\jre\bin;c:\jdk1.3.1\bin;%path%

set classpath = .;%classpath%;c:\jdk1.3.1\jre\lib;c:\java\;

Finally, here's my c:\java\Access.java program that blows up (only on MY Windows 2000 machine)

//Access.java

package com.gfarms.geometry;

class Other

{

public void fnc(int b)

{

System.out.println("integer received = " + b);

}

}

public class Access

{

public static void main(String[] args)

{

Other a = new Other();

a.fnc(48);

}

}

Any help would be deeply appreciated!

[1331 byte] By [sjsearcher] at [2007-9-26 2:54:15]
# 1
Try this:create a new directory called c:\java\com\gfarms\geometry and move Access.java to it. Delete all class files.compile from c:\java:c:\java> javac com/gfarms/geometry/Access.javarun it:c:\java> java com.gfarms.geometry.Access
jsalonen at 2007-6-29 10:43:33 > top of Java-index,Archived Forums,Java Programming...
# 2
... or alternatively remove the line "package com.gfarms.geometry;" and recompile...
jsalonen at 2007-6-29 10:43:33 > top of Java-index,Archived Forums,Java Programming...