• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Strange thing when I try to run program

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to note.
I have been out of the game for about 2.5 mo
& this is my first day back.

I am using TextPad.
The program Compiles just fine.
When I try to Run the program Leap
I get a Dos Screen, with
"Press any key to Continue . . . "
but when I try to type in the year #
the Dos window goes away.
I looked in the file wher the Class &
Java files are & it is still there But
I seem to be unable to enter data on
the command line.
Any help or sugestions no matter how
farfetched will be discounted.
Thanks in advance again for all your help

------------------
=======================
Ione Walker
walkeri@usa.net
========================
 
tumbleweed
Posts: 5089
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome back
I suggest you go to the dos prompt and run you program from there.
start > programs > ms dos prompt
cd c:\java
java Leap 1999
of course the above assumes that c:\java is the directory you use as your work directory.
Good luck
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First let me say that I prefer to run my programs the way Johannes has described.

However, in TextPad you can configure the tools to accept commandline parameters by going to
Configure
Preferences
Tools (click on the +)
In the Parameters box, enter "$BaseName" (without the quote marks) if it is not there already.
In the Initial folder box, enter "$FileDir" (again without the quote marks) if it is not there already.
Verify that there are checkmarks in "Prompt for parameters" as well as "Capture output".

 
ione walker
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you both very much I will see if it helps.

------------------
=======================
Ione Walker
walkeri@usa.net
========================
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic