Really new at this

Okay, I am trying to call a method from my "main" method, but am getting errors. When I compile I get "non-static method <method name> cannot be referenced from a static context." what does this mean, and what do I do to get around this?

The clue is in the error
You have a method wich is declared static. Within
this method you are trying to access a variable
(possibly a class variable), which has not been
declared static. To fix it, either remove the static
declaration from the method or make the variables you
are acessing staticWell, <main> has to be static, so if you are calling methods from main, then the method has to be static.
Usually (just a programming practice), you don't call methods from main (except static methods, of course). Main is written in a class, so call constructor of that class and call methods from the constructor (which I assume you are doing some kind of innitialisation?)

Similar Messages

  • Pardon me, I'm really new at this, but...

    My first crack at using Garage Band went well enough just fooling around and laying down some tracks, (bass, rhythm and vocal) using my iMac's built in mic...I wasn't looking for anything great; just trying to see how everything works.
    But days later when I tried to repeat the first effort I found that my guitar and vocals were being played back in a different key...wierd...I tried adjusting the key using the "Master" thingo but no other key matched reality.
    On top of that...the inbuilt tuner is way off...it doesn't come close to reality (and I've got dozens of guitar tuners with which to verify that).
    Where have I gone wrong?
    Help!

    when you use siri, are you opening the internet connection. the poor internet connection also happen like that.

  • My mini died. bought one used from a friend... all of my songs and books are on my iPhone, and I cant figure out how to get them onto this new computer. this is frustrating. the things i really want are purchases I've made from itunes store... help

    My mini died. bought one used from a friend... all of my songs and books are on my iPhone, and I cant figure out how to get them onto this new computer. this is frustrating. the things i really want are purchases I've made from itunes store... help
    !!!!!

    Hey kevyg3,
    I was able to find an article that I believe will help you move your iTunes purchases from your iPhone over to your new computer:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Hope this helps,
    David

  • Hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    hey, im really sick of this, how can i open folders but in the same windows, when i open a folder which is inside of another one, it just open me a new window, its so annoying, could anyone tell me what to do? im using mac os 10.7.2

    Finder > Preferences > General > Always open folders in a new window: uncheck

  • Siri, Read New Msgs: "I'm really sorry about this, but..."

    Help! Whenever I ask Siri (iPhone 5S) to read new messages it always replies with the "I'm really sorry about this but I cant take any requests right now. Please try again in a little while." message.  Network doesn't matter, happens on Wifi or LTE or 4G.  Siri on my iPad has no problem reading messages aloud. Have reset the device with no effect.  

    Seems like we have another outage.  Down for me as well.  Hopefully, it won't last for days.
    @Apple, you really do need to add Siri Status to the iCloud status page.  Would help a lot. 

  • I am new to this. How do I get my movie from my computer to the tv. I have apple tv.  I am really dumb when it comes to this stuff.

    I am new to this. How do I get my movie from my computer to the tv. I also have apple tv.

    In iTunes turn on homesharing.
    On your ATV turn on homesharing.
    The ATV should then see your computer as long as you enter the same id on both machines.
    Your content should then appear under the computer setting on the ATV, then watch away...

  • What's new in this N70's Firmware ???

    I want to update my Firmware to V.50638.3.0.1 - 18-09-06 - RM-84, but I don't know what's new in this Firmware ?
    In old Firmware, I saw the countdown time to turn off light is not correct (always 35 seconds and more although I changed it to 5 seconds), and I want to ask everyone that: Is that correct in new Firmware ?
    Sorry for my English, it's not good, I'm Vietnamese !

    Hi Neil,
    you are correct. The Custom HTML Store that we have developed worked just fine. What about Custom HTML Libraries?
    I compared the file AdobeLibraryAPI.js from r23 and r25 and they are quite different.
    Up to r24, the Custom HTML Library was incompatible with Custom HTML Store. Apparently, the Store API (adobe.dps.store) was replaced by the Library API (adobeDPS.libraryService). Can you confirm if this is still the case?
    Also, I really need a way to switch from one application state to another, something like adobe.dps.store.goToLibrary() or adobe.dps.store.goTo('library'). Is there anyway to achieve this? Maybe using the Library API?
    Thanks a lot for your help. Cheers!
    PS: I'm from Amsterdam. The time difference is just annoying.

  • I'm new to this! My old mac 0sx 10.2.8 won't switch on. Not sure where to start to fix it? I am totally useless when it comes to computing, can anyone help me please!!

    Hi, I am new to this support site so forgive me if I am doing it wrong but I have a problem that I am at a loss as what to do. My (very) old mac 10.2.8 won't switch on..I really only use it for music , there is a vast amount of music stored in it and am heartbroken that it won't even switch on. I have no idea where to start on trying to fix it. Can somebody please help me on where to start on fixing it

    You might want to try resetting its power management unit; see the following tech notes:
    http://support.apple.com/kb/HT1895
    http://support.apple.com/kb/HT1379
    The reason I'm suggesting this is that some startup settings are stored and preserved by a tiny battery that lasts about 5 years, inside the computer. When that battery dies, the computer may forget things like what time it is and which disk to start up from. If your Mac is around 5 years old or more, that little battery might be on its way out.
    If you can't revive the Mac, don't panic. You can remove its internal hard drive and put it inside a USB/FireWire enclosure so that it can be hooked up to another Mac, and then you can use or copy all of the files and music off of it (assuming the startup problem has nothing to do with the hard drive).

  • I have just became an Apple Developer and new to this whole developing thing.

    I have just became an Apple Developer and new to this whole developing thing. I became an apple developer to support what I'm doing.I just graduated high school and became a self learning video producer. I created videos since I first got into high school and that was my major. I'm planning on making a podcast channel. What I'm really asking is, how do I create an app for my website for older version iOS device (at least iOS 3 or iOS 4)???

    etresoft wrote:
    If you want to make apps, you will need a Mac.
    Three of my friends told me I can use a windows to create apps.... they told me about this site: http://mobile.conduit.com/

  • Hello Everyone, I'm new to this forum and I'm pretty igno...

    Hello Everyone, I'm new to this forum and I'm pretty ignorant when it comes to networking so please bear with me. I have a WRT54GS w/SpeedBooster. My family an I recently took a trip. We've been getting a lot of bad weather here in the Midwest so I chose to unplug everything when we left. I fired up my laptop tonight and it did not automatically connect to my network like it usually does so I refreshed the network list and mine will not show up. However, an unsecured network with a really good signal does show up (I'm not sure if it's mine or not). Anyway, this has never happened before so I don't know where to start. Any help would be greatly apprciated. Thanks. Jon

    Use your desktop to set up your wireless network.
    XP
    go to My Network Place. You will see a monitor next to a globe with the name Linksys wrt54gs.  click on it and it will take you to the sign in page for your router.
    Vista
    Go to Network.  You will see router Linksys wrt54gs.  right click on it, then click on view device webpage.  you will be on the sign in page for your router.
    Use admin or your password to sign in
    Next click on wireless
    Set wireless mode to mixed
    Change network name from linksys to ?
    enable ssid
    save settings 
    click on wireless security
    Set security mode to wpa2 personal
    Set new password
    save settings
    Go to laptop
    Find new network
    right click on network name
    click on properties
    change your properties to match those on router under wireless security
    Greetings from Northern Ontario, Canada

  • Really new to Weblogic - trying to install WAR

    Hi,
    I am really new to Weblogic, and I am trying to get a web application
    that I've been given to work with Weblogic 8.1 on Windows 2000 Server.
    I just installed Weblogic 8.1 today, then I've configured a Weblogic
    configuration. I then copied the WAR file to the
    C:\bea\user_projects\domains\mydomain\applications directory, and then
    executed c:\bea\user_projects\domains\mydomain\startWebLogic.cmd.
    This causes a command window to open, with the output of the Weblogic
    startup, and I'm getting some "Warning" messages about the Weblogic.xml
    being malformed:
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000355>
    <Thread "Lis
    tenThread.Default" listening on port 7080, ip address 192.168.0.232>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000331>
    <Started Web
    Logic Admin Server "myserver" for domain "mydomain" running in
    Development Mode>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000360>
    <Server star
    ted in RUNNING mode>
    <Feb 7, 2005 8:04:00 PM EST> <Warning> <HTTP Session> <BEA-100061> <Web
    applicat
    ion: ServletContext(id=30856733,name=admingui,context-path=/admingui)
    tried to p
    lace a non-serializable attribute: scmApplication into the session:
    CIP2ZDiP7WYa
    bsU2sr3emRk9TcS821XyWrIM1WfbDeCp1XD9o3z3!-690527957!1107824638218. This
    attribut
    e will be lost upon redeployment. This message is logged only once per
    session.>
    The funny thing is that the application still seem to (somewhat) work,
    i.e., if I point my browser to http://<myhost>:7080/admingui, I get the
    page displayed, etc.
    However, Weblogic is not exploding the WAR.
    Is this (the WAR not being exploded) happening because of the warning
    messages?
    If that's the case, then how do I fix the problem in the Weblogic.xml
    file, since it hasn't been extracted?
    Also, can anyone tell me what the problem with that XML file might be?
    Thanks,
    Jim

    Hi,
    For the record, I was just able to get this working by doing the
    following:
    1) Create a directory called "DefaultWebApp" under the "applications"
    directory
    2) Copy the WAR file to the DefaltWebApp directory
    3) Unzip the WAR file in-place
    4) After I unzipped the WAR file, I was able to fix the weblogic.xml
    file in the WEB-INF directory
    5) Once I did all that, WebLogic seems to be happy (no warnings).
    Jim
    ohaya wrote:
    >
    Hi,
    I am really new to Weblogic, and I am trying to get a web application
    that I've been given to work with Weblogic 8.1 on Windows 2000 Server.
    I just installed Weblogic 8.1 today, then I've configured a Weblogic
    configuration. I then copied the WAR file to the
    C:\bea\user_projects\domains\mydomain\applications directory, and then
    executed c:\bea\user_projects\domains\mydomain\startWebLogic.cmd.
    This causes a command window to open, with the output of the Weblogic
    startup, and I'm getting some "Warning" messages about the Weblogic.xml
    being malformed:
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000355>
    <Thread "Lis
    tenThread.Default" listening on port 7080, ip address 192.168.0.232>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000331>
    <Started Web
    Logic Admin Server "myserver" for domain "mydomain" running in
    Development Mode>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000360>
    <Server star
    ted in RUNNING mode>
    <Feb 7, 2005 8:04:00 PM EST> <Warning> <HTTP Session> <BEA-100061> <Web
    applicat
    ion: ServletContext(id=30856733,name=admingui,context-path=/admingui)
    tried to p
    lace a non-serializable attribute: scmApplication into the session:
    CIP2ZDiP7WYa
    bsU2sr3emRk9TcS821XyWrIM1WfbDeCp1XD9o3z3!-690527957!1107824638218. This
    attribut
    e will be lost upon redeployment. This message is logged only once per
    session.>
    The funny thing is that the application still seem to (somewhat) work,
    i.e., if I point my browser to http://<myhost>:7080/admingui, I get the
    page displayed, etc.
    However, Weblogic is not exploding the WAR.
    Is this (the WAR not being exploded) happening because of the warning
    messages?
    If that's the case, then how do I fix the problem in the Weblogic.xml
    file, since it hasn't been extracted?
    Also, can anyone tell me what the problem with that XML file might be?
    Thanks,
    Jim

  • Will there be a new iPod this fall?

    I really need a new iPod this fall, I can't wait until next year(if that's when it will be refreshed). Please tell me a new one will come out this fall.

    Sorry for disappointing but a new ipod will not be out this fall as ipod 5g has already been launched few months back so you gotta wait for sometime

  • Relatively new to this...

    Hello, Im a new programmer, very new actually, heh. After constructing my first example of an applet, and compiling it, I tried to include it into a web page on my hard drive, the .class file being in the same folder and everything with the .html file, yet it tells me it cant find the class. Now, Im new to this forum, and Im not sure if this is the place to post, and I know some might not want to play "tech support" too. Anyone know whats going on though? The compiler gave no errors, Im running IE 6.0 with Java 2 support (I would assume), and I can even view my applet within JBuilder 5's applet viewer-deal. My example has been "reduced" to mimic exactly that of the book itself, and I dont know, Im just lost. If anyone can help, I'd appreciate it, thanks.

    Stemco, was was that about using a converter? I did extend my applet from the javax.swing.JApplet import-dealie, instead of the java.applet.Applet one, so I need to convert it or something? Sam's "Learn Java in 21 Days" didnt mention that really at all. And thanx SpinozaQ, I guess I'll look for a Java 2 VM somewhere, I didnt know Microsoft couldnt include those. Supposedly I downloaded Microsofts latest VM when I stried to fix my problem, (I had a hunch that was the problem), and it still didnt work and I was a wee confused. Sux though, because this book assumes Java 2 capabilty, and no one seems to run that by default! Thanx you two, I'll get back to work now ;). Ha, and yeah, I do know what happens when you assume....

  • Hi, i am really new to photoshop and i have a design which i need to have the background made transparent? can anyone assist please?

    hi, i am really new to photo shop and i have a logo design which i need to have the background made transparent from a white square? can anyone assist please?
    i have already got the image on my screen but cant seem to find the tool in which to make it transparent as i do with other softwares.

    hi aknaloku,
    is the background apart of your image or is the image on a different layer?
    if the white background is on a different layer you can simply delete the layer for the layers window which you can find in Window>Layer. you will need to delete the background layer by dragging it into the little rubbish bin icon down the bottom right of the layers window.
    i hoped this helped
    Matty

  • Dumb question but I'm new to this

    Hello all, what is the difference between saving a song as a song or project,,what is the benefit if any of saving it as a song?,, stupid question i know but i'm new to this stuff-- thanks!

    1. There are very few times when saving as a song would be prefered (making a backup or template maybe). When you open a new song, save it as a project the first time. After that, you can just hit "save".
    2. You should delete any audio you don't need from the Audio window. If you just delete it from the Arrange view, it's really not deleted, the regions are just removed. It's best not to delete audio from the Finder either, but to use the Audio window. In the Audio window there's an option Edit > Select Unused that shows which regions and files are not being used. Then select Audio File > Delete File(s).
    Dual 2.5Ghz 2004; 2.5GB RAM   Mac OS X (10.4.8)  

Maybe you are looking for

  • PDF maker issue in Leopard and Word 2004

    I just upgraded from 10.4 to 10.5.8, Acrobat Pro 8.1.6, Word 2004 (11.3.8). When using Word in 10.4, the PDF Maker toolbar worked fine. Now in Leopard, using the PDF Maker button, I get an error that the printer is not present. But it is there and I

  • Save Report in SAP b1 from Crystalreport Addon failed

    Hi, when I try to save a report which is loaded from b1 in Crystal reports and edited I cannot save the report by the Addon-Menu i get the error Message: Die COM-Klassenfactory für die Komponente mit clsID {632F4591-AA62-4219-8FB6-22BCF5F60090}  konn

  • Urgent plz! Help resizing photos to specific size

    Am another newbie with Windows XP with Elements v.4.0. Have been handed a project by husband to take some passport-type as well as portrait type photos of relatives from overseas & resize them to certain dimenions (ex: 2" x 2", or maybe even somethin

  • Using HHP Builder under Win7

    Hi all, today I attempted to use the old "HHP Builder" tool on a Win7 (64bit) system. The program told me that it could not find csh.dll. Compatibility mode did not help. So I searched for this file and found it on my old computer (TCS2). I copied it

  • Upload data from flat file to OVKK  using BDC

    Hi All, I want to upload data from flat file to OVKK tcode using BDC. OVKK is a maintaince view with  a table control. So please send me code for uploading data to OVKK through BDC. Thanks & Regards, Siva.B