NetBeans Forums

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

Unknown fail in the construction

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



Joined: 28 Jul 2016
Posts: 11

PostPosted: Tue Feb 14, 2017 8:12 pm    Post subject: Unknown fail in the construction Reply with quote

Hi,
A have a moderately simple program in java+netbeans8.1 that work ok when all the code is inside the main call. But now I moved all to a recursive class and because that I got a failure in construction, however I don't get any clue where is the problem, or how to fix it.

follow my code:

Code:
package MyProject;

import ...
...
import ...

public class Network {

    public static void RecursiveTest(String DBName) throws ClassNotFoundException, SQLException, IOException, InterruptedException{
/*lots of tested code that run in main but not here*/
}
   
    public static void main(String[] args) throws ClassNotFoundException, SQLException, IOException, InterruptedException {
            RecursiveTest("ADatabaseName");
    }//main
   
}//public class MyProject


When I run I have a popup window warning the project was compiled with errors, and allow terminate without compile. Finally I get the output:

run:
/home/user/.cache/netbeans/8.1/executor-snippets/run.xml:48:
Cancelled by user.
FALHA NA CONSTRUÇÃO (tempo total: 9 segundos)


But I didnt understand yet how to fix the error.
Anyone?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE 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