Standford Programming Methodology Class Project set up with IntelliJ
Hello all,
I'm looking for a little guidance and some practical information on setting up a project in IntelliIDEA 10.5.
I'm currently attempting to walk through the Programming Methodology classes offered from Stanford University via iTunesU. The course employs Java to teach the basic principles of Programming Methodology. The sample files and handout materials for the course are available here: http://see.stanford.edu/see/courseinfo.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111
I'm looking for some practical advice on how to correctly set up the class project, Keral, with IntelliJ. The class recommends and provides a customized version of Eclipse. I tried importing the project into the most recent version of Eclipse but found eclipse far less usable then Jet Brains products (I currently use PHPStorm and PyCharm).
Based on the files and information found here (http://see.stanford.edu/see/courseinfo.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111), what steps should I take to properly set up up Karel?
I run Lion on a Mac Pro with Lion installed. Any advice would be greatly appreciated. Thanks. -Kevin
Attachment(s):
Assignment1.zip
请先登录再写评论。
Hi Kevin,
I suggest you the following wiki page - Setting up a project in IntelliJ IDEA.
Basically, all you need to is to create new project with single module; put target '*.java' files to the module content root and define 'karel.jar' as a module dependency.
Regards, Denis
Thanks for the response. I'll give it a try.
OK - I've run through the wiki article on project setup and I've made some progress however, I'm not able to run any files or set up Karel as a module dependency.
I'm not sure what I'm doing wrong or missing. I think I'm pretty close though and I'd appreciate any help I can get from the community, thanks again.
Please see attached for screen shots that may help further clarify my issues.
Attachment(s):
karel-settings.zip
I would suggest deleting the files *.class, and placing the files *.java into the blue colored folder called "src"
See if that helps you progress
Hello Jon, I gave your suggestion a try but still no luck. It seems to have made the situation a little worse (note the red underlines under the files names in the screenshot). I'd hate to have to resort to using ugly-old Eclipse but, it looks like I don't have a choice. Thanks again to all who answered and may yet answer.
Attachment(s):
Assignment1 - [-Volumes-GAIA-Dropbox-Programming-Java-Assignments-Assignment1] - IntelliJ IDEA 10.5.1.png
Here is one way to fix it.
Go to each of your source files, click on the class name and hit ALT-ENTER.
This should provide a fix suggestion such as "Move class to package ..."
You can accept the fix is suggests, just use the same fix for all files
This isnt an IntelliJ problem. You just need to learn some basic Java.
The IDE will help you fix what is wrong - I would just tell you - but you should probably learn it on your own as part of your class