aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes java files and corrupt project file in netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "java files and corrupt project file in netbeans" Watch "java files and corrupt project file in netbeans" New topic
Author

java files and corrupt project file in netbeans

peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
hey i am new here and in need of serious help....

i was using netbeans to create a GUI based program and my comp died so i done a sys restore and for some reason the damm thing has deleted my project.....

i have a compliled executable version of my program but it is tons of .class files and netbeans wont touch the project now....

has everything been lost?? is there a way to recover the project or is is a matter of decompilling the .class files and get what code i can out of it???

it was a project with over 15k lines of code and took months to make ...

please any help will save my life....

P>S SORRY IF POST IN WRONG PLACE...
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 563
Man, that sucks! I don't have a solution for you, but I'm sorry for your loss, if it turns out to be a loss. Your post did some good though. I have a similarly-sized project that I've been working on for months, and your post caused me to do a backup of all source files.

Netbeans deleted the project folder and all source files? Without a warning and confirmation? That doesn't seem right.

I hope you find a simple, quick way to recover.


Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
it wasnt netbeans that deleted and corrupted the sources it was windows restore .....

for some reason i couldn't boot so i done a system restore and for some reason all the .java files and the project file were deleted.courrpted and wouldnt load back into beans.....

BACKUP BACKUP EVERYTIME YOU CHANGE SOMETHING.......

by a bizzare twist of good fortune i found an early version of my program on a usb stick i used to take to work...

so what i have done is create a new project with the same name as the program before......
then copyed over some parts of the early version of it
------
now i need to decrypt the .class files and copy out the code i need back to .java and add that to the new package....

ouch did learn alot tonight.....

if anyone else has a faster method please post as my method is all i can think of at the mo and been working on it non-stop for 4hrs odd and still got tons to do...

hehe well you live and learn......

oh turn of system restore on connected backup drives.....
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19760
    
  20

You could try to run a recovery tool (Recuva is a free one) and see if it can still find the Java files. If the physical location on the disk hasn't been overwritten yet there is a chance you can still get the original data. If not you could also try more expensive recovery means, but you would have to decide if the costs are worth it.

I'll move this thread to General Computing since it's Windows that caused the problem, not NetBeans or anything Swing related.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
ok gave that a try no joy but is a great program will keep that for future use ta...

will keep on decrypting the class and nab the code and rebuild it.... atleast i can do that if i lost it all really would have cryed....
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

Try a Java decompiler. That should do a decent job of converting the class files back into java source files. You won't have all of your comments (unless you generated javadoc somewhere).


JBoss In Action
peter hammond
Ranch Hand

Joined: Apr 20, 2011
Posts: 41
cool thanks will give it a look have grabbed DJ Java Decompiler 3.11 and got all the code i needed out of it and now rebuilding all the actionlistners manually....

ide's are great to speed things up but you get lazy after using them...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java files and corrupt project file in netbeans