BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"package does not exist" error message HELP !

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues
View previous topic :: View next topic  
Author Message
Stan Dominski
Guest





PostPosted: Mon May 16, 2005 7:56 pm    Post subject: "package does not exist" error message HELP ! Reply with quote




Dear People,
I downloaded the JBuilder Foundation IDE
I extracted it using Winzip
I clicked on the install icon and installed it

I tried to run my first applet in the Foundation version:

I downloaded the library ( called objectdraw from
http://eventfuljava.cs.williams.edu/library/
and stored it at C:Documents and Settings

In the IDE I clicked on
Tools
Configure
Configure Libraries
Required Libraries
Add

I saw a tree directory structure to the left
Under "User Home" I highlighted "objectdraw"
OK
I clicked "next"
I clicked "finish"

I clicked on "New Project"
typed in the name and clicked on "Required Libraries"
I clicked the "ADD" button

in the tree directory structure to the left under
"User Home" I highlighted "objectdraw"
"OK"

I clicked on "File", "New"
I clicked on "Web" in the tree structure
I clicked on "Applet"
OK
etc etc etc

When I try to run my first applet I get a
"package does not exist" error message BUT
The package does exist, it is stored in the right place
and I configured it ok but still something is wrong !

HELP !
God bless you
Stan
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Tue May 17, 2005 5:54 pm    Post subject: Re: "package does not exist" error message HELP ! Reply with quote



Stan Dominski wrote:

Quote:

Dear People,
I downloaded the JBuilder Foundation IDE
I extracted it using Winzip
I clicked on the install icon and installed it

I tried to run my first applet in the Foundation version:

I downloaded the library ( called objectdraw from
http://eventfuljava.cs.williams.edu/library/
and stored it at C:Documents and Settings

In the IDE I clicked on
Tools
Configure
Configure Libraries
Required Libraries
Add

I saw a tree directory structure to the left
Under "User Home" I highlighted "objectdraw"
OK
I clicked "next"
I clicked "finish"

I clicked on "New Project"
typed in the name and clicked on "Required Libraries"
I clicked the "ADD" button

in the tree directory structure to the left under
"User Home" I highlighted "objectdraw"
"OK"

I clicked on "File", "New"
I clicked on "Web" in the tree structure
I clicked on "Applet"
OK
etc etc etc

When I try to run my first applet I get a
"package does not exist" error message BUT
The package does exist, it is stored in the right place
and I configured it ok but still something is wrong !

HELP !
God bless you
Stan

First of all, don't store stuff in directories with spaces in the names
(present-day JBuilder handles them better than its predecessors did but
I'm still suspicious).

If the problem still exists, copy and paste the stack trace here so
that we can get a better idea of the problem.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
stan Dominski
Guest





PostPosted: Wed May 18, 2005 1:11 am    Post subject: Re: "package does not exist" error message HELP ! Reply with quote




Quote:
First of all, don't store stuff in directories with spaces in the names(present-day JBuilder handles them better than its predecessors did but I'm still suspicious).

Kevin - I used the same directory names in JBuilder 8 Personal and it was never a problem.


Quote:
If the problem still exists, copy and paste the stack trace here so that we can get a better idea of the problem.

Kevin - Here is the applet. I'm not sure where to put the
try catch block with e.printStackTrace(System.err)

package stan_makebox_5;

import objectdraw.*;

public class MakeBox extends WindowController
{
public void begin()
{

}

public void onMousePress(Location point)
{
Controller.getVersion();
new FilledRect(30,150,30,20,canvas);
}
}

Thank you and God bless you
Stan


"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote:
Quote:
Stan Dominski wrote:


Dear People,
I downloaded the JBuilder Foundation IDE
I extracted it using Winzip
I clicked on the install icon and installed it

I tried to run my first applet in the Foundation version:

I downloaded the library ( called objectdraw from
http://eventfuljava.cs.williams.edu/library/
and stored it at C:Documents and Settings

In the IDE I clicked on
Tools
Configure
Configure Libraries
Required Libraries
Add

I saw a tree directory structure to the left
Under "User Home" I highlighted "objectdraw"
OK
I clicked "next"
I clicked "finish"

I clicked on "New Project"
typed in the name and clicked on "Required Libraries"
I clicked the "ADD" button

in the tree directory structure to the left under
"User Home" I highlighted "objectdraw"
"OK"

I clicked on "File", "New"
I clicked on "Web" in the tree structure
I clicked on "Applet"
OK
etc etc etc

When I try to run my first applet I get a
"package does not exist" error message BUT
The package does exist, it is stored in the right place
and I configured it ok but still something is wrong !

HELP !
God bless you
Stan

First of all, don't store stuff in directories with spaces in the names
(present-day JBuilder handles them better than its predecessors did but
I'm still suspicious).

If the problem still exists, copy and paste the stack trace here so
that we can get a better idea of the problem.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html


Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Wed May 18, 2005 7:46 pm    Post subject: Re: "package does not exist" error message HELP ! Reply with quote

stan Dominski wrote:

Quote:
Kevin - Here is the applet. I'm not sure where to put the
try catch block with e.printStackTrace(System.err)

I'm sorry, but try/catch is one of the most basic Java constructs. At
this point I recommend some books on introductory Java programming.
There's a limited amount of help we can give without more details about
the error.

I haven't done applet programming in a while, but if you're trying to
run the applet through a browser you will need to include the
ObjectDraw library as a JAR file in your download to the browser; it
won't find it otherwise.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Stan Dominski
Guest





PostPosted: Thu May 19, 2005 1:40 am    Post subject: Re: "package does not exist" error message HELP ! Reply with quote


Kevin - your response is appreciated. I am a little bit confused at this point.

You say " you will need to include the ObjectDraw library as a JAR file in your download to the browser; it won't find it otherwise."

Kevin - The objectdraw library was downloaded to the browser and added to the project.

I went to the Williams mary COllege web site where they give instructions on how to make their "objectdraw" library work with JBuilder. Below is the web address.
http://eventfuljava.cs.williams.edu/library/

It says:
1. Under the "File" menu, choose "New Project." Name your project and click the "Next" button.
2. Check to make sure your library (we'll call it "objectdraw") is under the "Required Libraries" tab by default. If not, then add it using the following steps:
a. Click on the "Required Libraries" tab.
b. Click the "Add..." button.
c. If "objectdraw" has already been created, then select it and continue creating your project and skip to #3. If not, continue following these instructions.
d. Click the "New" button.
e. Give your new library a name (like "objectdraw").
f. Using the pull-down choice menu, select whether you want this library to apply only to this project, to anything this user creates, or anything this copy of JBuilder creates. I sugggest "User Home."
g. Click "Add..." and set a path either to a directory of .class files or to a .jar file.
h. Click "OK" when you are finished.
3. Click the "Finish" button.
4. Under the "File" menu, select "New." Select "Applet". On some copies of JBuilder, you will have to click on the "Web" tab to make this visible, and on others it is visible immediately.
5. Name the class in the field labeled "Class." JBuilder will fill in the "Packages" text field with the name of the project you just created. Delete that and leave the field blank.
6. Leave the rest of the defaults. Click "Finish." Do not type any code.
7. Add as many classes as you want. Remember, though, when you create them to leave the "Package" text field blank. Otherwise there is a frustrating amount of file management to do.*
8. Type your code and run!

* - Note: When you create new classes (including your original), it will create two copies of the .java file in your project window, one under a package called "<Project Source>" and one at the top level. Although the project will run with both there, it is recommended that you delete the one at the top level to clean up the project window. This will not affect how your project runs...."

I have basically done what they are talking about. The objectdraw library has been included.
( the above instructions are obviously based on an older
version of JBuilder);

Kevin you say:
"I'm sorry, but try/catch is one of the most basic Java constructs. At this point I recommend some books on introductory Java programming."

I don't think the problem is a try catch block since I
did not include one in the applet. I will take your
advice and restudy that section when an appropriate
time occurs, however do you have any concrete
advice as to getting the applet to work ?

Thank you and God bless you
Stan






"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote:
Quote:
stan Dominski wrote:

Kevin - Here is the applet. I'm not sure where to put the
try catch block with e.printStackTrace(System.err)

I'm sorry, but try/catch is one of the most basic Java constructs. At
this point I recommend some books on introductory Java programming.
There's a limited amount of help we can give without more details about
the error.

I haven't done applet programming in a while, but if you're trying to
run the applet through a browser you will need to include the
ObjectDraw library as a JAR file in your download to the browser; it
won't find it otherwise.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html


Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Thu May 19, 2005 2:03 am    Post subject: Re: "package does not exist" error message HELP ! Reply with quote

Stan Dominski wrote:

Quote:
Kevin - your response is appreciated. I am a little bit confused at
this point.

You say " you will need to include the ObjectDraw library as a JAR
file in your download to the browser; it won't find it otherwise."

Kevin - The objectdraw library was downloaded to the browser and
added to the project.

I went to the Williams mary COllege web site where they give
instructions on how to make their "objectdraw" library work with
JBuilder. Below is the web address.
http://eventfuljava.cs.williams.edu/library/

It says:
... SNIP ...

I have basically done what they are talking about. The objectdraw
library has been included. ( the above instructions are obviously
based on an older version of JBuilder);

Kevin you say:
"I'm sorry, but try/catch is one of the most basic Java constructs.
At this point I recommend some books on introductory Java
programming."

I don't think the problem is a try catch block since I
did not include one in the applet. I will take your
advice and restudy that section when an appropriate
time occurs, however do you have any concrete
advice as to getting the applet to work ?

It finally occurred to me that "package does not exist" is not a Java
error. Rather, it is a JSP compiler error. This typically means that
the JSP compiler can't find the library in WEB-INF/lib. Right-click on
the web archive and make sure that the library is selected as "Include
all" in the build dependencies tab.

When you get errors like this, it would be more helpful to include the
complete contents of the output window; I could have diagnosed this as
a JSP error much sooner.

Here's a Google search that should help:

http://www.google.ca/search?q=package+%22does+not+exist%22+error+jsp

Starting tomorrow I'm away for two weeks so someone else will have to
pick up if you have any more questions.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Stan Dominski
Guest





PostPosted: Thu May 19, 2005 2:16 pm    Post subject: Re: "package does not exist" error message HELP ! Reply with quote


Kevin - Thank you for your response. You said
" Right-click on the web archive and make sure that the library is selected as "Include all" in the build dependencies tab.

Quote:
Where is the "web archive" that I should right click on ?
where is the build dependencies tab so I can select
"include all" ?


Kevin - you say:
"When you get errors like this, it would be more helpful to include the complete contents of the output window; I could have diagnosed this as a JSP error much sooner.

Quote:
Please see below the complete contents of the output window,
in addition to the applet coding.


"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


2 import objectdraw.*;

4 public class MakeBox extends WindowController
{
6 public void begin()
{

}



13 public void onMousePress(Location point)
{
15 Controller.getVersion();
16 new FilledRect(30,150,30,20,canvas);
}
}

God bless you and thank you
Stan



"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote:
Quote:
Stan Dominski wrote:

Kevin - your response is appreciated. I am a little bit confused at
this point.

You say " you will need to include the ObjectDraw library as a JAR
file in your download to the browser; it won't find it otherwise."

Kevin - The objectdraw library was downloaded to the browser and
added to the project.

I went to the Williams mary COllege web site where they give
instructions on how to make their "objectdraw" library work with
JBuilder. Below is the web address.
http://eventfuljava.cs.williams.edu/library/

It says:
... SNIP ...

I have basically done what they are talking about. The objectdraw
library has been included. ( the above instructions are obviously
based on an older version of JBuilder);

Kevin you say:
"I'm sorry, but try/catch is one of the most basic Java constructs.
At this point I recommend some books on introductory Java
programming."

I don't think the problem is a try catch block since I
did not include one in the applet. I will take your
advice and restudy that section when an appropriate
time occurs, however do you have any concrete
advice as to getting the applet to work ?

It finally occurred to me that "package does not exist" is not a Java
error. Rather, it is a JSP compiler error. This typically means that
the JSP compiler can't find the library in WEB-INF/lib. Right-click on
the web archive and make sure that the library is selected as "Include
all" in the build dependencies tab.

When you get errors like this, it would be more helpful to include the
complete contents of the output window; I could have diagnosed this as
a JSP error much sooner.

Here's a Google search that should help:

http://www.google.ca/search?q=package+%22does+not+exist%22+error+jsp

Starting tomorrow I'm away for two weeks so someone else will have to
pick up if you have any more questions.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html


Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Fri May 20, 2005 11:38 am    Post subject: Re: "package does not exist" error message HELP ! Reply with quote

Stan Dominski wrote:

Quote:
Please see below the complete contents of the output window,
in addition to the applet coding.

"MakeBox.java": package objectdraw does not exist at line 2, column 1

Thank you. By providing the complete output, we have a better idea of
what's going on.

I obviously misspoke earlier when I said this was a JSP issue; it was
the only reference I could find to the error, as I personally haven't
seen this error in months or years so have no familiarity with it.

To ensure that the ObjectDraw library is available, go to "Project |
Project Properties" and check the "Required Libraries" tab in "Paths".
Then, if it is there, click on the "Preview" tab and inspect the list
of JAR files to ensure that the JAR file itself is listed.

If you still can't get this to work, I suggest that you spend some time
with the JBuilder samples under "Help | Learning about JBuilder" to
become more familiar with the environment.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Stan Dominski
Guest





PostPosted: Fri May 20, 2005 1:27 pm    Post subject: Re: "package does not exist" error message HELP ! Reply with quote


Kevin,
Thank you very much for your response.

Your advice was:
"To ensure that the ObjectDraw library is available, go to "Project |Project Properties" and check the "Required Libraries" tab in "Paths".
Then, if it is there, click on the "Preview" tab and inspect the list of JAR files to ensure that the JAR file itself is listed."

I went to "Project | Project Properties
I clicked on the "Required Libraries" tab and I found the path
C:/Documents and Settings/Gateway User/
jbproject/stan_makebox_6/objectdraw.jar

The objectdraw library is there, however when I click on the
"Preview" tab the JAR file is not listed.

I think we are getting closer to a working solution.
Thank you in advance for a little more guidance.

God bless you
Stan


"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote:
Quote:
Stan Dominski wrote:

Please see below the complete contents of the output window,
in addition to the applet coding.

"MakeBox.java": package objectdraw does not exist at line 2, column 1

Thank you. By providing the complete output, we have a better idea of
what's going on.

I obviously misspoke earlier when I said this was a JSP issue; it was
the only reference I could find to the error, as I personally haven't
seen this error in months or years so have no familiarity with it.

To ensure that the ObjectDraw library is available, go to "Project |
Project Properties" and check the "Required Libraries" tab in "Paths".
Then, if it is there, click on the "Preview" tab and inspect the list
of JAR files to ensure that the JAR file itself is listed.

If you still can't get this to work, I suggest that you spend some time
with the JBuilder samples under "Help | Learning about JBuilder" to
become more familiar with the environment.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html


Back to top
Stan Dominski
Guest





PostPosted: Fri May 27, 2005 3:31 pm    Post subject: Re: "package does not exist" error message HELP ! Reply with quote


Dear People,
I went to Project
Default Project Properties
Opened Build-> Java

I changed the Language features to
Java 2 SDK v5.0 generics enabled

I changed the Target VM : to Java 2 SDK v5.0 and later

I openned the paths menu item and selected the
Required Libraries tab
selected ADD, New
I set the Name to rt
I set the Location to User Home

I opened the Tools menu and selected Configure -> JDKs

I clicked the "class" tab
I clicked "ADD"

A vertical directory structure appeared.
I selected:
C:/Documents and Settings/Gateway User/.jbuilder2005/re.library

when I clicked "OK" this path jumped up to the top of my screen
and at the bottom of my screen the blicnking cursor waited
for me to type in a name. I didn't know what to do, so I typed
in nothing and hit "OK"

Then I thought that maybe I needed to type in a name, so I went
back and did the same sequence and this time when the blinking cursor waited for me to type in a name I typed in Java 1.5

Then I got a popup that said :
"Java 1.5 does not exist . Accept anyway ?
I clicked on "yes"

Now I see under the class tab at the bottom of the list

C:/Documents and Settings/Gateway User/.jbuilder2005/rt.library
C:/Documents and Settings/Gateway User/.jbuilder2005/rt.library/
Java 1.5

Now when I try to run a simple applet I get error messages that say:

error reading C:Documents and SettingsGateway User.jbuilder2005rt.library; java.util.zip.ZipException: error in opening zip file
error reading C:Documents and SettingsGateway User.jbuilder2005rt.library; java.util.zip.ZipException: error in opening zip file
"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


Here is the applet coding:

import objectdraw.*;

4 public class MakeBox extends WindowController
{
6 public void begin()
{

}



13 public void onMousePress(Location point)
{
15 Controller.getVersion();
16 new FilledRect(30,150,30,20,canvas);
}
}

Your advice is needed.
God bless you and thank you.
Stan

Quote:

Kevin,
Thank you very much for your response.

Your advice was:
"To ensure that the ObjectDraw library is available, go to "Project |Project Properties" and check the "Required Libraries" tab in "Paths".
Then, if it is there, click on the "Preview" tab and inspect the list of JAR files to ensure that the JAR file itself is listed."

I went to "Project | Project Properties
I clicked on the "Required Libraries" tab and I found the path
C:/Documents and Settings/Gateway User/
jbproject/stan_makebox_6/objectdraw.jar

The objectdraw library is there, however when I click on the
"Preview" tab the JAR file is not listed.

I think we are getting closer to a working solution.
Thank you in advance for a little more guidance.

God bless you
Stan


"Kevin Dean [TeamB]" <NkOdSePaAnM (AT) datadevelopment (DOT) com> wrote:
Stan Dominski wrote:

Please see below the complete contents of the output window,
in addition to the applet coding.

"MakeBox.java": package objectdraw does not exist at line 2, column 1

Thank you. By providing the complete output, we have a better idea of
what's going on.

I obviously misspoke earlier when I said this was a JSP issue; it was
the only reference I could find to the error, as I personally haven't
seen this error in months or years so have no familiarity with it.

To ensure that the ObjectDraw library is available, go to "Project |
Project Properties" and check the "Required Libraries" tab in "Paths".
Then, if it is there, click on the "Preview" tab and inspect the list
of JAR files to ensure that the JAR file itself is listed.

If you still can't get this to work, I suggest that you spend some time
with the JBuilder samples under "Help | Learning about JBuilder" to
become more familiar with the environment.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Applet Issues All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.