Using file explorer on PC I see normal file structure where my xxx.java file are under scr directory. But in eclipse oxygen they show up under a hidden directory called "default package " within scr. Can someone explain the difference and how to correct? I needed to copy a file over so I could use graphics functionality with code. Ended up having to manually create a new source file to add it but would like to know why there is a delta between windows file explorer and oxygen.
Java Types are always in a Package, with its segments meant to be paralleled by the folder layout under the source folder. If you don't have a package statement in the source file, it is considered to be in the default package, which just has no name. The Java perspective is showing you the Types in its Package Explorer, laying them out to encourage you to think in terms of Java Types and objects instead of files. If you really want to see the underlying files, open the Navigator View from the Window menu, but really, that's a detail you shouldn't be concerning yourself with most of the time. In either case, it should still have been just one file with different ways of looking at it.