My project wont run in netbeans?

  • (2 Pages)
  • +
  • 1
  • 2

22 Replies - 4081 Views - Last Post: 13 November 2011 - 09:36 PM Rate Topic: -----

#16 Talcik   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 48
  • Joined: 13-November 11

Re: My project wont run in netbeans?

Posted 13 November 2011 - 08:00 PM

View Postpbl, on 13 November 2011 - 07:56 PM, said:

Don't want you to upload your .jar
Want you to show us what your .jar contains by executing and showing us the output of the command

> jar tf Banko.jar



Sir I believe you are asking for my output when I try to compile the code (because I cannot run it since there is not main class). (sorry if im frustrating you for not understanding, exactly what you want but anyway when I go to build my code in my output box i recieve this

(sorry I dont know if i should code this or not)

init:
deps-clean:
Updating property file: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\built-clean.properties
Deleting directory C:\Users\Rich\Documents\NetBeansProjects\Banko\build
clean:
init:
deps-jar:
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build
Updating property file: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\built-jar.properties
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\classes
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\empty
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\generated-sources\ap-source-output
Compiling 3 source files to C:\Users\Rich\Documents\NetBeansProjects\Banko\build\classes
Copying 1 file to C:\Users\Rich\Documents\NetBeansProjects\Banko\build\classes
compile:
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\dist
Copying 1 file to C:\Users\Rich\Documents\NetBeansProjects\Banko\build
Nothing to copy.
Building jar: C:\Users\Rich\Documents\NetBeansProjects\Banko\dist\Banko.jar
To run this application from the command line without Ant, try:
java -jar "C:\Users\Rich\Documents\NetBeansProjects\Banko\dist\Banko.jar"
jar:
BUILD SUCCESSFUL (total time: 0 seconds)
Was This Post Helpful? 0
  • +
  • -

#17 Talcik   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 48
  • Joined: 13-November 11

Re: My project wont run in netbeans?

Posted 13 November 2011 - 08:06 PM

View PostTalcik, on 13 November 2011 - 08:00 PM, said:

View Postpbl, on 13 November 2011 - 07:56 PM, said:

Don't want you to upload your .jar
Want you to show us what your .jar contains by executing and showing us the output of the command

> jar tf Banko.jar



Sir I believe you are asking for my output when I try to compile the code (because I cannot run it since there is not main class). (sorry if im frustrating you for not understanding, exactly what you want but anyway when I go to build my code in my output box i recieve this

(sorry I dont know if i should code this or not)

init:
deps-clean:
Updating property file: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\built-clean.properties
Deleting directory C:\Users\Rich\Documents\NetBeansProjects\Banko\build
clean:
init:
deps-jar:
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build
Updating property file: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\built-jar.properties
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\classes
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\empty
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\build\generated-sources\ap-source-output
Compiling 3 source files to C:\Users\Rich\Documents\NetBeansProjects\Banko\build\classes
Copying 1 file to C:\Users\Rich\Documents\NetBeansProjects\Banko\build\classes
compile:
Created dir: C:\Users\Rich\Documents\NetBeansProjects\Banko\dist
Copying 1 file to C:\Users\Rich\Documents\NetBeansProjects\Banko\build
Nothing to copy.
Building jar: C:\Users\Rich\Documents\NetBeansProjects\Banko\dist\Banko.jar
To run this application from the command line without Ant, try:
java -jar "C:\Users\Rich\Documents\NetBeansProjects\Banko\dist\Banko.jar"
jar:
BUILD SUCCESSFUL (total time: 0 seconds)


I never had the task window open sir, my apologies but I noticed a warning in the task window that said

Warning The "applet" element is obsolete. Use the "object" element instead. From line 1, column 1; to line 5, column 17 (Rule Category: Obsolete) Banko.html C:/Users/Rich/Documents/NetBeansProjects/Banko/src/com/java24hours/banko/Banko.html:1
Was This Post Helpful? 0
  • +
  • -

#18 pbl   User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8381
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: My project wont run in netbeans?

Posted 13 November 2011 - 08:59 PM

View PostTalcik, on 13 November 2011 - 11:00 PM, said:

Sir I believe you are asking for my output when I try to compile the code (because I cannot run it since there is not main class).

An Applet does not have a main() method
And there is not such a thing/concept as a main class
Was This Post Helpful? 1
  • +
  • -

#19 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12800
  • View blog
  • Posts: 45,992
  • Joined: 27-December 08

Re: My project wont run in netbeans?

Posted 13 November 2011 - 09:01 PM

It sounds like you are trying to run your Applet as a regular program. Which is why I included my bit about creating a JFrame, so that you can run it as a regular program.
Was This Post Helpful? 1
  • +
  • -

#20 Talcik   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 48
  • Joined: 13-November 11

Re: My project wont run in netbeans?

Posted 13 November 2011 - 09:13 PM

Well, thank you both But i just bought head first into java, and going to have to relearn everything because obviously I do not know enough.


Thank you for your help Im sure youll both be seeing me post again.
Was This Post Helpful? 0
  • +
  • -

#21 macosxnerd101   User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12800
  • View blog
  • Posts: 45,992
  • Joined: 27-December 08

Re: My project wont run in netbeans?

Posted 13 November 2011 - 09:15 PM

Glad we could help! :)
Was This Post Helpful? 0
  • +
  • -

#22 Dogstopper   User is offline

  • The Ninjaducky
  • member icon

Reputation: 2975
  • View blog
  • Posts: 11,224
  • Joined: 15-July 08

Re: My project wont run in netbeans?

Posted 13 November 2011 - 09:23 PM

View PostTalcik, on 13 November 2011 - 11:13 PM, said:

Well, thank you both But i just bought head first into java, and going to have to relearn everything because obviously I do not know enough.


Thank you for your help Im sure youll both be seeing me post again.


I'm glad you realize that you may have tried to bite off more than you can chew. I'm sorry that you had a bad experience. GENERALLY speaking, Teach yourself X language in Y hours/days/months are not great books to learn in depth, as they brush the surface on many different topics. I prefer books like "Core Java" and "Core Python", as they teach in depth from the start.

I wish you luck, and I hope you have a good second experience.
Was This Post Helpful? 1
  • +
  • -

#23 Talcik   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 48
  • Joined: 13-November 11

Re: My project wont run in netbeans?

Posted 13 November 2011 - 09:36 PM

View PostDogstopper, on 13 November 2011 - 09:23 PM, said:

View PostTalcik, on 13 November 2011 - 11:13 PM, said:

Well, thank you both But i just bought head first into java, and going to have to relearn everything because obviously I do not know enough.


Thank you for your help Im sure youll both be seeing me post again.


I'm glad you realize that you may have tried to bite off more than you can chew. I'm sorry that you had a bad experience. GENERALLY speaking, Teach yourself X language in Y hours/days/months are not great books to learn in depth, as they brush the surface on many different topics. I prefer books like "Core Java" and "Core Python", as they teach in depth from the start.

I wish you luck, and I hope you have a good second experience.


Thank you sir,
And When stuff hits the fan, everyone eventually has to realize that maybe they should correct themselves and ensure they are properly educated on the topic before trying to seek help with a matter that they think they understand. As for me I failed to realize that I was taking on too much. As for now, im trying this "Head First Java" book, I heard some really good reviews, and hopefully it can expend the "brush the surface" topics that I learned in my other book. If not then I guess Im going to have to go to "Core Java." But Hopefully from there I can start taking classes on it in school, like I have been wanting too.
Was This Post Helpful? 1
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2