[Bluej-discuss] Running Main with a Key Command

Chris Share cshare01 at qub.ac.uk
Sat Oct 7 17:45:58 BST 2006


Thanks, I was hoping for a key command like F5...

Also, it's a pain to have to set the args each time.

Cheers,

Chris

Todd O'Bryan wrote:
> If you're in the terminal/console, you can run
> 
> java MainClassName
> 
>  From within BlueJ, right-click on the main class, and choose the  
> main method. You'll have to enter a String array since the main  
> method always takes a String array.
> 
> In the code pad, you could do
> 
> MainClassName.main(new String[] {"arg1", "arg2"})
> 
> HTH,
> Todd
> 
> On Oct 7, 2006, at 5:45 AM, Chris Share wrote:
> 
> 
>>Hi,
>>
>>I'm new to BlueJ. I'm a C programmer using Java/BlueJ for some  
>>prototyping.
>>
>>I was wondering if there was a way to run a project's main method  
>>using
>>key commands?
>>
>>Cheers,
>>
>>Chris
>>_______________________________________________
>>mailing list bluej-discuss at bluej.org
>>To unsubscribe or change your preferences, go to
>>http://lists.bluej.org/mailman/listinfo/bluej-discuss
> 
> 
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
> 


More information about the bluej-discuss mailing list