NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
captain_arepa
Joined: 18 Jul 2011 Posts: 1
|
Posted: Mon Jul 18, 2011 4:42 pm Post subject: .jar executable issue |
|
|
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
|
Posted: Sun Jun 17, 2012 6:24 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|