L
Luke
Hi,
My second problem is this:
I have the following hierarachy:
t1/test/test2
then I have source files as follows:
t1/test/test2/Pref.java
t1/test/PrefBean.java
t1/UsePref.java
===========================
the files are like this:
Pref.java:
===========================
package test2;
public class Pref
{
// attributes
private String reason;
// constructor method
public Pref()
{
}
// methods
public String getReason()
{
return reason;
}
public void setReason(String reason)
{
this.reason = reason;
}
}
=============================
PrefBean.java
=============================
package test;
import test2.*;
public class PrefBean
{
// constructor method
public PrefBean()
{
Pref p = new Pref();
}
}
=============================
UsePref.java
=============================
package t1;
import test.*;
import test.test2.*;
public class UsePref
{
// constructor method
public UsePref()
{
PrefBean pb = new PrefBean();
Pref p2 = new Pref();
}
}
=============================
As you can see I want to access 'PrefBean' and 'Pref' from 'UsePref'.
However I try, I can't get it working.
I'm using java 1.4.2
Can someone help please!
Can you get this working on your machine
kind regards,
Luke
My second problem is this:
I have the following hierarachy:
t1/test/test2
then I have source files as follows:
t1/test/test2/Pref.java
t1/test/PrefBean.java
t1/UsePref.java
===========================
the files are like this:
Pref.java:
===========================
package test2;
public class Pref
{
// attributes
private String reason;
// constructor method
public Pref()
{
}
// methods
public String getReason()
{
return reason;
}
public void setReason(String reason)
{
this.reason = reason;
}
}
=============================
PrefBean.java
=============================
package test;
import test2.*;
public class PrefBean
{
// constructor method
public PrefBean()
{
Pref p = new Pref();
}
}
=============================
UsePref.java
=============================
package t1;
import test.*;
import test.test2.*;
public class UsePref
{
// constructor method
public UsePref()
{
PrefBean pb = new PrefBean();
Pref p2 = new Pref();
}
}
=============================
As you can see I want to access 'PrefBean' and 'Pref' from 'UsePref'.
However I try, I can't get it working.
I'm using java 1.4.2
Can someone help please!
Can you get this working on your machine
kind regards,
Luke