NetBeans Forums

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

Target "init" does not exist in the project "". It is used from target "profile-init".

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



Joined: 10 Sep 2010
Posts: 3

PostPosted: Fri Sep 10, 2010 7:19 am    Post subject: Target "init" does not exist in the project "". It is used from target "profile-init". Reply with quote

Hi all
i run the profiler and i get this error, before of this i have to manually add

Code:
<import file="nbproject/profiler-build-impl.xml"/>:maven-artifact-ant">


on my build.xml

How i can solve the problem?
Have the target init to be in the build.xml or where ?



Thanks!!!
Back to top
pedro.riky



Joined: 10 Sep 2010
Posts: 3

PostPosted: Fri Sep 10, 2010 7:57 am    Post subject: Reply with quote

I remove the call at init target and it goes away but i have another error when i run the profiler

Could not find the main class: ${main.class}. Program will exit


why?
Back to top
Cride5



Joined: 18 Jan 2011
Posts: 2

PostPosted: Tue Jan 18, 2011 11:56 am    Post subject: Reply with quote

The problem is that the profiler's build script depends on the 'init' target from the main project build file 'build.xml'. If the build.xml file has been changed, and the 'init' target removed, then the profiler will not be able to start.

As a fix, try adding this to your project's build.xml file:

Code:

<import file="nbproject/profiler-build-impl.xml"/>
<import file="nbproject/build-impl.xml"/>
<target depends="-do-init" name="init"/>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Profiler 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