Java Tutorial 2 - Variables {part 1}
Loading...
6,006
Loading...
Uploader Comments (TruthBeautyGoodness)
see all
All Comments (42)
-
got a large error
-
this should get more views :D
-
@TheFatuscatus i'm hoping you got it by now, but when you are compiling, you have to type javac Vars.java
the .java needs to be included :). this will create the class file which you then call by using java Vars
-
@BetterTwoGether yes, he did?
-
@TheFatuscatus put .java at the end
-
thank u
-
when i try to compiule i get this:
Last login: Sat Oct 1 18:10:21 on ttys001
sam-Segals-iMac:~ raquellys$ cd desktop
sam-Segals-iMac:desktop raquellys$ cd java
sam-Segals-iMac:java raquellys$ javac Vars
error: Class names, 'Vars', are only accepted if annotation processing is explicitly requested
1 error
sam-Segals-iMac:java raquellys$
Loading...
I could think of two reasons: you would get that error if you didn't have the JDK (Jave Development Kit) installed, and you would also get it if you didn't set up your path environment variables correctly. In either case, I would recommend watching someone's video on installing the JDK for Windows - they should cover both of those things for you.
TruthBeautyGoodness 2 years ago