Originally Posted by
Norm
Where is the file MyClass.java located?
The javac command was looking in the C:\Users\HP folder for that file.
You need to change directories to be in the same folder that contains the MyClass.java file.
Use the dir command to see what files are in a folder.
i've used the dir command and MyClass.java file is in the HP directory. i even moved the MyClass.java file to the java software folder, it was still not loaded/found, i removed it from the folder. i surfed the web, trying to find a way around ds issue, found some articles and pages on "classes and setting classpath" to address such as my issue. still trying to understand "classes & setting the classpath". what do you think?
this is whats in the HP user account, its my user account. i changed the name but i'm going to rename it to "HP" now to c what i'll get:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\HP>dir
Volume in drive C has no label.
Volume Serial Number is 76EB-4A60
Directory of C:\Users\HP
12/25/2019 05:15 PM <DIR> .
12/25/2019 05:15 PM <DIR> ..
12/12/2019 11:02 PM 0 'javac'
12/25/2019 05:15 PM 95 .accessibility.properties
11/18/2019 06:08 PM <DIR> .AndroidStudio3.5
11/18/2019 08:56 PM <DIR> .gradle
11/19/2019 09:41 PM <DIR> AndroidStudioProjects
10/24/2016 02:07 PM <DIR> biocapture-sync
12/17/2019 12:16 AM <DIR> Contacts
12/18/2019 11:13 PM <DIR> Desktop
12/23/2019 10:31 PM <DIR> Documents
12/24/2019 05:55 PM <DIR> Downloads
11/29/2019 03:04 PM <DIR> Favorites
12/22/2019 05:04 PM <DIR> java jdk
12/05/2019 11:28 AM <DIR> java runtimE
12/12/2019 11:02 PM 0 javac
05/19/2019 05:45 PM 0 lib.defs
11/21/2015 01:28 AM <DIR> Links
12/03/2019 10:46 PM <DIR> Music
12/22/2019 05:12 PM <DIR> myJava
12/12/2019 11:02 PM 0 operable
11/12/2019 11:37 PM <DIR> Pictures
11/21/2015 01:28 AM <DIR> Saved Games
12/16/2019 11:47 PM <DIR> SCHU tools
03/10/2019 10:48 PM <DIR> Searches
12/15/2019 07:23 AM <DIR> spss
11/12/2019 11:37 PM <DIR> Videos
5 File(s) 95 bytes
22 Dir(s) 246,024,032,256 bytes free
C:\Users\HP>