Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

stoid

macrumors 601
Original poster
Currently for my programming courses, we are developing Java code within apps like BlueJ and Eclipse since they are cross-platform solutions, and the campus is all Windows based (ick). I am currently less than satisfied with the stability of BlueJ and the interface and power of both. I'm trying to get Xcode to work, but I don't know what kind of project I should tell it to start. Obviously BlueJ and Eclipse make use of a Java Virtual Machine for code execution. I can't seem to get this to work in Xcode. I'm just using standard Java code with basic javax.swing and java.awt interface components.
 

bousozoku

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
If you're creating all the code yourself, choose the tool project as your template. This generally works for school classwork, no matter where it's C, C++, or Java.

The AWT and Swing projects are fine, if you're doing exactly what they planned but I haven't been able to use more than bits and pieces of one or the other. In fact, I create a dummy project and copy working code to help me get a prototype together more quickly and edit in jGrasp.
 

stoid

macrumors 601
Original poster
I've copied in all of my code from the project I just finished today, recreated the classes and so forth. I'm getting a 'can not instantiate Java Virtual Machine' message and a dummy swing window though whenever I click Build & Run.
 

MacFan26

macrumors 65816
Jan 8, 2003
1,219
1
San Francisco, California
Do you get that same error when you try to run it only in XCode, or is it happening everywhere like in Eclipse? Did you just download the Java update? Hm, that could have something to do with it. I don't really think Eclipse is the best it could be, but I actually prefer it to XCode right now, at least for Java programs anyway. It tends to have really useful features that XCode just doesn't have.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.