[Bluej-discuss] Running Main with a Key Command
Todd O'Bryan
toddobryan at mac.com
Sun Oct 8 19:34:17 BST 2006
From the Code Pad, you can up-arrow to get what you just typed, so
if the invocation doesn't change each time, it's two keys: up-arrow,
then return.
Todd
On Oct 7, 2006, at 12:45 PM, Chris Share wrote:
> 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
>>
> _______________________________________________
> 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