Wrox Programmer Forums
|
BOOK: Java Programming 24-Hour Trainer by Yakov Fain
This is the forum to discuss the Wrox book Java Programming 24-Hour Trainer by Yakov Fain; ISBN: 978-0-470-88964-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Java Programming 24-Hour Trainer by Yakov Fain section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2011, 02:46 AM
Registered User
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 2 - can not create Class

Hi,

After following the instructions to type "com.practicaljava.lesson2", I get an error message in Eclipse stating "Type name is empty". I figure it has something to do with the "enclosing type" field in the New Java Class dialog screen but I'm at a loss as to what exactly I should be doing.

Any advice?

Thanks

B.
 
Old March 4th, 2012, 09:44 PM
Registered User
 
Join Date: Feb 2012
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Default

Send your Email Address, I will Forward a SnapShot (glRoss3@yahoo.com)
of the Dialog Box .
It wont let me attach a File HERE (Wheres the Forum Admin)

In the mean Time Try this Bro....

In Eclipse Click the File Menu.....
File->New-Select Package

In the Name (TextBox) Type this carefully & Pray

com.practicaljava.lessonN

N = Your Lesson Number (say 5 )

Then Click Finish .
You should get a pkg Icon under the Src Folder
Your Java Source files get Put in there or the Path becomes.....

src/com/practicaljava/lessonN

The Package is just a way to Organize a Path , where your Source Code goes. mr Glenn





Similar Threads
Thread Thread Starter Forum Replies Last Post
Lesson 5 exercises. thelemur BOOK: Java Programming 24-Hour Trainer by Yakov Fain 9 March 29th, 2013 11:56 PM
Lesson 3 question soneal777 BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 1 August 30th, 2010 06:17 PM
How to Create Forms Class in C#? Bill_Thompson C# 2005 0 April 18th, 2010 07:16 AM
Can I create a class from a variable? MAtkins General .NET 2 August 1st, 2005 11:57 AM
Cannot create a new class from VS 2k3 r_ganesh76 General .NET 0 November 3rd, 2004 05:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.