Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / September 2003

Tip: Looking for answers? Try searching our database.

Eclipse is deliting my ".class" files from project

Thread view: 
Dejan Mratinkovic - 16 Sep 2003 10:27 GMT
I am new with Eclipse, I was using Forte. I like it because it is
faster, specially the debugger. But I have problems with it.
I have an old project with great number of classes but with no source.
When I open new project in Eclipse, and put dir with old project as
project dir, it deletes all the ".class" files. Even when I create
project, and copy class from backup, then go to project to do
"refresh" it deletes ".class" files. Can I turn off this option
somehow? If not, can you tell me the solutions for this problem?
Robert Klemme - 16 Sep 2003 12:01 GMT
How about putting them into a JAR?

   robert

> I am new with Eclipse, I was using Forte. I like it because it is
> faster, specially the debugger. But I have problems with it.
[quoted text clipped - 4 lines]
> "refresh" it deletes ".class" files. Can I turn off this option
> somehow? If not, can you tell me the solutions for this problem?
Jon Skeet - 16 Sep 2003 12:37 GMT
> I am new with Eclipse, I was using Forte. I like it because it is
> faster, specially the debugger. But I have problems with it.
[quoted text clipped - 4 lines]
> "refresh" it deletes ".class" files. Can I turn off this option
> somehow? If not, can you tell me the solutions for this problem?

Don't keep them in the same area as your output or your class files.
Keep them in a separate directory under your project, and add that
directory to the build path.

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Dave Stallard - 25 Sep 2003 16:02 GMT
> I am new with Eclipse, I was using Forte. I like it because it is
> faster, specially the debugger. But I have problems with it.
[quoted text clipped - 4 lines]
> "refresh" it deletes ".class" files. Can I turn off this option
> somehow? If not, can you tell me the solutions for this problem?

I had the same problem with it.  I tried Eclipse hoping for a
better-performing IDE than JBuilder, but eventually gave up on it.  Too
complicated, and too many nasty surprises like this one.  I keep looking
at it to see if it's improved, but I guess it hasn't.

  Dave
manfred r - 26 Sep 2003 10:27 GMT
There are several ways to do it

- use a separate directory for your class-files and add it to the
projects  build path

- jar the classes into a jar-file and add it to the projects build
path
 (I would recommend this)

- under preferences you can opt to not delete build-folders on
complete
 rebuilds (exactly what you are asking, but I do not recommend it -
 clean builds are a good thing to do from time to time )

hope this helps,

Manfred
http://www.regele.org

> I am new with Eclipse, I was using Forte. I like it because it is
> faster, specially the debugger. But I have problems with it.
[quoted text clipped - 4 lines]
> "refresh" it deletes ".class" files. Can I turn off this option
> somehow? If not, can you tell me the solutions for this problem?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.