Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Beginning Java 2
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 23rd, 2004, 05:01 PM
Registered User
 
Join Date: Jan 2004
Location: Milton Keynes, Buckinghamshire, United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default viewing executed programs

Hello,
I'm now reading Beginning Java 2 1.4
I've been trying to try out the illustrations in the book but it doesn't stay on the screen long enough me for to see.
I've keyed in the code for "delay ending program till you press Enter" on page 48 but it's still not working.
Point is I was initially using the SDK 1.4 software from the Sun website. I was not seeing my executed programs so I'm now using the JBuilder4 software from Borland.
Is there a way that I can freeze my program in order to see how I'm doing?
Any help from someone?
John

JMO
  #2 (permalink)  
Old January 24th, 2004, 09:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

John,

If you are new to Java and programing in Windows, the best tools that you can use are a simple text editor and the Command prompt. Doing it this way means more work for you, but at least you start to understand what you are doing and don't become reliant on an IDE to build and compile your objects.

If you run your class from the Command prompt then you will find that you are able to easily view the output.

Cheers

Martyn
  #3 (permalink)  
Old February 17th, 2004, 07:55 PM
Registered User
 
Join Date: Jan 2004
Location: Milton Keynes, Buckinghamshire, United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Martyn,
Indeed I am new to programmimg. I took your advise and I'm now using JBuilder 4 Professional. I cam now compile programes successfully with it but anytime I want to run it it asks me to key in VM (virtual machine) and Application perameters which I don't know. Any help, please.

Jonmark

JMO
  #4 (permalink)  
Old February 18th, 2004, 06:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Johnmark,

If read my original email you will see that I actually advise againt using an IDE, which JBuilder is, partly for educational reasons and partly because you spend too much time trying to work out how to use the IDE rather than focus on coding in Java. Use JBuilder if you must but inititaly you would be better of with something like JCreator, which is free and is relatively simple to use.

I have version 9 of JBuilder, which could be very different from version 4, but I will try to help you.

You set the main class, vitual machine, and application parameters under: Project > Project Properties > Run


I hope this helps

Cheers

Martyn
  #5 (permalink)  
Old February 19th, 2004, 10:15 AM
Authorized User
 
Join Date: Sep 2003
Location: den Haag, , Netherlands.
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Jonmark
 Hello,
I'm now reading Beginning Java 2 1.4
No, you are not! If you WERE reading Ivor's book, you would have found a short example of how to delay the output on the MS-DOS screen so that it becomes readable. And it works! You just have to add a little piece of code to the end of the main() block:
(check the code example in chapter 1 or 2)

try
{
System.out.println("Press Enter to return");
System.in.read();
}
catch(IOException e)
{
return;
}

cheerZ~!
- franZ
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript Sub is executed twice.... jaijavan20194 VBScript 4 April 30th, 2009 09:05 PM
Query Executed multiple time. rupen Classic ASP Databases 4 January 11th, 2008 07:30 AM
why is this code executed twice? hertendreef ASP.NET 2.0 Basics 1 February 23rd, 2007 06:05 AM
external.js not executed cyrus67 Javascript 2 November 17th, 2006 10:29 AM
IsPostback executed twice amantona ASP.NET 1.0 and 1.1 Professional 3 February 3rd, 2005 08:41 AM



All times are GMT -4. The time now is 03:32 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.