 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stan Dominski Guest
|
Posted: Sat Jun 25, 2005 12:19 am Post subject: Foundation IDE does not see imported Library HELP ! |
|
|
I created a new project and choose applet, I went to Project> Project Properties and choose the Required Libraries tab
and selected the objectdraw library.
I went to the Tools menu, choose Configure Libraries
choose the Required Libraries tab, choose the objectdraw library, tried to compile my applet and the error messages said :
"MakeBox.java": package objectdraw does not exist at line 3, column 1
"MakeBox.java": cannot find symbol; symbol: class WindowController at line 5, column 30
"MakeBox.java": cannot find symbol; symbol : class Location, location: class ssd_makebox.MakeBox at line 14, column 30
"MakeBox.java": cannot find symbol; symbol : variable Controller, location: class ssd_makebox.MakeBox at line 16, column 9
"MakeBox.java": cannot find symbol; symbol : class FilledRect, location: class ssd_makebox.MakeBox at line 17, column 13
"MakeBox.java": cannot find symbol; symbol : variable canvas, location: class ssd_makebox.MakeBox at line 17, column 37
"MakeBox.java": package objectdraw does not exist at line 2, column 1
"MakeBox.java": cannot find symbol; symbol: class WindowController at line 4, column 30
"MakeBox.java": cannot find symbol; symbol : class Location, location: class MakeBox at line 13, column 30
"MakeBox.java": cannot find symbol; symbol : variable Controller, location: class MakeBox at line 15, column 9
"MakeBox.java": cannot find symbol; symbol : class FilledRect, location: class MakeBox at line 16, column 13
"MakeBox.java": cannot find symbol; symbol : variable canvas, location: class MakeBox at line 16, column 37
HELP !
Thank you ( below is the applet )
Stan
package ssd_makebox;
import objectdraw.*;
public class MakeBox extends WindowController
{
public void begin()
{
}
public void onMousePress(Location point)
{
Controller.getVersion();
new FilledRect(30,150,30,20,canvas);
}
}
|
|
| Back to top |
|
 |
Arthur Ore Guest
|
Posted: Sat Jun 25, 2005 10:24 am Post subject: Re: Foundation IDE does not see imported Library HELP ! |
|
|
Stan,
In one of his posts below, Kevin Dean correctly advised you to put the
objectdraw jar file in a directory that doesn't have spaces. I noticed in
one of your postings afterwards that you had still not done this. Once you
moved the jar to a new directory and the whole path to the directory does
not contain spaces then you should then remember to reconfigure your library
to point at the jar file's new location.
I would suggest you follow Kevin's advice as this simple step may sort your
problem. I haven't got JBuilder 2005, so I don't have this preview
functionality nor do I know exactly what it does, but guessing, the fact
that you couldn't preview your jar file suggests to me that maybe you moved
the file, but didn't re-configure JBuilder to find it in the new location?
Arth
"Stan Dominski" <dominskis (AT) aol (DOT) com> wrote
| Quote: |
I created a new project and choose applet, I went to Project> Project
Properties and choose the Required Libraries tab
and selected the objectdraw library.
I went to the Tools menu, choose Configure Libraries
choose the Required Libraries tab, choose the objectdraw library, tried to
compile my applet and the error messages said :
snip/ |
|
|
| Back to top |
|
 |
Stan Dominski Guest
|
Posted: Wed Jun 29, 2005 2:54 pm Post subject: Re: Foundation IDE does not see imported Library HELP ! |
|
|
Hello Arthur !
Thank you for taking the time to help me.
I took your advice ( and Kevin's ) about the spaces.
I put my applets in a directory structure with no spaces:
C:2_jbprojectJP
| Quote: | maybe you moved the file, but didn't re-configure JBuilder to find it in the new location?
|
Once again you are exactly right . I went to Foundation
to try to re-configure it to find the objectdraw.jar library
but I am having difficulty doing that.
I went to the Tools menu
Tools
Configure
Libraries
Required Libraries
but when I highlight the "objectdraw.jar" in the
directory stucture on the left, and click on "ADD"
on the right, and click on "OK" and then
reopen it to see if it is still there,
it is not there ! Strange !
The same lack of change occurs when I do:
Project
Default Project Properties
Required Libraries
under the libraries tab I see
Project
User Home
here under "Project" I see the "objectdraw.jar" in red
and I see "objectdraw.jar in faded grey
and I see one well typed "objectdraw.jar"
I click on the good one , I click "OK"
here under "User Home"
I see "objectdraw.jar in red and again in faded grey
I click on "ADD" to add a good version of it
I click "OK"
I close that window and reopen it and I find
the same problem of red and faded grey "objectdraw.jar"
Your guidance is needed.
Thank you and God bless you
Stan
"Arthur Ore" <nospamthx (AT) nospamthx (DOT) co.uk> wrote:
Stan,
In one of his posts below, Kevin Dean correctly advised you to put the
objectdraw jar file in a directory that doesn't have spaces. I noticed in one of your postings afterwards that you had still not done this. Once you moved the jar to a new directory and the whole path to the directory does not contain spaces then you should then remember to reconfigure your library
to point at the jar file's new location.
I would suggest you follow Kevin's advice as this simple step may sort your problem. I haven't got JBuilder 2005, so I don't have this preview functionality nor do I know exactly what it does, but guessing, the fact that you couldn't preview your jar file suggests to me that maybe you moved the file, but didn't re-configure JBuilder to find it in the new location?
Arth
"Stan Dominski" <dominskis (AT) aol (DOT) com> wrote in message
| Quote: | news:42bca32b$1 (AT) newsgroups (DOT) borland.com...
I created a new project and choose applet, I went to Project> Project
Properties and choose the Required Libraries tab
and selected the objectdraw library.
I went to the Tools menu, choose Configure Libraries
choose the Required Libraries tab, choose the objectdraw library, tried to
compile my applet and the error messages said :
snip/
|
|
|
| Back to top |
|
 |
Arthur Ore Guest
|
Posted: Wed Jun 29, 2005 6:13 pm Post subject: Re: Foundation IDE does not see imported Library HELP ! |
|
|
Stan,
As I am not currently using JB2005 , I can't give you exact instructions.
You may require help from someone with the right version. I can only give
instructions for JBX.
From what you've described, it sounds like you have two or three similarly
named libraries. I would suggest that any coloured red are deleted. Remove
them using Tools|Configure Libraries
Whilst you are in this screen, make sure that you can see a "good" version
of the library. If there is none after you have deleted them, then add a new
one.
Once you have done this, go to one of your projects and select
Project|Project Properties click on the required Libraries tab and remove
any red ones from your project adding in the good one. You should now be
able to compile without it complaining. You will need to repeat this for all
projects using the library.
When you have done this, you need to stop the problem occurring for any new
projects you create. Go to Project|Project DEFAULT Properties. Repeat the
same steps you did in the previous paragraph.
If this works, it should also fix one of the problem you have posted about
in the IDE newsgroup too. Remember these instructions may have to be
translated slightly to be applicable to JB 2005.
Finally Stan, do yourself and everyone a favour, fix your existing problems
before moving on to the next topic. If you don't have your libraries set up
correctly EVERYTHING you do that relies on these libraries being present is
going to break and give strange error messages.
Arth
--
Arthur Ore
"Stan Dominski" <dominskis (AT) aol (DOT) com> wrote
| Quote: |
Hello Arthur !
Thank you for taking the time to help me.
I took your advice ( and Kevin's ) about the spaces.
I put my applets in a directory structure with no spaces:
C:2_jbprojectJP
maybe you moved the file, but didn't re-configure JBuilder to find it in
the new location?
Once again you are exactly right . I went to Foundation
to try to re-configure it to find the objectdraw.jar library
but I am having difficulty doing that.
I went to the Tools menu
Tools
Configure
Libraries
Required Libraries
but when I highlight the "objectdraw.jar" in the
directory stucture on the left, and click on "ADD"
on the right, and click on "OK" and then
reopen it to see if it is still there,
it is not there ! Strange !
The same lack of change occurs when I do:
Project
Default Project Properties
Required Libraries
under the libraries tab I see
Project
User Home
here under "Project" I see the "objectdraw.jar" in red
and I see "objectdraw.jar in faded grey
and I see one well typed "objectdraw.jar"
I click on the good one , I click "OK"
here under "User Home"
I see "objectdraw.jar in red and again in faded grey
I click on "ADD" to add a good version of it
I click "OK"
I close that window and reopen it and I find
the same problem of red and faded grey "objectdraw.jar"
Your guidance is needed.
Thank you and God bless you
Stan
|
|
|
| Back to top |
|
 |
Stan Dominski Guest
|
Posted: Wed Jul 06, 2005 8:00 pm Post subject: Re: Foundation IDE does not see imported Library HELP ! |
|
|
| Quote: | From what you've described, it sounds like you have two or >>>three similarly named libraries. I would suggest that any >>>coloured red are deleted. Remove them using Tools|Configure >>>Libraries
|
Dear Arthur,
I went to 'search' and found an old version
of objectdraw and the new version of objectdraw library.
I tried to delete the old version of objectdraw.jar but the error message said:
"The compressed file is invalid or corrupted"
The file would not delete ! !
I went to tools
configure
libraries
highlighted the coloured red "objectdraw " on the left
closed the IDE
reopened the IDE and
the coloured red "objectdraw" in the file structure on the left was gone !
| Quote: | Whilst you are in this screen, make sure that you can see a "good" version of the library.
|
( the good version is there; I saw it ! ! )
yet when I try to run a simple applet the error message is
"MakeBox.java": package objectdraw does not exist at line 2, column 1
I think tis is because the IDE is still looking at the corrupted objectdraw instead of the new version which I stored in another directory.
When I go back to Tools and Properties, the changes I made
to get rid of the red coloured objectdraw did not take effect !
the red "objectdraw with a "!" in front of it is still there.
Your advice is exactly right if I had a good file.
But the file is corrupted and I can't delete it.
Thank you for taking the time to advize me.
I do appreciate your assistance. God bless you Arthur.
Please let me beg a boon of thee for a little more assistance.
Stan
As I am not currently using JB2005 , I can't give you exact instructions.
You may require help from someone with the right version. I can only give
instructions for JBX.
From what you've described, it sounds like you have two or three similarly
named libraries. I would suggest that any coloured red are deleted. Remove
them using Tools|Configure Libraries
Whilst you are in this screen, make sure that you can see a "good" version
of the library. If there is none after you have deleted them, then add a new
one.
Once you have done this, go to one of your projects and select
Project|Project Properties click on the required Libraries tab and remove
any red ones from your project adding in the good one. You should now be
able to compile without it complaining. You will need to repeat this for all
projects using the library.
When you have done this, you need to stop the problem occurring for any new
projects you create. Go to Project|Project DEFAULT Properties. Repeat the
same steps you did in the previous paragraph.
If this works, it should also fix one of the problem you have posted about
in the IDE newsgroup too. Remember these instructions may have to be
translated slightly to be applicable to JB 2005.
Finally Stan, do yourself and everyone a favour, fix your existing problems
before moving on to the next topic. If you don't have your libraries set up
correctly EVERYTHING you do that relies on these libraries being present is
going to break and give strange error messages.
Arth
"Arthur Ore" <nospamthx (AT) nospamthx (DOT) co.uk> wrote:
| Quote: | Stan,
As I am not currently using JB2005 , I can't give you exact instructions.
You may require help from someone with the right version. I can only give
instructions for JBX.
From what you've described, it sounds like you have two or three similarly
named libraries. I would suggest that any coloured red are deleted. Remove
them using Tools|Configure Libraries
Whilst you are in this screen, make sure that you can see a "good" version
of the library. If there is none after you have deleted them, then add a new
one.
Once you have done this, go to one of your projects and select
Project|Project Properties click on the required Libraries tab and remove
any red ones from your project adding in the good one. You should now be
able to compile without it complaining. You will need to repeat this for all
projects using the library.
When you have done this, you need to stop the problem occurring for any new
projects you create. Go to Project|Project DEFAULT Properties. Repeat the
same steps you did in the previous paragraph.
If this works, it should also fix one of the problem you have posted about
in the IDE newsgroup too. Remember these instructions may have to be
translated slightly to be applicable to JB 2005.
Finally Stan, do yourself and everyone a favour, fix your existing problems
before moving on to the next topic. If you don't have your libraries set up
correctly EVERYTHING you do that relies on these libraries being present is
going to break and give strange error messages.
Arth
--
Arthur Ore
"Stan Dominski" <dominskis (AT) aol (DOT) com> wrote in message
news:42c2b611$1 (AT) newsgroups (DOT) borland.com...
Hello Arthur !
Thank you for taking the time to help me.
I took your advice ( and Kevin's ) about the spaces.
I put my applets in a directory structure with no spaces:
C:2_jbprojectJP
maybe you moved the file, but didn't re-configure JBuilder to find it in
the new location?
Once again you are exactly right . I went to Foundation
to try to re-configure it to find the objectdraw.jar library
but I am having difficulty doing that.
I went to the Tools menu
Tools
Configure
Libraries
Required Libraries
but when I highlight the "objectdraw.jar" in the
directory stucture on the left, and click on "ADD"
on the right, and click on "OK" and then
reopen it to see if it is still there,
it is not there ! Strange !
The same lack of change occurs when I do:
Project
Default Project Properties
Required Libraries
under the libraries tab I see
Project
User Home
here under "Project" I see the "objectdraw.jar" in red
and I see "objectdraw.jar in faded grey
and I see one well typed "objectdraw.jar"
I click on the good one , I click "OK"
here under "User Home"
I see "objectdraw.jar in red and again in faded grey
I click on "ADD" to add a good version of it
I click "OK"
I close that window and reopen it and I find
the same problem of red and faded grey "objectdraw.jar"
Your guidance is needed.
Thank you and God bless you
Stan
|
|
|
| Back to top |
|
 |
Arthur Ore Guest
|
Posted: Sun Jul 10, 2005 10:53 pm Post subject: Re: Foundation IDE does not see imported Library HELP ! |
|
|
Stan,
I've just noticed that in Tools|Configure| Libraries, depending on how the
library gets messed up it doesn't always turn red. I would therefore remove
all variants on the objectdraw.jar library from this window, by selecting
each in turn in the left hand pane and then clicking the delete button under
this list.
Once all references to the library are removed check they are also removed
from each of your projects and from your project defaults.
When you no longer have any references to the library, then carefully add in
the library to each place you have previously deleted it from.
As to why you can't delete the file from your disc, then perhaps you should
check that there are no problems with the disc itself, but this isn't a
topic for discussion in a Java newsgroup.
Arth
----- Original Message -----
From: "Stan Dominski" <dominskis (AT) aol (DOT) com>
Newsgroups: borland.public.jbuilder.applet-issues
Sent: Wednesday, July 06, 2005 9:00 PM
Subject: Re: Foundation IDE does not see imported Library HELP !
| Quote: |
From what you've described, it sounds like you have two or >>>three
similarly named libraries. I would suggest that any >>>coloured red are
deleted. Remove them using Tools|Configure >>>Libraries
Dear Arthur,
I went to 'search' and found an old version
of objectdraw and the new version of objectdraw library.
I tried to delete the old version of objectdraw.jar but the error message
said:
"The compressed file is invalid or corrupted"
The file would not delete ! !
I went to tools
configure
libraries
highlighted the coloured red "objectdraw " on the left
closed the IDE
reopened the IDE and
the coloured red "objectdraw" in the file structure on the left was gone
!
Whilst you are in this screen, make sure that you can see a "good"
version of the library.
( the good version is there; I saw it ! ! )
|
|
|
| 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
|
|