Very n00b error....just started programming and need help?!?!

Hi i just started programming in java.
im running j2se 1.5.0 on windows xp
im on the subject of classes and objects.
here is my simple little code im trying to get to compile
public class Newprog
     public static void main(String[] args)
          Greeter myObjectGreeter = new Greeter();
          myObjectGreeter.sayHello();
}now here are the error messages i get:
--------------------Configuration: <Default>--------------------
C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find symbol
symbol : class Greeter
location: class Newprog
Greeter myObjectGreeter = new Greeter();
^
C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find symbol
symbol : class Greeter
location: class Newprog
Greeter myObjectGreeter = new Greeter();
^
2 errors
Process completed.
ok i get this error message alot....well actually just about everytime..
I got it working just once using texteditor but have no clue how i did it that time...now nomatter what i try i get this error
I have my enviornmental variable set at
path = C:\Program Files\Java\jdk1.5.0_07\bin;
i am using JCreator Le
i downloaded exact codes from websites and they still compile with this error..
if anybody with patience could tell me what i need to do
would i have to configure java some more with variables?
is my installation wrong?
do i have to save the work on a different file?
thanks in advance

Hi i just started programming in java.
im running j2se 1.5.0 on windows xp
im on the subject of classes and objects.
here is my simple little code im trying to get to
compile
public class Newprog
     public static void main(String[] args)
          Greeter myObjectGreeter = new Greeter();
          myObjectGreeter.sayHello();
}now here are the error messages i get:
--------------------Configuration:
<Default>--------------------
C:\Program Files\Java\jre1.5.0_07\lib\Newprog.java:5:
cannot find symbol
symbol : class Greeter
location: class Newprog
Greeter myObjectGreeter = new
Greeter();
^
s\Java\jre1.5.0_07\lib\Newprog.java:5: cannot find
symbol
symbol : class Greeter
location: class Newprog
Greeter myObjectGreeter = new
Greeter();
^
get this error message alot....well actually just
about everytime..
I got it working just once using texteditor but have
no clue how i did it that time...now nomatter what i
try i get this error
I have my enviornmental variable set at
path = C:\Program Files\Java\jdk1.5.0_07\bin;
i am using JCreator Le
i downloaded exact codes from websites and they still
compile with this error..
if anybody with patience could tell me what i need to
do
would i have to configure java some more with
variables?
is my installation wrong?
do i have to save the work on a different file?
thanks in advance
Well here is all that goes
As you said you were pretty new
I suspect the following error done by most of the novice programmers in JAVA
Where is the Greeter class ??
ok may be you must have defined it somewhere else
Mostly the Java Compiler hasnt found out your Greeting class
Try locating that " Greeter.java"
or mention it in an other file located in the same folder as "Newprog.java"
public class Newprog
     public static void main(String[] args)
          Greeter myObjectGreeter = new Greeter();
          myObjectGreeter.sayHello();

Similar Messages

  • I just got logic and need help i dont know how to make a track at all

    i just got logic and need help i dont know how to make a track at all

    Pancenter wrote:
    There was a time not too long ago when people respected the incredible amount of talent that contributed to this software...Everyone -wanted- to learn about the craft and "art" that goes into being a good engineer, musician, producer...etc.      
    Beginner's did enough reading and experimentation to at the very least, ask an intelligent question.
    pancenter-
    Hey Pancenter there are still lots of us about.
    I wouldn't take the original post too seriously - I may of course be naive but it sounds like it could be a troll to me!
    I learn a lot from reading the posts of the likes of you, Erik, Bee Jay, sampleconstruct, noeqplease etc so I hope you guys don't become too dispondent when you see posts like these.
    By the same token, I hope the Logic team continue to use their talents to develop powerful software that caters for the professional user, while allowing Garageband to continue to do its (excellent) job of providing for its market.

  • Just bought IPhone and need help

    I just bought my iphone and i have installed the AIM program. As I am trying to connect i am recieving a message that says to access the AIM network i must have a network connection. WHy is this happening. Doesn't this work on the 3g network or do i have to have the WIFI connection in order to use this?

    Check out the part on network connectivity
    http://support.apple.com/kb/HT1737
    You need to have a "E", "3G" or Wifi icon to the left of your Cell Provider up at the top. If you are on WiFi then check and make sure you are getting a valid IP address. If you are on Edge or 3G make sure you are able to check the weather and get safari.
    Some troubleshooting steps might be iPhone > Settings > General > Reset > Reset Network Settings or contacting your Cell Provider to make sure the data plan is set up properly.
    If everything work except aim try removing it and downloading it again and see if it has the same errors with a different aim account. You can make a new one at http://www.aim.com/helpfaq/startingout/screennames.adp

  • Need to install a mileage program and need help.

    I need to install a mileage program on my ideapad S10.  I have the cd and the code to make the program work.  How do I get this installed on my Ideapad?  Please give precise and clear directions.  I don't want to screw this up and end up having problems.  Any help is greatly appreciated.  Thanks in advance. 

    1. Easiest way is to purchase or borrow an external CD player, of course, or
    2. Contact the original company and pay to download an installable version.
    3. Bring your S10 & CD to a local computer store. They should install your program for cheap.
    4. Find a downloadable replacement mileage program online. Here is one..
    http://download.cnet.com/Mileage-Calculator/3000-2064_4-10436153.html?tag=mncol 

  • IPhone 5 suffered heavy water damage, just started functioning regularly-- Need help!

    So last July my iPhone 5 experience severe water damage. Apple store employees said that there was little they could do. The phone would not function
    Fast forward to 6 months later: I hook up the phone to the wall outlet and the black screen shows up with rows and rows of white text. I can hook it up to iTunes but it can't restore.
    Fast forward to today (a year later): I plugged my phone into the wall outlet and hooked it up to iTunes. The phone successfully was updated and restored. It now seems to function normally. I'm considering calling my carrier to switch back to my iPhone 5, however I'm not sure if it will fail on my later because there was extensive water damage before. What are your guys' thoughts?

    however I'm not sure if it will fail on my later because there was extensive water damage before. What are your guys' thoughts?
    It will fail at some point or start acting in a strange manner. And such failure will occur at the time you need the device the most according to my friend Murphy. When the device was water damaged you could have gotten an out of warranty replacement for less than the price of a new phone. In fact you may still be able to get such a replacement. Check with the local Apple store.

  • I'm new: Just starting: Did tutorials: Need extra help: Thanks :)

    I'm new: Just starting: Did tutorials: Need extra help: Thanks
    I watched all the video tutorials, but I'm not clear on these parts.
    1. How to do a fade in / fade out title intro over the moving scene of the video?
    2. How to adjust the color to saturate / brighten / darken video scenes?
    3. How to make a credits page at end of video?
    4. Also, confused because I have only 2 image / audio clips for my very short video. The first video clip has the audio track with one sound graph displayed when enlarged. The second video clip has audio with 2 sound graph images stacked on top of each other saying R and L, right and left. The first audio clip does not have this, does not look like this. This is confusing. I thought both audio clips should look the same. What's up with this? Do I have something duplicated?
    5. Is there anyone here from South Orange County, California, USA, who would like to be of help to me via email, phone, Skype?
    6. I am a new Youtube Partner / Vlogger and it's taking me quite a while to get the hang of this so I appreciate any helpers.
    Here are my links.
    Thanks,
    JR
    http://www.facebook.com/RoadWarriors360
    http://www.youtube.com/RoadWarriors36 
    http://www.twitter.com/roadwarriors360
    http://instagram.com/RoadWarriors360
    http://www.linkedin.com/in/jeffread360

    1. How to do a fade in / fade out title intro over the moving scene of the video?
    Create a Title in the TITLER  Apply it on a LAYER above your video. Apply a Cross Dissolve or Fade IN/Fade Out TRANSITION to each end of the
    http://tv.adobe.com/watch/learn-premiere-pro-cc/adding-titles-in-premiere-pro/
    http://tv.adobe.com/watch/learn-premiere-pro-cc/adding-transitions/
    2. How to adjust the color to saturate / brighten / darken video scenes?
    Apply a Color Correction EFECT to the clip. eg 3 WAY CC.  Adjust parameters in the FX Window
    http://tv.adobe.com/watch/learn-premiere-pro-cc/applying-video-effects/
    3. How to make a credits page at end of video?
    Create a Title in the TITLER  Apply it on a LAYER above your video.  Use Motion Effects if you want it to "move" in the frame

  • I bought a new app ($0.99), bought $19.00 worth of on app purchases and the app crashed, now it says that I have to start a new game since i had just started it and didn't get a chance to save it, so my question is, how do i get my money back?

    I bought a new app ($0.99), bought $19.00 worth of on app purchases and the app crashed, now it says that I have to start a new game since i had just started it and didn't get a chance to save it, so my question is, how do i get my money back?

    I'm keeping the app, i just need the $19.00 back.

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • Apple tv just started showing I need to connect to itunes.

    I can't as I do not have the cable needed. What can I do?

    I may be wrong Karsten but the OP seems to be saying that the Apple TV is asking for the cable and hence it is that 'special situation' you refer to.
    apple tv just started showing I need to connect to itunes.
    I assumed this is what the OP is seeing.

  • I keep getting a Fatal Exception Error on start up, and I can only run in safe mode on my dv6

    I keep getting a Fatal Exception Error on start up, and I can only run in safe mode on my dv6, can anyone please help?  I don't really want to reset it back to factory defaults as I will have to re-install everything.  I have tried going back via system restore, but it keeps telling me that there are no restore points?  I am running Windows7 64 bit OS
    Thanks in advance.
    This question was solved.
    View Solution.

    Hi,
    Start the notebook in Safe Mode and let Windows fully load.  Hold down the Windows key and press R.  In to the Run box type msconfig and hit enter.  In the following window, click the Start up tab, remove the tick next to each start up item and then click Apply to make the change.  Restart the notebook and see if it now boots normally.  If it does, re-enable one start up item at a time, click Apply and reboot to check if it still runs ok.  Keep doing this until you encounter the problem and you will know the last program you set to start is causing the issue.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Everytime when i slide down to my notifications, it freezes of what im doing, AND when i go to my messages, there's nothing and it's just blank. I Need help please?

    Everytime when i slide down to my notifications, it freezes of what im doing, AND when i go to my messages, there's nothing and it's just blank. I Need help please?

    The next best suggestion I have is to back up your device in itunes and restore the software back onto your device. It sounds like you might have had a error when downloading the software update.
    http://support.apple.com/kb/ht1414

  • On both my desktop and notebook, sync just stops working and needs to be set up again! Although my account is still there ?

    On both my desktop and notebook, sync just stops working and needs to be set up again! Although my account is still there ?
    I have windows 7 on both computers and I use the paid version of Roboform (which does not encounter any problems!) So, I really need my sync to work and keep working. Please help......

    Do you mean that after closing the browser your Sync set up is gone and you need to Set it up again?
    This is, generally, because your privacy settings are too restrictive and you are deleting the password of your Sync account.
    You can modify this in the Privacy tab of your Preferences/Options window. Select Remember History or Use Custom Settings in the drop down to configure the level that you want.

  • I signed up for the edge program and need to send back my old phone.  The instructions say I need to put it in the edge bag provided with my new phone order, but no bag is in the box.  Can I get one at a store?  Please respond!!

    I signed up for the edge program and need to send back my old phone.  The instructions say I need to put it in the edge bag provided with my new phone order, but no bag is in the box.  Can I get one at a store?  Please respond!!

        monkeybuttqueen,
    Thank you so much for reaching out to us today. I hope you are enjoying the new device! I do apologize that you didn't get the proper info sent to you to send back your old device. You can always print a label online from My Verizon. You can do that at www.verizonwireless.com/printlabel Pleaes keep us posted if you have any questions or concerns.
    KevinR_VZW
    Follow us on Twitter @VZWSupport

  • After recent upgrade to IOS 7 i an seeing systems rebooting very frequently. it just goes offline and comeback online after some time. IS this hardware issue or others also facing the same

    After recent upgrade to IOS 7 i an seeing systems rebooting very frequently. it just goes offline and comeback online after some time. IS this hardware issue or others also facing the same

    Hello there, Kishoresaraogi.
    The following Knowledge Base article provides some great steps to troubleshoot your issue:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Particularly:
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • TS1544 ICloud Password enter box keeps popping up.  Will not let me Cancel.  Just started this and I don't want to be in ICloud at all. OSX 9.1 Thanks.

    ICloud Password enter box keeps popping up and will not let me Cancel.  Just started this and I don't want to be in ICloud at all.  Using OSX  9.1 Thanks.

    Hi db429,
    Thanks for using Apple Support Communities.  You can sign out of iCloud completely using System Preferences > iCloud:
    OS X Mavericks: iCloud preferences
    http://support.apple.com/kb/PH14348
    Please note the information in this article if you opt to sign out of iCloud:
    OS X Mavericks: If you sign out of iCloud
    http://support.apple.com/kb/PH14353
    Cheers,
    - Ari

Maybe you are looking for

  • How do I re-install Mountain Lion on a new hard drive (replacement)?

    I have an older iMac 24" (2007) that has been up-graded to Mountain lion.  I want to replace my hard drive with a bigger one (has 500Gb).  How can I re-install Mountain Lion on my new drive?  I have Time Machine on this machine.

  • ITune 8.1 coverflow is useless with trackpad

    Hi I updated to itune 8.1 on a white macbook 2.0GB. When I use coverflow with trackpad, it's not really responsive. You have to more your finger a lot to get the covers for scoll... and it just scoll WAY too much. Can't really scroll slowly (one by o

  • Add Custom Color to pie-chart

    I have requirement to add specific color to each element in pie-chart. Below is my code for pie-chart with static json. Instead of the default colors given by the viz charts, I want to have red, green, orange and blue color in the pie-chart. Has some

  • Airport connection not enabled after boot

    Hi, I have noticed recently that if I reboot the iMac, after shutting down or using Boot Camp for my Winslows apps, that Airport doesn't connect to my wireless network. It is easy to select the network to connect to, but I don't think I should have t

  • Y a t il une fonction de correction de parallaxe dans aperture svp

    bonjour  a tous je decouvre aperture et aussi le monde mac .... etant passionné d ephoto je souhaiterai savoir s il existe une fonction de correction de la parallaxe des images dans aperture svp ! merci de votre aide