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 

deletion of classes

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Compiler
View previous topic :: View next topic  
Author Message
Haegens Nico
Guest





PostPosted: Sat Nov 20, 2004 2:18 pm    Post subject: deletion of classes Reply with quote



Everytime I compile one of my classes, JBuilder deletes the class-files
needed by those classes. I solved it, but I had to take a detour:
I have a class named Menu which extends HttpServlet. Since Borland -by my
limited knowledge- does not support HttpServlet, I have added the needed
class-files in the classes-directory of my project. Then I go to Windows
Explorer, go to the directory classes, select the javax directory,
contextmenu sharing & security, tab security. Then I press advanced, add. I
type Everyone in the textbox, I press ok, then I check the checkbox "delete"
& "delete subdirectories & files" in the deny column. I press ok three
times. Then I go back to JBuilder, select the Menu.java file, goto Project,
Make "Menu.java".

No my question: WHY JBuilder deletes my servlet-classes when I press the
compile button, unless I do what I did? I also would like to know if
JBuilder supports servlets and if so, how do I tell JBuilder I need a
servlet.
Nico.


Back to top
Paul Furbacher [TeamB]
Guest





PostPosted: Sat Nov 20, 2004 4:02 pm    Post subject: Re: deletion of classes Reply with quote



Haegens Nico wrote:

Quote:
Everytime I compile one of my classes, JBuilder deletes the class-files
needed by those classes. I solved it, but I had to take a detour:
I have a class named Menu which extends HttpServlet. Since Borland -by my
limited knowledge- does not support HttpServlet,

Borland doesn't *support* HttpServlet -- no IDE does --
but all editions but Foundation *supply* it and many
other third-party libraries.

HttpServlet is an interface defined in the servlet.jar
which ships with Tomcat, JBoss, all other Web app servers,
the JWSDK from Sun, and so on. This is where you have
to start doing some reading on the Internet and in
books that you actually buy or browse for extended
periods in your local bookstore's coffee bar.

To be able to reference it in your code, you need to
add the library in which it is found. Read the
section on "configuring and using libraries" in the
JBuilder Help.

Quote:
I have added the needed
class-files in the classes-directory of my project. Then I go to Windows
Explorer, go to the directory classes, select the javax directory,
contextmenu sharing & security, tab security. Then I [... oh, my ...]

JBuilder clears those classes out for a reason:
your class output folder needs to be cleaned
if you don't want to have some potentially
nasty artifacts that will bedevil you and
greatly increase hair-pulling and banging
against the wall.

Quote:
Now my question: WHY JBuilder deletes
my servlet-classes when I press the
compile button, unless I do what I did?

Read the manual -- it's in there. See
"Synchronize Output Dir" via the "Standard
Compiler Options" link in the "Setting Compiler
Options" section in the JBuilder 2005 Help.
(Index tab: "compilers", see "setting
options" index sub-entry.)

Quote:
I also would like to know if
JBuilder supports servlets and if so,
how do I tell JBuilder I need a
servlet.

Editions more expensive than Foundation "support"
servlet, or more appropriately, Web application
development, out of the box. With Foundation,
you can write servlets, JSPs, ..., anything in
Java, but you have to put the pieces together.
That would mean that you would download something
like Tomcat ([url]http://jakarta.apache.org/tomcat)[/url],
read the JBuilder Help about "configuring and
adding libraries", read about Tomcat on its
Web site and elsewhere on the Internet and
in books, and so on.


--


Paul Furbacher (TeamB)

Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html

Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Compiler 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.