I am a "dumb researcher" writing Java in XCode. I have no UNIX or C experience. Hence, a dumb question:
Suddenly I am getting an OutOfMemoryError when I execute my research program on a large dataset. Googling this error's name tells me that it can be addressed by increasing the heap size allocated by the JVM. I suspect that XCode has settings or parameters hidden somewhere that control (or could) the "-Xmx" flag referred to. But searching the XCode documentation (designed by experts for experts) has yielded no clues about where to look for such a parameter or setting.
Thus, some naive questions: 1) How does XCode influence the heap allocation of the Java Virtual Machine? Where can I change the "-Xmx" flag referred to on the Web?
2) Every time I launch my program from XCode (Build & Run), the Run Log begins with: "[Session started at 2005-10-03 20:44:22 -0400.] -[NSJavaVirtualMachine initWithClassPath:] cannot instantiate a Java virtual machine" My app then launches and everything works fine. I've come to ignore this as a "nuisance message" -- until I inferred that I need to increase the heap allocation for the JVM; this message implies that I don't have one (that what am I running on?). Is this part of my problem? How do I address it?
3) Where does someone learn all this stuff? Is there a book, reference, or URL that explains the BASICS of building Java code with gcc & its friends? Or better yet, a book for novice users of XCode that explains the basics and then how XCode handles those basics?
I assume that the experts who read/use this list are not interested in talking to beginners -- that's understandable. I will gladly pay someone to take the time to help me, because I'm stuck!
-- Gary Morris 2200 Ben Franklin Parkway S-1212 Philadelphia, PA 19130 (215) 557-0410 (landline) (202) 390-0504 (mobile) (215) 557-0410 (FAX)
Home E-mail: email@hidden Penn E-Mail: email@hidden
"Development is when you know the answer, but not how to get there. Applied research is when you know the question, but not the answer. Pure research is when you don't know the question." - Nick MacLaren
|