NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't rename the package

Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message

Joined: 04 Apr 2012
Posts: 2

PostPosted: Thu Sep 05, 2013 10:50 pm    Post subject: Can't rename the package Reply with quote

I have a big project called SpreadsheetTestManager that works.
I am programming OpenOffice so I have a default package called with default classes.
I also have "my" package called com.example with my classes.
I wanted to try to modify something and to not screw it all up, so I did:
right click on the project-->Copy-->SpreadsheetTestManager_Modified
Now I have the project SpreadsheetTestManager_Modified and I wanted to rename the package (com.example). I renamed (refactor) it to STM.
When I launch I have this:

Exception in thread "main" java.lang.ClassNotFoundException: com.example.ProblemSolving
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Java Result: 1

ProblemSolving is my main class.
I don't understand why it keeps searching for com.example.
I also re-clean and re-build.
I opened the Loader class (not mine but a default one) and I noticed that the problem is that this line
className = System.getProperty("Application-Class");

gives to className the string : com.example.ProblemSolving instead of STM.ProblemSolving.
Can you help me? I am not a pro at all so please be nice
Thank you Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users 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
You cannot attach files in this forum
You can download files in this forum

Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo