Having trouble running class

Hi
I'm having problems running java classes on my new computer. I'm using Vista 64 Ultimate with SP1 and JDK 1.6.0_07.
I can type javac -version and java -version in cmd and output is fine. I can also succesfully compile java files by typing javac helloworld.java (if I'm in a folder with helloworld.java). The problem is that when I try to run my compiled java by typing java helloworld.class I get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: helloworld/class
Caused by: java.lang.ClassNotFoundException: helloworld.class
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
How can I fix this problem?

Do this and post the exact complete output for us... (just copy and paste from the command window (mistakes and all) into the forum editor, then select that text and press the code button conveniently located directly above the editor window
javac -version
java -version
javac helloworld,java
jaca helloworld
Cheers. Keith.

Similar Messages

  • I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    I am having trouble running videos through Safari but not Google Chrome.  All I get is a black screen.  I have the latest adobe flash update and have enabled plug ins.  any suggestions?

    Open System Preferences > Flash Player then select the Advanced tab.
    Click Delete All under Browsing Data and Settings
    Not empty the Safari cache.
    From your Safari menu bar click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now click Develop from the menu bar. From the drop down menu click Empty Caches.
    Now try a video.

  • I am having trouble running the latest version of adobe reader 10 how can i resolve this

    i am having trouble running the latest version of adobe reader 10. i have adobe 9 which is fine but i'm not able to do certain things on certain sites without 10. how can i resolve this?

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Why am I having trouble running Adobe Flash Player 11 on my 2011 Macbook Air? I've downloaded and installed it repeatedly; yet when I try to open certain images online or play certain Youtube segments, I get the message, "You must have Adobe Flash 11..."

    Why am I having trouble running Adobe Flash Player 11 on my 2011 Macbook Air? I've downloaded and installed it repeatedly; yet when I try to open certain images online or play certain Youtube segments, I get the message, "You must have Adobe Flash 11..."  My computer tells me it is installed and running.

    If you're sure you've installed the latest version of Flash, take each of the following steps that you haven't already tried. After each step, relaunch Safari and test. For a "missing plug-in" error, start with Step 5.
    1. If you're only having trouble with YouTube videos, sign in to your YouTube account and load this page. You may see a link with the text "Leave the HTML5 Trial." If so, click that link.
    2. If you're getting a "blocked plug-in" error, then from the menu bar select
     ▹ System Preferences… ▹ Flash Player ▹ Advanced
    and click Check Now. Quit and relaunch your browser.
    3. Triple-click the line below to select it:
    /Library/Internet Plug-Ins
    Right-click or control-click the highlighted text and select
    Services ▹ Open
    from the contextual menu. A folder should open. Delete the following item, or anything with a similar name, if present:
    Flash Player (failing).plugin  
    You may be prompted for your login password.
    4. Re-download and reinstall Flash. Download it from this page:
    Adobe - Install Adobe Flash Player
    Never download a Flash update from anywhere else.
    5. If you get a "missing plug-in" error, select
    Safari ▹ Preferences... ▹ Security
    from the Safari menu bar and check the box marked Enable plug-ins.
    6. Select
    Safari ▹ Preferences... ▹ Extensions
    from the Safari menu bar. If any extensions are installed, disable them.
    7. In the Safari preference window, select
    Privacy ▹ Remove All Website Data
    Close the window. Then select
     ▹ System Preferences… ▹ Flash Player ▹ Advanced
    and click Delete All. Close the preference pane.

  • Having trouble running Dreamweaver on new Windows 8 laptop.  No trouble running it on Windows 7.

    Having trouble running Dreamweaver on new Windows 8 laptop.  No trouble running it on Windows 7.

    Thanks for your reply.
    When I tried downloading Dreamweaver CS6 onto my laptop, it took over 2 hrs to download, then it compressed it into a Zip file which I was never able to open.
    Not sure why I am having so much trouble. We’ve had no issue loading onto our Windows 7 lab, however, we are not successful using the download on my work laptop. 
    We are going to try again, however, it this doesn’t work, perhaps I should try the trial download – and take it from there?
    Thank you in advance. 
    Ms. Laura Sciortino
    Basic Technology Instructor
    Grades 7-8, 10 - 12
    Weehawken High School
    Peer Leadership Advisor
    Grades 9 - 12
    Main Office: 201.422.6130

  • Having trouble running flash on 64 bit...help!

    i am having trouble running flash on my 64 bit computer. does anyone know of any patches for this or if adobe is comming up with a solution?
    any contributions to my problem would be most appreciated,

    Using Firefox (32-bit version) installed, try this: http://thetechangel.com/blogberry/2010/01/firefox-flash-fix-for-windows-64-bit/

  • Having trouble running "Stocks" on iPad

    i am having trouble running the app "stocks" on my iPad3

    The iPad doesn't have the built-in Stocks app as found on the iPhone and iPod Touch (nor Weather, Clock or Calculator) - you will need to find a third-party stocks app in the app store

  • I am having trouble running .mov files on my ipad. What can I do?

    I am having trouble running .mov files on my ipad. What can I do?
    Thanks.

    go to the app store and search .mov   The pad plays a certain set of file types, but not all.  In the appstore there are several alternate players that will work.  Find one that does what you heed, and is priced right for you,and download it.
    ((WM Player HD lite is free, and look like the one you might want)
    I use xy player, and VLC, but I am not sure either one is still available.

  • Having troubles running iTunes! I downloaded iTunes just fine, but when I try to open it, it tells me iTunes is in a locked disk or I dont have permissions to write to this folder. Please help!

    Having troubles running iTunes! I downloaded iTunes just fine, but when I try to open it, it tells me iTunes is in a locked disk or I dont have permissions to write to this folder. Please help! I purchased an iPod for my son and wanted to put music on it.

    Hello there KRerssig,
    I was looking through our resources and found an article with information regarding that error message. The article is called iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes found here: http://support.apple.com/kb/HT1866.
    Here is the text but the article contains images for a visual reference:
    Verify the location of your Windows XP My Music folder. The default location for this folder is
    C:\Documents and Settings\username\My Documents\My Music
    If you do not have this folder at the default location and have not moved it to another location, consider creating one inside your My Documents folder.
    Download and install Tweak UI from the Microsoft PowerToys website athttp://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
    Note: This utility is for Windows XP only. Please review the system requirements before installing.
    Once you have installed Tweak UI, open it from the Start menu.
    In the column on the left, click on the plus symbol next to My Computer and select Special Folders.
    In the right pane under Special Folders, choose My Music from the Folder pop-up menu.
    Click the Change Location button. You may see a warning message appear with precautions for changing this setting; after reviewing the message, click Yes.
    In the resulting window, browse for the My Music folder as described in step 1, and click OK.
    Reinstall or open iTunes.
    If these steps do not resolve the issue, the settings for the current user may be corrupted, which could cause iTunes not to install or open. You may have to install and open iTunes in a different Windows user account.
    All the best,
    Sterling

  • TS1717 Having trouble running iTunes version 11.0.2 on a Dell Laptop running Windows 7 Professional Service Pack 1.  Keep getting an error message "the software required for communicating with iPods and mobile phones was not installed correctly..." reinst

    Having trouble when I launch iTunes (version 11.0.2) on my Dell Laptop running Windows 7 Professional (service pack 1).  I get an error message indicating software required to communicate with iPod and mobile phones was not installed correctly.  Do you want iTunes to try to repair this for you?  I normally respond with OK and it immediately tells me "could not be repaired.  Please reinstall iTunes..."  I have done this a number of times to no avail.

    I also notice Quicktime is not getting installed at all.
    That one is normal nowadays (ever since the iTunes versions 10.5.x).
    The software required for communicating with iPods and mobile phones was not installed correctly. Do you want iTunes to try to repair this for you?
    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    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 AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • New to java, having trouble with classes

    I am new to java and I am having problems importing classes in my first program, please help

    hi
    please tell, what`s your problem exatly?

  • I having trouble running a GUI window

    I am trying to view a GUI calculator that I made with java, it compiles with no errors but when I run it I get this message:
    Exception in thread "main" java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:317)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:150)
    at GUIcalc.<init>(GUIcalc.java:20)
    at GUIcalc.main(GUIcalc.java:15)
    It is preventing me from veiwing the calculator, I don't know what to do.
    Also I am trying to install NetBean 4.1 so that I don't have to use putty.exe to make programs, but I keep getting this message when I try to start the DeployTool:
    JAVA VIRTUAL MACHINE LAUNCHER
    Could not find the main class. Program will exit.
    What should I do or download to make it work?
    Thank You.

    Sort of like NetBeans, but I found it to be a lot easier to use. Installed and ran right away without any problems.

  • Having trouble running applets..Pls help

    I have been playing with installing, reinstalling various JREs and now none of the applets won't run. If anyone has an idea, please let me know. Here's the log from console. It looks like it is able to download, but unable to find class files. The website I visited was http://www.cmol.nbi.dk/models/epitrans/transcript.html, but it does not matter as I see the same error of class not found.
    Java Plug-in 1.6.0_07
    Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\MYNAME
    network: Loading user-defined proxy configuration ...
    network: Proxy list: http=<REMOVED>
    network: Proxy override: null
    network: Done.
    network: Loading manual proxy configuration ...
    network: Done.
    network: Proxy Configuration: Manual Configuration
    Proxy: http=<REMOVED>
    Proxy Overrides:
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1ded0fd, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@19616c7
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: completed perf rollup
    network: Cache entry not found [url: http://www.cmol.nbi.dk/models/epitrans/transcript.class, version: null]
    network: Connecting http://www.cmol.nbi.dk/models/epitrans/transcript.class with proxy=HTTP @ <REMOVED>
    network: Connecting http://www.cmol.nbi.dk/models/epitrans/transcript.class with cookie "__utma=37012018.3194523985250716000.1224518413.1224523764.1224526893.4; __utmz=37012018.1224518413.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=37012018.2.10.1224526893"
    network: Cache entry not found [url: http://www.cmol.nbi.dk/models/epitrans/transcript/class.class, version: null]
    network: Connecting http://www.cmol.nbi.dk/models/epitrans/transcript/class.class with proxy=HTTP @ <REMOVED>
    network: Connecting http://www.cmol.nbi.dk/models/epitrans/transcript/class.class with cookie "__utma=37012018.3194523985250716000.1224518413.1224523764.1224526893.4; __utmz=37012018.1224518413.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=37012018.2.10.1224526893"
    load: class transcript.class not found.
    java.lang.ClassNotFoundException: transcript.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.ClassNotFoundException: transcript.class
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@19616c7
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@1ded0fd, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@1ded0fd
    basic: Current classloader cache size: 1
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Joined applet thread ...
    basic: Quiting applet ...

    Check your server logs. Check to confirm that the request for transcript.class came through. If so, check to see the response code, bytes sent, and check the error log to see if there were any errors. It would also be good to check the web server configuration to see whether it's configured to properly send .class files; in particular check to see the mime type it uses for that file. You can and should also use curl or the like to see if you can download the .class file through the web server properly.

  • Having trouble running multiple instances of Firefox in XenDesktop 7.1

    We recently upgraded our Citrix environment to XenDesktop 7.1. We published Firefox, but only one user at a time can have the program open. When we try to run multiple sessions, we get this error message "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."
    We've had it published in previous Citrix environments with no problems. How do we need to configure Firefox in XenDesktop so that multiple users can run the program at the same time? Thanks.

    I do not understand virtualisation.
    I can however say that ordinarily Firefox needs each user to have a separate profile and for Firefox to open simultaneous multiple instances with separate profiles the ''-no-remote'' argument needs to be used.
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile

  • Having trouble running an internet broadcast of a game

    I am trying to run a internet broadcast of a game through America One sports.  I can get the video to run through my pc but not through my mac air.  It tells me Google Chrome already has Adobe Flash plug in already and that it should work but it does not.  I downloaded it anyway and tried to run through Sarari but no luck.  Any suggestions?

    Did you enable the plug-ins in Preferences? Just downloading them doesn't enable them.

Maybe you are looking for

  • Simple LIMIT Clause Impossible?

    Is the simple LIMIT clause available in other databases simply impossible in Oracle? This is driving me nuts and I'm just not finding a good answer. For example, the query: SELECT * FROM MYUSER ORDER BY LOGIN LIMIT 41, 20 This would return up to 20 r

  • Logic quitting unexpectedly every time at 'Core Audio' bit, any ideas?

    Process:         Logic Pro [142] Path:            /Applications/Logic Pro.app/Contents/MacOS/Logic Pro Identifier:      com.apple.logic.pro Version:         9.1.8 (1700.67) Build Info:      Logic-17006700~1 Code Type:       X86 (Native) Parent Proces

  • Search Help from SAP values using WebDynpro ABAP in ADOBE Interactive Form

    Hi, How to populate search help on ADOBE interactive online form which is residing on a WebDynpro ABAP application? Thanks & Regards, Sandip amar

  • ORA-28267: Invalid NameSpace Value Using DB Link

    Hi , Getting the ORA-28267: Invalid NameSpace Value RA-02063: preceding line from dblink12 I am trying to access the dblink through a datasource and I am using a managedBean in session scope to do it. The code for accessing db link through managed be

  • Reg : OS commands in Adapter Configuration

    Hi, I have seen the option like <b>Run Operating Sustem Command Before Message processing and After Message</b>. How can I use them Where can I see the results of it. I need an OS command to diplay all the files in a directory before message processi