[java programming] classpath problem pleasse help

2010-08-30 Thread vinay basavanal
Hi all, This may be a stupid question but i am facing this problem I created a dir check under d:\vinay so in d:\vinay\check I wrote simple Test.java which just has a variable ; and compiled it Then i created a another dir pac so in d:\vinay\check\pac i wrote anoth

[java programming] 1029 - Introspect a bean...

2010-08-30 Thread ooo.stephen
this exercise uses a PropertyDescriptor object to iterate through the properties of the SimpleBean class, which implements Serializable. Does that mean then, that PropertyDescriptor is describing the Serializable class? i'm also seeing most if not all of those properties/methods as belonging to the

[java programming] Re: 1034 java control - creating new instance

2010-08-30 Thread yelmi almonte
On Aug 30, 2:45 am, Manluf wrote: > Hi all, > > I am working with lab 1034 and my question is not about control > sentence, really. > I dont understand (at this point) why we need create an instance of > NumWords > >     public class NumWords { > >     /** Creates a new instance of NumWords */ >

Re: [java programming] Re: 1003 class path...

2010-08-30 Thread Mihai DINCA
Hi again There are some typical cases depending on the way your customers are supposed to execute your application and a simple recommendation: try to keep the classpath as short as possible (at some time, the JVM will have to scan all the directories or jar in the classpath to find the classe

Re: [java programming] 1034 java control - creating new instance

2010-08-30 Thread Mihai DINCA
Hi Manluf Usually the classes are instantiated and may need a constructor. This is the most common structure of a class, so the code was written with the most general schema in mind. In this very precise example, there is no need to instantiate a NumWords object. Hope it helps Mihai Manluf

[java programming] 1034 java control - creating new instance

2010-08-30 Thread Manluf
Hi all, I am working with lab 1034 and my question is not about control sentence, really. I dont understand (at this point) why we need create an instance of NumWords public class NumWords { /** Creates a new instance of NumWords */ public NumWords() { } I have commente