Path is correct, still won't work

Sup, total noob here.
I'm doing the Hello World tutorial, and I compiled it successfully (path worked, all i had to do was type "javac HelloWorldApp.java") and then I tried to run it with "java HelloWorldApp"
Now I get the Exception in thread "main" [etc] error, and the tutorial says that means i need to change the path. Problem is, I've gone to control panel> system several times, and verified that the folder the path leads to contains both "java" and "javac", so I have no clue what is going on. Also, the problem is not that I need to exit the command prompt and start it up, nor is it that I didn't click ok when changing the path.

Paste in the exact command you entered and the exact error message.
This is NOT a path issue. Path is fine. It's finding java.exe. If it weren't, you'd get
'java' is not recognized as an internal or external command,
operable program or batch file. if you're on widows, or something like command not foundon unix.
It sounds like a classpath error (which is completely different from path).
Javapedia: Classpath
How Classes are Found
Setting the class path (Windows)
Setting the class path (Solaris/Linux)
Understanding the Java ClassLoader
java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

Similar Messages

  • Ipad safari autofill still won't work :[

    Hi,
    Just bought me a new iPad 32gig refurbished model and am having problems with safari.it's supposed to save all my passwords on websites so I don't need to type them ever time but it just won't work.
    The autofill box is on and and have even reset the iPad a few times &amp; cleared the cache but still won't work.looking at the web it looks as if it's a bug so is there any fix yet ?...
    King regards
    Paul

    You didn't enter the command correctly, but that doesn't matter, because it's obvious that you do have misconfigured permissions.
    The procedure below will reset the permissions of a home folder in OS X 10.7.4 or later. If you're running an earlier version of 10.7, update to the latest version first. This procedure should not be used in OS X versions older than 10.7.4.
    Back up all data before you begin.
    Step 1
    Click the Finder icon in the Dock. A Finder window will open.
    Step 2
    Press the following key combinations, in the order given:
    Command-3
    Shift-command-H
    Command-I (The letter "I" as in "Info.")
    The Info window of your home folder will open.
    Step 3
    Click the lock icon in the lower right corner and authenticate with the name and login password of an administrator on the system. If you have only one user account, you are the administrator.
    Step 4
    In the Sharing & Permissions section of the window, verify that you have "Read & Write" privileges. If not, use the "+" and "-" buttons in the lower left corner to make the necessary changes.
    Step 5
    By default, the groups "staff" and "everyone" have "Read Only" privileges. With those settings, the files at the top level of your home folder will be readable by other local users. You can change the privileges to "No Access" if you wish, but then your Public and Drop Box folders will be inaccessible to others. Most likely, you don't need to change these settings.
    Step 6
    If there are entries in the Sharing & Permissions list for users or groups other than "me," "staff," and "everyone," delete them.
    Step 7
    Click the gear icon at the bottom of the Info window and select Apply to enclosed items... from the drop-down menu. Confirm. The operation may take several minutes to complete. When it does, close the Info window.

  • My phone 5s did the new update and will not come back on. I already tried hard reboot still won't work. Been over a hour now. Please someone help I need my phone.

    My phone 5s 16gb gold did the new update and will not come back on. I already tried hard reboot still won't work. Been over a hour now. Please someone help I need my phone.   This phone is not even 6 months old been in case no scratches. This is driving me crazy.

    Connect your phone to a computer and restore your software using iTunes.

  • My game center won't load and shows up blank when I try to open it. I've already tried to close all the apps and restart it and it still won't work. Is their anyway to fix it without restoring it??

    My game center won't load and shows up blank when I try to open it. I've already closed all of my apps and restarted it and it still won't work. Is their anyway to fix it without restoring it and starting over??

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - sign out and the sign back into Game Center
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • So, I have created my home sharing from my base computer to my laptop. On my lap top I see the tab for home sharing but it will not let me connect to my computer to share my music over. I have done everything iTunes has told me to but it still won't work.

    So, I have created my home sharing from my base computer to my laptop. On my lap top I see the tab for home sharing but it will not let me connect to my computer to share my music over. I have done everything iTunes has told me to but it still won't work. Any help would make my day...

    I got some more info that may help.
    I put a cd on my laptop, and was able to share it to my computer... So the problem is only from my computer to my laptop. I tried the firewall thing and it did not help. I read the rest of the trouble shooting page, and nothing else applies. iTunes is an execption and already was. I can not think of anything else being my problem. Do you think I should re-install iTunes or would that be a waste of time? At this point I am about to just call Apple for some help because I am getting to stressed over this.
    Thanks

  • TS3212 when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    when installing iTunes on my new laptop a message box appears saying some sort of error has occured and i have to uninstall it then reinstall it again and it still won't work what should i do?

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, does iTunes launch properly now?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • I clicked update for facebook And now my iPod touch 4th gen won't let me download the Facebook app I've turned it on and off like 5 times and it still won't work can you please help me

    I clicked update for facebook And now my iPod touch 4th gen won't let me download the Facebook app I've turned it on and off like 5 times and it still won't work can you please help me

    Seems to be an Apple or FB app problem. Nothing you can do but wait for it to be fixed.

  • My ipod nano 5th gen  wont play movies or videos on my ipod but plays them on itunes when i click on it the screen flashes black i have tried taking the movie off my ipod and putting it back on but it still won't work what should i do?

    My ipod nano 5th gen. won't play movies or tv shows but it plays them on itunes.  When I click  on it the screen flashes black. I have tried taking the videos off my ipod and then putting them back on but it still won't work. what should i do?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • When I try to download the windows support software it is coming up with an error message saying I am not connected to the internet but having checked the network diagnostics several times I am definitely connected but it still won't work. Any ideas?

    When I try to download the windows support software it is coming up with an error message saying I am not connected to the internet but having checked the network diagnostics several times I am definitely connected but it still won't work. Any ideas?

    I get a problem like yours. I have a mac mini with 2 hdds the server and hd2 I installed windows 7 and the windows works fine. except it will not allow me to get on the net.  I get error 651.  I can boot back to lion and the internet connection works. I googled and error 651 does seem to show up.  I would like  a work around.

  • Okay so my IPod touch 4 won't play music through any headphone I put into the port. I've tried it with 4-5 different headphones but it still won't work.  How can I fix this?

    Okay so my IPod touch 4 won't play music through any headphone I put into the port. I've tried it with 4-5 different headphones but it still won't work.  How can I fix this? This isn't the first time something like this has happened but it has never stayed this way for such a long time. If I have to send it in for repairs I will but I'm not sure if its under warranty

    To check for warranty coverage:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for theother 4Gs. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • Can't export to thumbdrive.  I have saved to a folder on the desktop, and it still won't work.  Do I need to change a setting?

    Can't export photos to a thumbdrive.  I have saved them to a folder on the desktop, and it still won't work.  Do I need to change a setting?

    I have saved them to a folder on the desktop, and it still won't work.
    What still won't work?  You have the photos in a folder on the Desktop, right?  So what happens when you drag that folder onto the thumbdrive? Many such drives have a slider lock switch.  Make sure it's not in the locked position. 
    Otherwise give us more detailed info on your setup and issue.
    OT

  • My iMessage still won't work!

    I have tried every answer and my iMessage still won't work!

    Tell us the Whole Story - beginning to end - in detail - use this a s a guide
    Quoted from  Apple's "How to write a good question"
       To help other members answer your question, give as many details as you can.
    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "iPhoto 9.1.2".
    Describe the problem, and include any details about what seems to cause it.
    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.

  • HT5655 I downloaded the newest version and it still won't work on my computer, what do I do? I even tried all the adobe troubleshooting!

    I downloaded the newest version and it still won't work on my computer, what do I do? I even tried all the adobe troubleshooting!

    Post in Adobe forums since its their product. 

  • I'm having all kinds of problems since loading Lion and I really wish I hadn't bought it yet. Even after the software update today, 1. my modem still won't work, 2. Photoshop Elements produces muddy photo prints, etc.  Anybody at Apple listening?

    I'm having all kinds of problems since loading Lion and I really wish I hadn't bought it yet. Even after the software update today, 1. my modem still won't work, 2. Photoshop Elements produces muddy photo prints, 3. View preferences in windows don't hold,  etc.  Anybody at Apple listening?  Anybody else out there having these kinds of problems?

    10.7 was horrible unstable so I waited until 10.7.1 and tried it again. Well I have to say that it is still a defective OS. I am reverting to Snow as we speak from my carbon clone copy.. This is really the worst OSX I have ever used. It gives me random Kernel panics for no reasons, unstable airport and hundreds of small issues that are just not necessary. For instance I can't use QuickTime in Lion to trim a videoclip ( the UI goes mad and the trimslider becomes inoperable and hangs the Player window ) while in Snow it is no problem. Itunes gives me crackling sound when the equalizer is turned on, Graphical glitches in Photoshop, games crashing, Preview.app not working with some pdfs, so I need Adobes reader which I never used before.. It is definately not ripe for mass usage. Might 10.7.2 or 10.7.3 fix it, but not yet.
    * and just for the records : the hardware is absoltely ok. Because in Snow it works as it should. ( So many Lion fanbois are talking : "your Ram is defect", defintely NOT. - Lion is defect! ).
    Shame on you Apple.
    Message was edited by: Sjazbec

  • HT1146 Just started using Apple mail.  Trying to set up email folders with Company/Company P.O. and it won't work.  Went to Edit and added special characters and it still won't work.  What am I doing wrong or can this not be done.

    Just started using apple mail.  Trying to set up email folders with example:  Company/Company P.O.  It won't let me do it.  It will not allow / or . .  What am I doing wrong or can this not be done.  I tried to use the Edit menu and adding the special characters, but it still won't work.  Please advise.  mmather

Maybe you are looking for

  • New MBA extremely slow internet after upgrading to 10.6.7

    Hey Folks, I have updating my brand new MBA to 10.6.7 and my internet is now extremely slow through the airpot. All of my other macs are running 10.6.6 and are very fast. Im using a new Airport Extreme base station, does anyone have any idea on how t

  • Why is my network connection so slow

    Why why why why why do I have to wait wait wait wait wait for my iBook to connect with my G5 when it use the network browser? I"ve got sharing enabled, and they eventually do connect, but it's faster to restart the Ibook in Firewire so I can move fil

  • Database starting problem?

    Hi all My database on oracle 9 ,on windows machine.. It is in no archivelog. when I shut down the machine and startup again my database doesn't up automatically . I have to start it manually every time by giving the startup command. what is the proce

  • SQL Server Licensing for BI

    Hi! I have a some questions regarding BI in the Standard Edition of SQL Server. 1. If a customer wants to have BI only in Excel and not in Sharepoint, will he/she make it with SQL Server Standard edition? 2. Can the user still use PowerPivot in Excel

  • Q.  eding rolling text/titles

    I thought I posted this already, but I can't find it.. so here goes again. I created rolling text/titles in white on a darkened screen as the audio played in the background. Each set of text frams appeared for a few seconds, then was replaced by the