Program wont run

i tried to run this program but it wont work
public class MyProg
{ public static void main(String[] args)
{ System.out.println(�Welcome to Java Programming�);
i think i have a problem with the compiler line??
c:\jdk1.3\bin\javac a:\demo.java ??????right??????
help please

First, you need to put this in a file called MyProg.java. Then
c:\jdk1.3\bin\javac a:\MyProg.java
will probably work (assuming your classpath is right)
Next, if you get more error messages, post them.

Similar Messages

  • Program wont run on secondary accounts

    I am teaching my students a 3D modelling program called ZBrush from Pixologic. It is installed on the new Mac Pro and works great on my account. But when the students log into their user account, it wont open. I get a prompt saying....
    NOTE
    Out of disk space.
    Virtual memeory file can´t be used until more disk space is made available.
    It is recommended that you save your work and restart ZBrush.
    I have contacted the manufacturer of ZBrush but they just said it sounded like a permissioin problem.
    I have set no limitations to the student account. They have administrative access to the HD
    Can anyone tell me what I can do to allow them access to this program?
    Jim

    Minimum System Requirements
    OS: OSX 10.0 or newer
    CPU: G3 processor or newer
    RAM: 256MB (512MB recommended, 1024 for working with multi-million-polys)**
    Monitor: 1024x768 monitor resolution set to Millions of Colors
    http://www.zbrush.info/site/index.php/ZBrushInfo_Home
    Forums:
    http://206.145.80.239/zbc/index.php
    My guess is that it isn't written (well) for Mac OS X Tiger and multiple accounts. Does each user have their own activation key or anything?
    Is it Intel/Universal Binary? Do you have adequate memory and disk space? I would put all User Accounts on a non-boot drive, too.
    You may need to give each student account a link to the program, move the program someplace else. Does the program write to its own directory? it shouldn't but might and they may have read only access to the program.
    I say I don't think so as 10.0 is old, was mostly Carbon, and programs that run on and take advantage more fully of Tiger features and support, which is a good thing, require 10.4.6 or later. Seems they are still getting into the swing of 64-bit/Vista and support for more memory.
    Students with admin access? do you want that? I don't think so. Restricted should be fine and keep them from getting into places they don't need to (but will).

  • Simple program wont run  java.lang.NoClassDefFoundError

    Exception in thread "main" java.lang.NoClassDefFoundError: Server (wrong name: Simple_Server/Server)
    i am new to java and i made this simple script to accept connections then pass them on to HandleClient.
    but when i run it i get this output
    Exception in thread "main" java.lang.NoClassDefFoundError: Server (wrong name: Simple_Server/Server)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)here is the source code
    package SMTP_Server;
    import java.io.*;
    import java.net.*;
    public class Server {
        ServerSocket serverSocket = null;
        boolean listening = true;
        public Server(){
         System.out.println("New Server Created");
        public void main(String[] args) {
            try {
                this.serverSocket = new ServerSocket(4444);
            } catch (IOException e) {
                System.err.println("Could not listen on port: 4444.");
                System.exit(1);
         while(listening){
             try{
              new HandleClient(this.serverSocket.accept()).start();
             } catch (IOException e) {
              System.err.println("Caught IOException: " + e.getMessage());
    }I thought it might be that main() is not static but it wont work if make it static because it cannot access the listening or serverSocket fields
    Thanks for all the help
    Scott.

    The directory hierarchy of your .class files must mirror the package hierarchy of your classes.
    So if you've got a class "Foo" in a package "p1" (i.e. a class with the fully qualified name of "p1.Foo") and a clas "Bar" in a package "p2" (i.e. a class with the fully qualified name of "p2.Bar"), then you need a file hierarchy such as this:
    p1/Foo.class
    p2/Bar.classAnd the directory in your classpath needs to be the directory that contains p1 and p2.
    So what you need to do is go to a directory that contains a directory called "Simple_Server" (your source file mentions SMTP_Server, but I assume you changed it at some point).
    That directory Simple_Server must contain a file called Server.class.
    Then execute "java Simple_Server.Server".
    Also please follow common naming conventions, as your code will become harder to understand if you don't. An important rule in those conventions is that package names should be in all-lowercase and not contain any non-letter characters if possible (i.e. use "smtpserver" instead of "SMTP_Server").

  • Programs wont run after compiling

    not sure what I'm doing wrong here, looked around on the forums for anything, and found nothing regarding this issue.
    I have tried to install a few programs now, AWN, and Cairo-Clock, downloaded the tar files, unpacked them, cd to the directory, and run
    ./configure
    make
    make install
    and then when I try to run the program, i get an error saying the program could not be found, but it is in the menu to run it, what am I doing wrong here?
    Sry for all the noob ?s on the first night with Arch, but this is confusing the hell out of me, I get no errors during configuring, or installing, but the program just will not run. Any help would be appreciated.
    Last edited by McLovin (2008-03-26 06:56:32)

    McLovin wrote:
    not sure what I'm doing wrong here, looked around on the forums for anything, and found nothing regarding this issue.
    I have tried to install a few programs now, AWN, and Cairo-Clock, downloaded the tar files, unpacked them, cd to the directory, and run
    ./configure
    make
    make install
    and then when I try to run the program, i get an error saying the program could not be found, but it is in the menu to run it, what am I doing wrong here?
    Sry for all the noob ?s on the first night with Arch, but this is confusing the hell out of me, I get no errors during configuring, or installing, but the program just will not run. Any help would be appreciated.
    My guess you're installing in a prefix which is not in your path (maybe /usr/local ?).  Either add it to your path, or change the prefix when running configure like
    ./configure --prefix=/usr
    On a side note, why don't you use the packages provided in the AUR. If you use those they will get managed by pacman as a bonus

  • TS1717 data executiion prevention keeps closing my itunes,but itunes wont run without it.help !

    data execution protection keeps closing my itunes on my sony vaio.also get the messge c:\windows\system32softpub.dll.tried turning of the DEP but itunes wont run without it.no problems with any other programs.any thoughts

    Taken at face value, you're having trouble with a Windows operating system file there.
    Perhaps try an sfc /scannow. For instructions, see the following Microsoft document:
    How to use the System File Checker tool to troubleshoot missing or corrupted system files on Windows Vista or on Windows 7

  • Itunes wont run and now i lost my cd drive

    I installed itunes to my windows xp computer and after the installation I tried to run the program. It would not run and now I lost my cd drive. I deleted itunes and then in order to get my drive back I would have to use the windows restore program. But, every time I try to reinstall itunes it does the same thing... program wont work and lose my cd drive. Please help me someone...

    Success! I've finally got itunes up and running on my computer. What I did was go to my control panel and clicked on 'other control panel options.' Here I found the java plug-in icon which I updated, it's pretty straightforward to do that, if you click on it, you'll find the option to do that. I then clicked on the Windows start menu and on programs which said 'apple software update'. I clicked on this and it said searching for software. It found the new version of Quick Time and a security update for it. I installed both of them and double clicked on itunes and instead of expecting it to show the usual error message it started launching! I'm well pleased. My cd drive is still missing but I should be able to find a way to restore it. Hope this info helps someone who's having similar problems!

  • New itunes wont run in windows 7 64 bit even after full uninstall and reinstall

    after the new itunes 2.2 came out i have been unable to get it to open or run i have fully uninstalled all elements and reinstalled and still it wont run

    it just ask permision to run program then
    ... that's interesting. Is that one of those User Account Control type messages?
    I'd like to see that screen if possible, stew. Could you take a screenshot of that permission message screen (Hold down Alt and press the PrtSc key), paste it into a Paint document (or similar image editor), and save the file. Then reply here, click the wee camera icon, do a Choose file, browse to the file, click "Open file", then click "Insert Image".

  • Adobe CS3 programs wont open after reinstalling...help please anyone?

    Hello
    Im wondering if anyone know how to fix this...
    Im running windows vista and my adobe creative suite 3 master collection decided to stop working and started saying there were errors and asking that i reinstall.  I unistalled the copy and reinstalled and now the programs wont even open, i get no error messages or anything the programs just dont open no matter how many times their clicked.
    Ive uninstalled and reinstalled several times trying to install using my activation code, installing without just as a trial and nothing seems to make a difference.  Finally after about an hour of waiting Ive just got a message when opening fireworks saying "Licensing for this product has stopped working"  something about unistalling and reinstalling that I didnt manage to catch.  This is installed as the trial version so there should be no licensing issue... right?
    Has anyone else had this happen to them and does anyone have any ideas on how to fix this problem?
    Thanks

    Try the CS Cleaner tool before re-installing.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Java 1.4.1 will compile clean but it wont run them using windows ME

    haveing trouble setting the path and the class path for windows me
    the code compiles clean but when i go to run it
    its wont run it comes up with a error of no class defination found
    thanks dkunze

    The Windows path is a set of pointers that Windows uses to locate programs that you execute, like javac.exe and java.exe. This setting is explained here:
    http://java.sun.com/j2se/1.4.1/install-windows.html
    Scroll down to: 5. Update the PATH variable
    (you should have already done this as part of the Java installation)
    The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
    Setting the Classpath:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
    How Classes are Found:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/findingclasses.html
    Examples:
    This is my path
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.1\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
    This is my classpath
    CLASSPATH=.;C:\mjava;C:\mnrx;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.1\lib\tools.jar;C:\NetRexx\NrxRedBk

  • Program doesnt run due to classpath issues?

    I am trying to get my Java program to run and it doesnt seem to want to work after it compiles. The two classes (Dog and DogTest) compile but the DogTest wont run and gives me error messages.
    I have both classes in first directory in the following location: C:\Tomcat5.5Home\webapps\second\WEB-INF\classes\first>
    Here is how I am running it on the Command line:
    C:\Tomcat5.5Home\webapps\second\WEB-INF\classes>javac first/Dog.java
    C:\Tomcat5.5Home\webapps\second\WEB-INF\classes>javac first/DogTest.java
    C:\Tomcat5.5Home\webapps\second\WEB-INF\classes>java -cp . first/DogTestException in thread "main" java.lang.NoClassDefFoundError: first/DogTest (wrong name: DogTest)
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)I tried setting the classpath such as: set classpath=.;%classpath% and it still gives me same error. I also tried running it as: java first/DogTest and still gives me same error messages.
    Please advise what I can do to get this working?
    Here is the Dog.java file:
    package first;
    public class Dog
         int size;
         public void bark()
              System.out.println("test test");
    }Here is the DogTest.java file:
    import first.Dog;
    public class DogTest
         public static void main (String [] args)
              Dog d = new Dog();
              d.bark();
    }

    I still have to set the classpath manually:
    C:\Tomcat5.5Home\webapps\second\WEB-INF\classes>setWhat you need to do is figure out what you are doing.
    If you intend to run something in tomcat then you won't be using classpaths. (Tomcat adjusts appropriately.)
    If you intend to use something in tomcat (but not run in the server) then you need to adjust your class path to include those items and also add your new stuff. Your stuff will NOT live in the tomcat directories though.

  • Elements 10 wont run

    when I bought Photoshop and elements 10 combo I loaded both programs the same day. I use Photoshop regularly and now I am finding I need to organize my work a bit and Elements 10 wont run. when I click on Elements 10 desktop icon the cursor just acts like its loading it but it wont load...what am i doing wrong.

    Right click on PSE desktop icon and choose to Run as administrator
    If it does`nt work then try launching direclty via exe here
    Editor - c:\Program Files (x86)\Adobe\Photoshop Elements 11\PhotoshopElementsEditor.exe
    Organizer -  C:\Program Files (x86)\Adobe\Elements 11 Organizer\PhotoshopElementsOrganizer.exe
    Thanks...

  • Just upgraded to OSx10.6.6 and now aperture 3 wont run.

    Just upgraded to OSx10.6.6 and now aperture 3 wont run. It was running  before i upgraded. tried reinstalling aperture from the disk and dowloading updates but still no go. other programs are fine (photoshop etc) but not aperture.
    I am on a macbook pro 17in (2.8ghzintel core 2 duo with 8gb ram)

    Ok Frank sorry i meant 10.6.7 Aperture 3 .1.2
    I try and lauch aperture (click on icon in dock..have also tried icon in application folder) and i get an error message that says Aperture cannot be opened because of a problem. check with developer..... you may need to reinstall....) tried reinstalling from disk. also downloaded updates from apple and when click on update it tells me i must have aperture 3 installed for update to work. i DO have aperture 3 installed but it wont recognize it. i have tried restarting my machine that did't help either. I am currently downloading macOSXupdCombo 10.6.6.dmg to see if that helps(worked for someone I read in one of these discussions),
    No I am not using FCPro

  • My hp support assistance wont run. it keeps stopping during updates and when deleting the temporary

    My hp support assistance wont run. It keeps stopping during updates and when deleting the temporary internet files. So it never finishes the process.. help

    The failure to remove the Temporary Files could just be due to having your internet connection active during the removal process.  For most folks, the amount of data in this directory is minimal.   If you want / need to remove the files, you could close your browser(s), make sure your Internet music and TV connections are closed, and then try removing the files manually:
    Path to Folder:
    C:\Users\--YourAccountNameHere--\AppData\Local\Microsoft\Windows\Temporary Internet Files
    Warning: 
    Do NOT remove the "Temporary Internet Folder" itself.  Go "inside" the folder before removing anything.
    ==================================================​==================================
    The HP Support Assistant is great when it works -- and not so great when it won't cooperate.  You can try removing the program from your computer and installing it again.  That may work.
    Control Panel > icon view > Programs and Features >
    Scroll down, find, and Uninstall HP Support Assistant.
    Restart your computer after uninstalling the existing version of Support Assistant.
    Install Support Assistant
    HP Support Assistant
    Using HP Support Assistant (Windows 8)
    Troubleshooting HP Support Assistant
    NOTE:  At writing, there are possible issues with HPSA version 7.x -- you might want to sitck with version 6.x for now.
    ==================================================​====================================
    If you have issues removing your version of HPSA:
    Fix problems with programs that can't be installed or uninstalled
    ==================================================​===================================
    Workaround to get Updates:
    If all avenues fail to bring joy and it just won't work, you can still get your updates from your computer's website.
                                                      ​         Install Software and Drivers from HP Website
    Go to the top of the HP forum page to Support and Drivers
    If prompted, Enter your Country or Region and
    Enter your Computer Model information,
    Go to Software and Drivers...
    Enter your Operating System in the Drop-down menu...  Scroll down
    Select desired Category
    Expand and decide if you need to install that package.
    Assure that you download and install only the most recent versions of each driver or program.
    Save the appropriate *.exe installation package on your computer
    NOTE the name and the location - the *.exe file will likely save to "Downloads “
    Install the Software / Driver installation package:  If you have ‘Admin’ control, you may highlight the package(s) and “double-click” to install, else Right-Click, Select ‘run as Administrator’ and install.
    NOTE:  There is sometimes a lot of information at the computer’s website.  Be sure to take an extended look at what’s available.
    ==================================================​====================================
    Good Luck!
    Kind Regards,
    Dragon-Fur

  • Need program for running accruals mid-month

    Hi,
    We have accruals set up at period-end (and not Receipt) at Purchasing options.
    For testing this, I cannot close period or change period date.
    I know there is program that runs Accruals for all unpaid purchase orders (possibly in payables)
    I searched, but could not find this program name.
    Please help!!!
    Regards,
    Gayatri
    Edited by: gayatri chodankar on Sep 2, 2010 4:30 AM

    Hi,
    We have accruals set up at period-end (and not Receipt) at Purchasing options.
    For testing this, I cannot close period or change period date.
    I know there is program that runs Accruals for all unpaid purchase orders (possibly in payables)
    I searched, but could not find this program name.
    Please help!!!
    Regards,
    Gayatri
    Edited by: gayatri chodankar on Sep 2, 2010 4:30 AM

  • Getting the variant name when the report program is run in background

    Hi All,
    How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
    Any pointers to this will be highly appreciated.
    Thanks and regards,
    Nilesh.

    Hello Nilesh,
    Please find the algo:
    1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
    2. Select data from TBTCP using these details:
    DATA:
    FP_EVENTID   TYPE BTCEVENTID
    FP_EVTPARM   TYPE BTCEVTPARM
    FP_ACTIVE    TYPE BTCXPGFLAG
    FP_JOBCNT    TYPE BTCJOBCNT
    FP_JOBNM     TYPE BTCJOB
    FP_STEPCNT   TYPE BTCSTEPCNT.
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          EVENTID                 = FP_EVENTID
          EVENTPARM               = FP_EVTPARM
          EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
          JOBCOUNT                = FP_JOBCNT
          JOBNAME                 = FP_JOBNM
          STEPCOUNT               = FP_STEPCNT
        EXCEPTIONS
          NO_RUNTIME_INFO         = 1
          OTHERS                  = 2.
      IF SY-SUBRC <> 0.
    *   Error calling FM: GET_JOB_RUNTIME_INFO
      ENDIF.
    DATA: FP_VARIANT TYPE BTCVARIANT.
      SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
      FROM   TBTCP
      INTO TABLE L_IT_TBTCP
      WHERE  JOBNAME   = FP_JOBNM
      AND    JOBCOUNT  = FP_JOBCNT
      AND    STEPCOUNT = FP_STEPCNT.
      IF SY-SUBRC = 0.
        SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
        READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
        IF SY-SUBRC = 0.
          FP_VARIANT = L_WA_TBTCP-VARIANT.
        ENDIF.
      ENDIF.
    Hope this helps.
    BR,
    Suhas

Maybe you are looking for