Exec XP_CMDSHELL cannot find store procedure problem

I run EXEC sp_configure 'xp_cmdshell', 1
Message is"....change from 1 to 1 "
Then
EXECXP_CMDSHELL 'Dir N:'
cannot find store procedure xp_cmdshell
I check master database.
No dbo.xp_cmdshell under store procedure.
How to fix it? I need run command
EXECXP_CMDSHELL 'Dir N:'
Thanks

Hallo Bestrongself,
- what SQL Server version do you use?
- since SQL 2005 xp_cmdshell is located in the sys-schema and the procedure itself is located in the resource database of Microsoft SQL Server.
You can check xp_cmdshell by using the following command:
SELECT * FROM sys.all_objects WHERE name = 'XP_CMDSHELL'
I bet you will see it in the master database because you cannot drop system procedures and will return an error if you try to do so:
USE master;
GO
BEGIN TRANSACTION
DROP PROCEDURE dbo.xp_cmdshell;
DROP PROCEDURE sys.xp_cmdshell;
DROP PROCEDURE xp_cmdshell;
ROLLBACK TRANSACTION
To execute xp_cmdshell you need to have [CONTROL SERVER] permissions otherwise it won't work. Let's say I have a login which I grant exclusive permissions to execute xp_cmdshell it will fail!
USE master;
GO
-- create the login and the user in master-database
CREATE LOGIN test WITH PASSWORD = 'glmdpf12345', CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF;
CREATE USER test FROM LOGIN [Test];
GO
-- grant explicit permission to execute the xp_cmdshell
GRANT EXECUTE ON sys.xp_cmdshell TO test;
GO
-- tryp to execute xp_cmdshell as test
EXECUTE AS login = 'test'
EXEC xp_cmdshell 'DIR C:';
REVERT
-- Housekeeping
REVOKE EXECUTE ON sys.xp_cmdshell TO test;
DROP USER 'test';
DROP LOGIN 'test';
As you can see from the above statement the login "Test" got exclusive permission to execute xp_cmdshell but the execution will fail with the following error message:
The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the '##xp_cmdshell_proxy_account##' credential exists and contains valid information.
The above error message is clear. Test is a "normal" user which has the permission to execute the proc BUT due to missing permissions to retrieve the information about the service account it fails!
You have to grant SERVER CONTROL to the account.
So - next step...
What is your permission on server level?
You can check your permissions by using the following statement:
-- what are my permissions on server level
-- check for CONTROL SERVER!
SELECT * FROM sys.fn_my_permissions (NULL, 'SERVER') ORDER BY permission_name;
-- what are my permissions for the object xp_cmdshell
SELECT * FROM sys.fn_my_permissions('xp_cmdshell', 'OBJECT');
Can you provide us with the results of the above query?
BTW: xp_cmdshell is a well documented statement and official command which is fully supported by Microsoft. You can find all information about functionality and security of xp_cmdshell here:
http://technet.microsoft.com/en-us/library/ms175046.aspx
MCM - SQL Server 2008
MCSE - SQL Server 2012
db Berater GmbH
SQL Server Blog (german only)

Similar Messages

  • Cannot find stored procedure in Programmability despite being executed successfully

    Hi
    I have created a Stored Procedure in SQL Server which is parsed and executed successfully but when I check it in Programmabilty-> Stored Procedures I cannot find it. After refreshing the whole database and also restarting SQL Server, the problem is occuring.
     Help with a solution.
    The Stored Procedure is
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'Issues') AND type in (N'U'))
    BEGIN
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'DeleteIssue') AND type in (N'P', N'PC'))
    BEGIN
    DROP PROCEDURE DeleteIssue
    END
    EXEC sp_executesql @statement = N'CREATE PROCEDURE DeleteIssue
    @issueId INT
    AS
    BEGIN
    DELETE
    FROM
    Issues
    WHERE
    IssueId = @issueId
    END
    END 
    Thanks and Regards
    Sarthak

    May be you are checking in the wrong database or the conditions to create the SP is  not met(Issues
    table doesn't not exist in the db). What is the output from this query?
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'Issues') AND type in (N'U'))
    BEGIN
    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'DeleteIssue') AND type in (N'P', N'PC'))
    BEGIN
    DROP PROCEDURE DeleteIssue
    END
    EXEC sp_executesql @statement = N'CREATE PROCEDURE DeleteIssue
    @issueId INT
    AS
    BEGIN
    DELETE
    FROM
    Issues
    WHERE
    IssueId = @issueId
    END
    END
    ELSE
    BEGIN
    print'ISSUE doesnt exist'
    end
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • TS2890 cannot find store under settings on my ipod touch

    I have an older ipod touch and want to access the store but it will not let me connect to Itunes store. I cannot find the store under settings to setup my apple account. Is this because I have an old ipod touch?
    Thanks

    You need to update the iOS on the iPod. you need at least iOS 2.x but very few apps work with that iOS.
    The last update for your model iPod is 3.1.3 that you get here:
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

  • BODS cannot create store procedure at DB2 at Unix

    Hi,
    I run BODS X3.1 and it can't create, drop store procedures at DB2 at unix. It recommends to authorize the user to do so. However, I have checked DB2 online doc, it mentioned need to set CREATE PROCEDURE authority. However, I can't find any command to do it.
    Does anyone using DB2 that can provide help?
    Thank you.

    I think I got found the bug. It is select from a regular table to load another regular table using Auto correct load method. If only normal loading, no create procedure sql is generated and no warning message.
    For using Auto correct load method:
    (1) first, it got to perform drop procedure as:
    DROP PROCEDURE "BODSOWN".di1125368_1FOOTE; .
    Note:
    (a) I run this command at db2 and it contain syntax error, saying:
    SQL0104N  An unexpected token ";" was found following "WN".di1125368_1FOOTE".
    (b) which mean the semicolon ; is not needed. If I delete this ; away, it can go through but still will complain the stored procedure "BODSOWN.di1125368_1FOOTE" doesn't exist. But that is another issue which is expected.
    (2) secondly, It will generate a CREATE PROCEDURE as such:
    CREATE PROCEDURE
    "BODSOWN".di1125368_1FOOTE ( IN before_c1  VARCHAR (100)  , IN after_c1  VARCHAR (1) , IN after_c2  VARCHAR (40) , IN after_c3
    INTEGER , IN after_c4  VARCHAR (100)  )
    LANGUAGE SQL
    BEGIN
    DECLARE local_var INT DEFAULT 0;
    SELECT COUNT(*) INTO local_var
    FROM "BODSOWN"."FOOTER_RECORD"
    WHERE "DI_FILENAME" = before_c1 ;
    IF local_var = 0 THEN
    INSERT INTO "BODSOWN"."FOOTER_RECORD" ("RECORD_TYPE", "SRCSYS_OR_COUNTER", "ROW_COUNTER", "DI_FILENAME")
    VALUES (after_c1, after_c2, after_c3, after_c4 );
    ELSE
    UPDATE "BODSOWN"."FOOTER_RECORD"
    SET "RECORD_TYPE" = after_c1 ,
    "SRCSYS_OR_COUNTER" = after_c2 ,
    "ROW_COUNTER" = after_c3 ,
    WHERE "DI_FILENAME" = before_c1 ;
    END IF;
    END
    Note:
    (a) this create procedure contains syntax error, the line "ROW_COUNTER" = after_c3 , a comma shouldn't be inserted which afterward is the WHERE clause. Meaning is should be "ROW_COUNTER" = after_c3  without comma.
    (b) if i run this create procedure at db2 without the comma error, it will be successful, if not if will give error saying:
    SQL0104N  An unexpected token ""DI_FILENAME"" was found following "" =
    after_c3 , WHERE".

  • "Cannot find symbol" error problem

    I've got problem with compiling this program:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SliderDemo extends JFrame {
         private JSlider diameterSlider;
         private ovalPanel myPanel;
         public SliderDemo()
              super( "Изменение диаметра круга" );
              myPanel = new ovalPanel();
              myPanel.setBackground( Color.YELLOW );
         diameterSlider = new JSlider( SwingConstants.HORIZONTAL, 0, 200, 10 );
         diameterSlider.setMajorTickSpacing( 10 );
         diameterSlider.setPaintTicks( true );
         diameterSlider.addChangeListener(
              new ChangeListener() {
                   public void stateChanged( ChangeEvent e )
                        myPanel.setDiameter( diameterSlider.getValue() );
         Container container = getContentPane();
         container.add( diameterSlider, BorderLayout.SOUTH );
         container.add( myPanel, BorderLayout.CENTER );
         setSize( 220, 270 );
         setVisible( true );
         public static void main( String args[] )
              SliderDemo application = new SliderDemo();
         application.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    }Compiler shows 2 errors, looking similar:
    SliderDemo.java:12: cannot find symbol
    symbol : class ovalPanel
    location: class SliderDemo
    private ovalPanel myPanel;
    SliderDemo.java:18: cannot find symbol
    symbol : class ovalPanel
    location: class SliderDemo
    myPanel = new ovalPanel();
    What can I do with it. I checked everything on Internet and books, but it still not compiling!

    possible problems are:
    1. you haven't created an ovalPanel() class in your sliderDemo class
    2. you have created an ovalPanel() class in separate file but you didn't save it with the same directory with your sliderDemo class

  • JTA (EJB-- Store Procedure) Problem

    I'm currently facing a problem that I'm not sure how to fix it.
              I have a Controller class that is accessing many EJB (Session Stateless Container Managed) that are a kind of Store Procedures' Wrappers.
              The Controller initializes the transaction using the UserTransaction and it commits or rollback as needed, also de EJBs at some points use the setRollbackOnly() and also inside the store procedures are some explicit commits.
              What should I expect in the following scenario:
              UserTransaction ut=null;
              try {
              ut = getUserTransaction();
              ut.begin();
              ejb1.update(); //Calls a store procedure that in the pl/sql calls commit
              ejb2.delete(); //Inside the Ejb some component throws an exception and is catched by the Ejb, then it calls setRollbackOnly() and throws a new Exception
              ut.commit();//This is not called because the previous exception
              } catch(Exception e){
              ut.rollback();//Rollback is called
              1) Is the modified data inside ejb1.update saved?
              2) Is this all wrong?
              3) What could it be a right approach to refactor this?
              Thanks,
              Johann

    johann renck wrote:
              > There is one store proc who cares about logging that is called by many others sp that
              > is the one who does commit and also is wrapped by an Ejb so it is also called inside
              > the application. Have this sp its own transaction context so when it does commit it
              > just commits the logging?
              >
              > Thanks,
              > Johann
              Yes, always. Any procedure that calls begin tran, commit, rollback, or any other call that
              changes the transactional behavior of the session, must be isolated from everything that
              WebLogic thinks is part of a transaction. Otherwise you're just going to jeopardize the
              integrity of your WebLogic-defined transactions. Ideally, you want all your transactions
              defined and controlled at one level. From the EJB/WebLogic point of view it would be much
              safer and superior to never call any procedure that had such stuff, and then do logging
              as it's own WLS EBJ tx, called everywhere needed, from within but separate from larger EJB
              transactions. Even if a logging EJB did nothing besides writing one log row, the procedure
              shouldn't call commit. The EJB system will do that.
              Note well: Anything that calls that logging procedure with the commit, commits it's
              current possibly partial transaction to that point. The DBMS connection only has one
              transaction going on at a time, and a commit permanently locks in everything changed since
              the last commit. It is not good architecture to have commits in any utility procedure.
              At the very least, if your procedures want a transaction, they should start and end
              in one procedure, eg:
              BEGIN
                   declare boolean variable in_tx
              set in_tx true if @@trancount > 0
                   if (not in_tx) BEGIN TRAN -- Otherwise, just become part of current tx
                   ... do work... this is only needed for multi-update work
              if (not in_tx) COMMIT TRAN
              END
              If the procedure only does one update/insert/delete *you don't need any
              tx control*! eg:
              BEGIN
                   insert into mylogtable values (.....)
              END
              That one insert will be part of any ongoing tx if extant, or
              will be it's own one auto-commit tx.
              If you have a procedure that must be it's own tx, then you must
              do:
              BEGIN
                   if (@@trancount > 0) raiserror("Can't call this procedure from an ongoing transaction. It must be able to commit immediately")
              END

  • HT1420 I am told to "Authorise my Computer" Click on "Store" ??? Then click on "Authorise Computer" But I cannot find "Store"??

    I am told to "Authorise my Computer" because certain things cannot be synced? So they say simply??? Click on "Store" then "Authorise this Computer"  Doooohh!!! So can someone please tell me where I find "Store" then where I find "Authorise this Computer" I was planning to move over from MicroCRAP to Apple as I believed they were a little brighter and more User Friendly BUT it seems that Apple are just as good at hiding simple things, Giving Ambiguous or misleading instructions and Making things that should be simple as Confusing as Possible??  Can someone PLEASE explain where I find "Store" then "Authorise my Computer" Because try as I may I cannot find it!!

    If you have a Windows system and are using iTunes 11, press Control-B to show the menus. Then the "authorize" command will be under the Store menu.
    Regards.

  • With Firefox 22, whenever I turn on computer after hibernation Firefox crashes. Why and how do I fix this? I cannot find this exact problem on your site.

    When I am done with my computer I close the lid which sends it into hibernation. Usually I have 2-3 windows open with 3-10 tabs each. There has never been a problem until I upgraded to version 22. Now whenever I start the computer the windows will come up but the cursor cannot open or change anything. The task manager actually says the program is running, but it remains completely inaccesible until I completely restart, and then have to restore previous session.
    I tried a system restore to the version 21, but it did not correct the problem. It still hangs up everytime. I am having to go to the Chrome browser to get a working browser. I just did as this site suggested and went to the default. Did not help either.
    My OS is Windows 7 if that matters.

    Firefox 21 and Firefox 22 running on Windows 7 have been reported to take a long time to "wake up" from sleep. I realize hibernation is different than sleep, but... this is the closest match for your description.
    Some users have reported that this problem is resolved in Firefox 23 (currently in beta). Others have had inconsistent luck with minimizing Firefox before letting Windows sleep and other measures.
    Please check out this (very long) thread for more information: [https://support.mozilla.org/questions/961898 browser freezes after resuming from sleep]
    Or jump to the part about Firefox 23: https://support.mozilla.org/questions/961898?page=3#answer-457321
    The fact that this just started recently suggests perhaps it is related to another program or update, but I don't think anyone has confirmed the exact interaction that causes the problem.

  • Almost every website requires multiple tries because "cannot find server". Problem started about 10 days ago

    Whether I use bookmarks or type a url and then click I get a message that the server cannot be found. I click on try again as many as seven times before the site comes up. This is happening with almost every site from Google to blogs.

    UPDATE: I had 36 Safari windows open and minimized on the dock from my last session; 20 of those windows failed to open b/c Safari "couldn't find the server"; I just went to the URL bar of all 20 pages and clicked return, and all 20 pages loaded perfectly, without dropping any images or losing formatting. This is a puzzle!!!

  • Double store procedure problem

    Hi all
    I have something like String[] checked = request.getParameterValues("mybox");
               HttpSession userSession = request.getSession(true);   
               HttpSession session=request.getSession();
               String first=(String)session.getAttribute("first");
               String select ="";
               String Myall =" ";
            try {             
              if(first==null){
                 conn =connectionPool.getConnection();
                  cs = conn.prepareCall("{call download_Onepage(?)}");                
               for(int i=0; i<checked.length;i++){
                   select=checked;
    cs.setString(1,select);
    connectionPool.returnConnection(conn);
    rs = cs.executeQuery();
    while(rs.next()) { 
    MyDataBean mydata = new MyDataBean();
    mydata.setName(rs.getString("Name"));
    mydata.setSequence(rs.getString("sequence"));
    data.add(mydata);
    }//end for
    }//end if
    else{
    conn =connectionPool.getConnection();
    cs = conn.prepareCall("{call checked()}");
    connectionPool.returnConnection(conn);
    while(rs.next()) {
    Myall=rs.getString("NewNum");
    conn =connectionPool.getConnection();
    cs = conn.prepareCall("{call download_Onepage(?)}");
    cs.setString(1,Myall);
    // cs.setString(1,Myall);
    connectionPool.returnConnection(conn);
    rs = cs.executeQuery();
    while(rs.next()) { 
    MyDataBean mydata = new MyDataBean();
    mydata.setName(rs.getString("Name"));
    mydata.setSequence(rs.getString("sequence"));
    data.add(mydata);
    }//end while
    }// end else
    my if work find and else always got not point error, why ??
    and my storr procedure is
    create proc checked
    AS
            begin
        begin transaction
            select * FROM pubs.dbo.temp
              if @@error <>0 or @@rowcount !=1
               begin
                    rollback
                   return
              end
           commit transaction
    end
    GO

    why is imposible to use the result in one procedure to call another procedure ??
    if my code is one procedure like I got the out put
    cs = conn.prepareCall("{call checked()}");
                     ResultSet rs = cs.executeQuery();                    
             while(rs.next()) {  
            NewNum=rs.getString("NewNum");  }
    out.print(""+NewNum+"");but if I add othe rprocedure I got nothing
    while(rs.next()) {  
    NewNum=rs.getString("NewNum"); }
    cs = conn.prepareCall("{call download_Onepage(?)}");
    cs.setString(1,NewNum);
    rs = cs.executeQuery();
    while(rs.next()) {  
    Name=rs.getString("Name"); }
    out.print(""+NewNum+"");
    out.print(""+Name+"");
    out.print("</body></html>");
    out.close();

  • Cannot find specified file?

    so i just got a 30 gig 5gen iPod a couple days ago.
    i went to link it with my PC, and a screen pops up and says
    "an error occured during the installation of this device
    The system could not find the file specified"
    iTunes dosen't see it, neither does my computer.
    any tips?

    I got exactly the same error mesage for thelast week or so.
    I checked and the iPOD still gets updated and synchronized, I believe. However, there must be some file that's missing, is corrupt or must have been deleted (I certainly did not delete it manually) that the Synchronization process cannot find.
    The problem is that I am unable to find that file, and iTunes does not have a detailed error log to find out what file it has trouble with. Is there any way to find out?

  • I have my download content code for the new Mountain Lion, and the printed instructions tell me to open the App Store select 'Redeem" in the quick links, enter my code. The problem is I cannot find the "Redeem" word in the quick links?  Where and why does

    How do I find the REDEEM word in the quick links section of the Mac App Store?  In fact I cannot find the quick Links either?

    Click the Featured tab, and look on the right hand side...

  • Permission problem calling a java object from a store procedure

    When I run my store procedure
    CREATE OR REPLACE PACKAGE BODY confirms_write_to_file
    AS
    FUNCTION translate(in_en_var in VARCHAR2)
    RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'translate.translatePath(java.lang.String) return java.lang.String';
    PROCEDURE write_to_file(in_file_name IN VARCHAR, in_en_var IN VARCHAR)
    IS
    file_handle               UTL_FILE.FILE_TYPE;
    file_location VARCHAR2(50);
    BEGIN
    file_location := translate(in_en_var);
    dbms_output.put_line ('opened file location' ||file_location);
    END write_to_file;
    END confirms_write_to_file;
    I get the following error:
    exec confirms_write_to_file.write_to_file('zzzz','$RIMS_LOG');
    SQL> exec confirms_write_to_file.write_to_file('zzzz','$RIMS_LOG');
    Exception java.security.AccessControlException: the Permission
    (java.io.FilePermission <<ALL FILES>> execute) has not been granted by
    dbms_java.grant_permission to
    SchemaProtectionDomain(RIMS|PolicyTableProxy(RIMS))
    opened file locationProcess problem
    PL/SQL procedure successfully completed.
    When I try to to grant myself the permissions
    begin
    dbms_java.grant_permission('rims','java.io.FilePermission','*','execute');
    dbms_java.grant_permission('rims', 'java.lang.RuntimePermission', '*','writeFileDescriptor' );
    end;
    I get the following Error:
    oracle.aurora.vm.IdNotFoundException: rims is not a user or role
    at oracle.aurora.rdbms.DbmsRealm.getId(DbmsRealm.java)
    at oracle.aurora.rdbms.DbmsRealm.getId(DbmsRealm.java)
    at
    oracle.aurora.rdbms.security.PolicyTableManager.findAll(PolicyTableManager.java)
    at oracle.aurora.rdbms.security.PolicyTableManager.find(PolicyTableManager.java)
    at
    oracle.aurora.rdbms.security.PolicyTableManager.activate(PolicyTableManager.java
    at
    oracle.aurora.rdbms.security.PolicyTableManager.grant(PolicyTableManager.java)
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.aurora.vm.IdNotFoundException: rims is not a user or role
    ORA-06512: at "SYS.DBMS_JAVA", line 0
    ORA-06512: at line 2
    My java code is as follows
    import java.io.*;
    import java.util.*;
    class translate
         public static String translatePath(String envar)
              Runtime rt = Runtime.getRuntime();
              int bufSize = 4096;
              byte buffer[] = new byte[bufSize];
              String path = null;
              Process p = null;
              int len = 0;
              try
                   p = rt.exec("echo "+envar);
                   BufferedInputStream bis = new BufferedInputStream(p.getInputStream());
                   while ((len = bis.read(buffer, 0, bufSize)) != -1)
                        System.out.write(buffer, 0, len);
                   path = new String(buffer);
                   p.waitFor();
              catch(Exception e)
                   System.out.println("Exception "+e);
                   return "Process problem ";
              return path;

    Tony,
    I answered this very same question that you posted at the JavaRanch forum.
    Good Luck,
    Avi.

  • Since I uploaded the new OS X Mavericks the App Store, Messages, Notes, Calendar, Maps and Preview will not launch/open. In Finder cannot find my files. Most crucially cannot upgrade OS X Mavericks software. I had two apple ID's, the old one not used

    Since I uploaded the new OS X Mavericks the App Store, Messages, Notes, Calendar, Maps and Preview will not launch/open. In Finder cannot find my files. Most crucially cannot upgrade OS X Mavericks software. I had two apple ID's, the old one not used

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • The system cannot find the path specified - Problems

    I am having an issue that I am hoping someone can help figure out for me.
    I am currently learning Java, and am working with the Beginning Programming with Java for Dummies book second edition. I have downloaded and am running the Java 6 program and am using the JCreator 3.5Pro that was recommended to run the Practice files for the Dummies book.
    I have the practice files here:
    C/Program Files/Xinox Software/JCreatorV3/My Projects
    While trying to compile one of the practice files, I get this error message:
    --------------------Configuration: MyNewProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    javac: file not found: src_mynewproject.txt (The system cannot find the path specified)
    Process completed.
    **When I try to execute, I get this error message:**
    --------------------Configuration: MyNewProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: EchoLine
    Caused by: java.lang.ClassNotFoundException: EchoLine
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: EchoLine. Program will exit.
    Exception in thread "main"
    Process completed.
    When I set up the new file, and the new class, I confirmed the file path.
    I know most people will ask if I am absolutely certain I put in the code in properly, and yes I did. It was a matter of copying word for word, and punctuation. I did it 100% correctly. About 12 times. I have NO idea what this means, but I would REALLY REALLY appreciate any help on this.
    Please keep in mind, I am slightly clueless, and really need to have any help dumbed down a bit. Lol.
    As a side note, this isn't my first project, and I haven't had this problem before now.
    thanks in advance. =)

    So I wanted to clarify what I've done a bit more since I decided to redownload the dummies programs for the program and try again.
    I will try to list my steps in order of what I did and see if I've gone wrong somewhere along the line.
    I downloaded my project files from here: http://ca.dummies.com/store/product/Beginning-Programming-with-Java-For-Dummies-2nd-Edition.productCd-0764588745,navId-322469,descCd-DOWNLOAD.html
    I unzipped them this time here: C:\Program Files\Java\jdk1.6.0_21\MyProjects\
    I opened JCreator 3.5 and starting fresh, with all previous projects deleted and clicked on "Open Workspace". I chose "MyWorkspace.jcw". Right clicked MyWorkspace and chose "Add new Project" and then chose "Empty Project". As per the books instruction for the first project, I named it "MyFirstProject". My file path was: C:\Program Files\Java\jdk1.6.0_21\MyProjects\MyFirstProject. Which is where I upzipped the files. I added it to current workspace and clicked finish.
    I then added a new class. As per the books instructions, I right clicked "MyFirstProject" and selected Add New Class. For the name, I used MyFirstJavaClass, which is what the book told me to do. My locations are the exact same as above. and I clicked on Generate new Method, as it told me to. Which it doesn't in the next few lessons, so I know this has nothing to do with it. For that and a few other reasons. Lol.
    I clicked on Finish.
    All I had to do was replace a single line of code. Not type it all in this time.
    Here is what shows up on the screen:
    class MyFirstJavaClass {
         * Method main
         * @param args
         public static void main(String[] args) {
              // TODO: Add your code here
    I need to change the : // TODO: Add your code here
    with the line:
    System.out.println.("Chocolate, royalties, sleep");
    When I do this, and compile project, I get this:
    --------------------Configuration: MyFirstProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    javac: file not found: src_myfirstproject.txt (The system cannot find the path specified)
    Process completed.
    AGAIN! But it worked a few days ago.
    And when I execute, I get this:
    --------------------Configuration: MyFirstProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: MyFirstJavaClass
    Caused by: java.lang.ClassNotFoundException: MyFirstJavaClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: MyFirstJavaClass. Program will exit.
    Exception in thread "main"
    Process completed.
    I really hope the extra info helps someone help me!
    thank you!
    Edited by: MissPamela on Jul 19, 2010 3:23 PM

Maybe you are looking for

  • How to insert and  view data in a structure???

    Hi to everyone! I'm trying to append my user define table to a standard table. First i tried like this. 1. I went to the append structure in a transparent table, created one and then included my table in it. It says table cannot be appended in the da

  • Purchase order text field

    Dear Gurus, I need to maintain text in some materials in purchase order text view in material master through LSMW. Please tell field and table where this purchase order text is stored. I have checked some threads also but not clear. regards VB

  • Recently added playlist

    my recently added list doesn't show up on my ipod and doesn't work on my itunes on my computer. I don't know what to d

  • How to concatenate a "name.target" with string?

    Hello, how are you? I have this issue: I have a function -let's call this function "dad", that receives a parameter -let's call it "parameter". Inside dad function, I need to concatenate parameter with a string, to call a function outside function da

  • Mini 2009 won't boot but will boot holding option key...

    My mini early 2009 with OS X 10.8.2, won't boot normally, it will show a black screen after a while then will appear in large letters this: No bootable device -- insert boot disk and press any key. So, I unplug the power cord and wait a minute and re