I can't seem to run these files without getting a cannot symbol error.
I run the exact same code on another computer and it works. I'm guessing its a problem with my path? But both java and javac work in cmd.
Thanks so much tell me if you have any questions.
Here is my two files I cant connect (EXACT same on both computers, including fileName).
Both files are in the same folder and javac is installed on both the computers.
Test.java file
public class Test {
public Test(){
System.out.println("it's working");
}
}
TestRun.java file
public class TestRun {
public static void main(String[] args) {
new Test();
}
}
Commands:
$ javac Test.java
$ javac TestRun.java
$ java TestRun
Output:
it's working
But the same is not working in another computer