• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java files and corrupt project file in netbeans

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
peter hammond
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.....
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
peter hammond
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
peter hammond
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic