Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Questions on HW2-Spring2006

Need help with your collage?

ASK HERE!


Are we turning in the PictureCollage class (as indicated) or the .java file?

And if we use getMediaPath, are we to assume that our TA will use setMediaPath before running our program?

Yes, please turn in the .java file, which is the definition of the PictureCollage class (but don't turn in the .class file). Yes, the TA will use setMediaPath. Mark Guzdial


If we want to use our method from HW1, do we need to include its code within our PictureCollage class, or does the TA have our methods?

If you want to use your own method from HW1, please submit your "Picture.java" file in addition to "PictureCollage.java".(Please don't include its code within PictureCollage.java)
So, you need to submit the following for this homework.
1.PictureCollage.java
2.Any additional pictures that you add to your media folder to create your collage
3.Picture.java (if you are using your own method from HW1) Manabu Shimobe
Or if you made any changes to Picture.java Mark Guzdial





I tried to run my class on windows command line but it won't work. I changed the directory to the java-source folder and typed "java PictureCollage" and got back an error "Exception in thread "main" java.lang.NoClassDefFoundError: PictureCollage. Do you know why it's not working?

Did you recompile the class after you put in the main() method? Mark Guzdial


I keep getting this error:

cannot access java.lang.Object
bad class file: C:\Program Files\Java\jrel.5.0_02\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.

What exactly does this mean? I have the class Picture in with the java-source folder, and the folder is listed in folder, so what am suppose to do?

Go see the FAQ – this is described at the bottom of the page. Mark Guzdial



Link to this Page