NetBeans Forums

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

.jar executable issue

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



Joined: 18 Jul 2011
Posts: 1

PostPosted: Mon Jul 18, 2011 4:42 pm    Post subject: .jar executable issue Reply with quote

Hi there, people. I'm not new to Netbeans IDE, but I'm starting with Java, and I have a issue with the .jar files. Since I'm completely new to this language, I started with the tutorials (NumberAddition). I followed all the steps verbatim, and generated the .jar, but when I double clicked it, it launched the Nokia Ovi Suite

After reading a bit, I successfully changed the file association via cmd and unistalled the Ovi Suite (just in case), but now that I double-click the file, it won't even run. It doesn't even appear on the processes. I'm using Windows 7 Pro 64-bit edition. I'd be grateful of any tip/help provided.

Cheers!
Back to top
rigman



Joined: 17 Jun 2012
Posts: 2

PostPosted: Sun Jun 17, 2012 6:24 pm    Post subject: Reply with quote

I know this is an old post, but I found the answer to this issue on another thread and I am posting here so it might help someone else.

When creating the NumberAddition project, make sure that "Create Main Class" is "NOT" selected. With this selected you end up with two main classes. One in NumberAddition.java and one in NumberAdditionUI.java.

You can delete the one in NumberAddition.java and build again and it should now run.
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 can 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