Originally Posted by twiggy62
|
I have a bunch of old .java files that I have created in the past and I used cmd
to compile them. But since then that computer no longer works and and my
new computer apparently has problems with me trying to set up cmd to work
with the compiling of the files. So I installed NetBeans. 
...
|
You should have added the path to your JDK's bin folder to your environment's PATH variable.
Originally Posted by twiggy62
|
..
Is there anyway to run a java file with building a package for it?
|
Do you mean without building a package?
Why don't you want to put the classes in a package?
You'll need to study the buttons on your Netbeans tool bar to find out how to run a class.
Basically you are trying to avoid learning things that you should be learning.
1.)First you couldn't figure out how to set the PATH correctly to include javac and java. Instead of reading and learning about it, you switched to an IDE.
2.)Now you think Netbeans requires classes to be in packages and are avoiding learning about packages by asking how to run without declaring them.
3.) Well, how to do that requires that you learn how to use Netbeans.