I just started watching the videos for Stanford's CS106a course online and am trying to do the homework. I've downloaded the stanford version of eclipse and the other software as required. I can run the karel programs and the programs that come with the book (i've downloaded the ACM package aswell). I'm having trouble doing the assignments in eclipse. I've made a new project, created a file (.java) where I've put my source code. I then tried to link the acm package to the project ( Project > Properties > Project Build Path > Add External JARs). But when I run the .java file, I get the following: at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
I really need some help creating a project, program in eclipse to run from scratch with the ACM package. Anny help is really appreciate. thanks
I suggest you stop using Eclipse at this stage, and use a decent text editor, e.g. NotePad+, Notepad2, jEdit, not Microsoft Notepad.
Create a “Java” or similar folder and put all your work in that.
Copy all the Stanford classes into the same folder structure as you are working in probably with their highest‑level folder named to match the package names (maybe “edu”).
Write out the programs in text. Write import declarations for any of the Stanford classes you need to use.
t will be rather like HelloWorld or MooseGreetings, only bigger.
posted 5 years ago
Question is how do I run them in windows console? How do I import the acm package?