Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes Problem running mehods in BlueJ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem running mehods in BlueJ..." Watch "Problem running mehods in BlueJ..." New topic

Problem running mehods in BlueJ...

John Brookes

Joined: Feb 26, 2004
Posts: 29
Ok I'm running on a bit of a deadline here, but I've just brought a project back from uni onto my home PC and now I'm faced with this:

When I right-click the driver class for my project (appropriately named "driver") I should get a list of methods available, specifically the main method so I can run my program. I don't have the source code for driver as it has been supplied as part of the coursework and i DOES work. My problem lies in the menu NOT appearing when I right click. I can do it for every other class and make instances of them, but not the one I really need to use.

I could do it when I was at uni, running an identical version of the project in the same IDE.

If I use a batch file to run driver I get the following:

Exception in thread "main"java.lang.NoClassDefFoundError: driver

John Brookes

Joined: Feb 26, 2004
Posts: 29
I think I'm going to stick this up in the IDE forum too, just in case it's BlueJ-specific...
It is sorta covered in the JavaRanch Style Guide.
subject: Problem running mehods in BlueJ...
It's not a secret anymore!