 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
bherbst65@hotmail.com Guest
|
Posted: Wed Oct 26, 2005 12:30 am Post subject: System output, input and making .jars |
|
|
Hi All,
I tried to make a jar from a graphical program
that requires data statements such as this snip.
.......... Start of snip...........
InputStreamReader keyboard = new InputStreamReader(System.in);
BufferedReader in = new BufferedReader(keyboard);
System.out.println("You will have to select the format that this
program can work with");
System.out.println("1. f(x) = a*sin(x) + b");
.........
try
{
System.out.println(" ");
System.out.println("Please select the problem format (1 to 4 :");
format = in.readLine();
formatnum = Integer.parseInt(format);
System.out.println(" ");
System.out.println("Please enter the value for variable 'a' (-2
to +4) :");
va = in.readLine();
.......... End of snip...........
After making the jar and wanting an do input, the graphical is shown
but no place to make the input.
Advice is desired.
Bob
|
|
| Back to top |
|
 |
klynn47@comcast.net Guest
|
Posted: Wed Oct 26, 2005 1:20 am Post subject: Re: System output, input and making .jars |
|
|
Well it appears from your program, that you will just be inputting at
the command line.
|
|
| Back to top |
|
 |
Roedy Green Guest
|
|
| Back to top |
|
 |
bherbst65@hotmail.com Guest
|
Posted: Wed Oct 26, 2005 2:08 am Post subject: Re: System output, input and making .jars |
|
|
Hi Roedy,
This does work :java.exe -jar myjar.jar
Added this to my file of "do this and that" to make and use .jars
Thanks for your help,
Bob
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|