Cannot access Graphics - bad class file

Hey.
When I try to compile my source I get an error saying...
.\Man.java:146: cannot access Graphics
bad class file: .\Graphics.java
file does not contain class Graphics
Please remove the files or make sure it appears in the correct subdirectory.
It's on a different computer so that's not exactly it, but it's close enough. Compiler was working fine until the other day when i found out that all the source files were zipped up in src.zip, I had to extract Graphics.java so I could open it in emacs, and after I did that it started giving me that error message. There's nothhing wrong with my source, and I didn't move Graphics, it's still in the correct place exactly as it was, and i looked at it, all the right stuff is still inside. I'm quite confused.
So do I have to reinstall? That would mean a massive download on my 56k and I kinda wanna carry on with my work.

You should not need to unzip src.zip to use the Graphics class or any class that comes with j2sdk. The compiled classes are in jar files that are installed in certain directories when you install the j2sdk.
You should only need to have a line "import java.awt.Graphics;" near the start of your source code.
The error most likely occurred when the compiler found a Graphics.class file but inside the file is java.awt.Graphics class, not a plain Graphics class.

Similar Messages

  • Cannot access JScrollPane, bad class file !!!!

    Hi everybody. I have got a big big problem. I can not compile my code because this message alwayes is displayed:
    C:\Java\hosseindab\Dabb.java:8: cannot access JScrollPane
    bad class file: .\JScrollPane.class
    class file contains wrong class: javax.swing.JScrollPane
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    private JScrollPane skrollytan;
    I tried to uninstall and reinstall SDK och Textpad, but it didn't work. I even installed them on another computer, but it was the same problem. I do not know what has happened. I have tried j2SDK 1_3_1_15 and j2sdk 1_4_0_01. No use. I could compile the same files some hours ago, but now the Textpad says NO, NO, NO!!! and generates the above error. Just please help me, I don't have much time to deliver my java program.
    The code is:
    import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       public class Dabb extends JFrame implements ActionListener
           private JLabel lBild1,lBild2,lBild3;
           private JScrollPane skrollytan;
           private JPanel panelen;
           private JRadioButton knapp1, knapp2, knapp3;
       private JSplitPane delning;
       private ButtonGroup gruppen;
       public Dabb()
            lBild1 = new JLabel(new ImageIcon("Solnedg�ng.jpg"));
            lBild2 = new JLabel(new ImageIcon("Vinter.jpg"));
            lBild3 = new JLabel(new ImageIcon("Bl�a kullar.jpg"));
            skrollytan = new JScrollPane();
            panelen = new JPanel();
            gruppen = new ButtonGroup();
            knapp1 = new JRadioButton("Solnedg�ng",true);
            knapp2 = new JRadioButton("Vinter",false);
            knapp3 = new JRadioButton("Bl�a kullar",false);
            delning = new JSplitPane();
            delning.setLeftComponent(panelen);
            delning.setRightComponent(skrollytan);
            Container c =  getContentPane();
            c.add(delning);
            delning.setMinimumSize(new Dimension(300,300));
            panelen.setLayout(new BoxLayout(panelen,
                                   BoxLayout.Y_AXIS));
            gruppen.add(knapp1);
            gruppen.add(knapp2);
            gruppen.add(knapp3);
            panelen.add(knapp1);
            panelen.add(knapp2);
            panelen.add(knapp3);
            knapp1.addActionListener(this);
            knapp2.addActionListener(this);
            knapp3.addActionListener(this);
            setSize(600, 400);
            setVisible(true);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
       public void actionPerformed(ActionEvent e)
            Object o = e.getSource();
            if(o == knapp1)
                skrollytan.setViewportView(lBild1);
            else if(o == knapp2)
                 skrollytan.setViewportView(lBild2);
            else if(o == knapp3)
                 skrollytan.setViewportView(lBild3);
       public static void main(String [] argv)
            Dabb v = new Dabb();
        }

    Your post compiles for me, no errors.
    As a guess. you have a problem classpath or mislocated or duplicate files.
    This line is especially suspect: bad class file: .\JScrollPane.class
    What is that leading period? Do you have a file named ScrollPane?
    Something else in the computer is bad, not the program.
    Try compiling from the commandline.

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Javac probleme: bad class file error

    I'm new to java
    I have two classes myPoint.jav and TestPoint.java, when I compile them, I error:
    in the command line I type:
    C:\otman\java>javac -g geometry\src\myPoint.java TestPoint.java
    TestPoint.java:8: cannot access myPoint
    bad class file: c:\otman\java\geometry\src\myPoint.class
    class file contains wrong class: geometry.src.myPoint
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    myPoint p = new myPoint();
    ^
    1 error
    Can some one help me Thanks
    //Here is the class c:\otman\java\TestPoint.java
    import geometry.src.*;
         Testing my class Point
    public class TestPoint {
    public static void main(String[] args) {
              myPoint p = new myPoint();
              System.out.println("thank you very much");
              System.exit(0);
    // And here is the class c:\otman\java\geometry\src\myPoint.java
    package geometry.src;
         class myPoint members and methods of a 3D point
    public class myPoint {
         private double m_x,m_y,m_z;          // the coordinates
         public double getx() {return m_x;}
         public double gety() {return m_y;}
         public double getz() {return m_z;}
         public void setx(double x) {m_x=x;}
         public void sety(double y) {m_y=y;}
         public void setz(double z) {m_z=z;}
         public void translate(double dx,double dy, double dz) {
              m_x += dx;m_y += dy;m_z += dz;
         // Constructor ------------------------------------------------------------
         myPoint(double x,double y,double z) {
              m_x=x;m_y=y;m_z=z;
         myPoint() {
              m_x=0;m_y=0;m_z=0;
         myPoint(myPoint p) {
              m_x=p.getx();m_y=p.gety();m_z=p.getz();
    // ---------------------------------------------------------------------------------

    Thank you for the reply but still have problem.
    I created a directory classes and the directories look like:
    C:\otman\java\
    TestPoint.java
    classes\
    geometry\
    src\
    myPoint.java
    When I compile using the line command:
    C:\otman\java>javac -g -d classes geometry\src\myPoint.java TestPoint.java
    I get the error:
    TestPoint.java:8: cannot find symbol
    symbol : constructor myPoint()
    location: class geometry.src.myPoint
    myPoint p = new myPoint();
    ^
    1 error
    Now the directories look like:
    C:\otman\java\
    TestPoint.java
    classes\
    geometry\
    src\
    myPoint.class
    geometry\
    src\
    myPoint.java
    I think that myPoint was compiled without problem but TestPoint was not compiled and it gives 1 error.
    Can you help me? Thanks.<!--Session data-->

  • UDF error: bad class file

    Hi to all!
    i faced with following problem:
    i'm trying to use in message mapping exported Java function and get following error:
    <i>Source code has syntax error:  E:/usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb97a3fc699d611dcaf9d001b78d07a70/source/com/sap/xi/tf/_UserToRoleId_.java:3: cannot access kolpix.echo bad class file: E:\usr\sap\DXI\DVEBMGS00\j2ee\cluster\server0\.\temp\classpath_resolver\Mapb97a3fc699d611dcaf9d001b78d07a70\classpath\Echo_1(kolpix/echo.class) class file has wrong version 50.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import kolpix.echo; ^ 1 error</i>
    There is my Java function:
    package kolpix;
    public class echo {
        public echo() {
        public static String hello(String str) {
            return "Hello "+str+"!";
    in UDF into the <b>Imports</b> textField i just put <b>kolpix.echo;</b>
    and in body function i just put <b>return echo.hello("World");</b>
    Could any one explain what does it mean and what i must do to solve the problem?
    Thx in advance.

    <a href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183240">That info explain all</a>

  • Bad Class File error - Win2k & J2SDK1.4.0_01

    Hi,
    I am trying to run a 'Hello World' program which came with the FreeTTS package from links from the java.sun.com website, and am not able to compile the program. I get the error:
    FreeTTSHelloWorld.java:4: cannot access file
    cl.com.sun.speech.freetts.audio.Voice
    bad class file: .\cl\com\sun\speech\freetts\audio\Voice.class
    class file contains wrong class: com.sun.speech.freetts.Voice
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import cl.com.sun.speech.freetts.audio.Voice;
    _______________________________________^
    The FreeTTSHelloWorld.java File is printed below [its embarassingly simple..]
    * Copyright 2001 Sun Microsystems, Inc.
    import cl.com.sun.speech.freetts.audio.Voice;
    import cl.com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    import cl.com.sun.speech.freetts.en.us.CMULexicon;
    public class FreeTTSHelloWorld {
    public static void main(String[] args) {
         try {
         String voiceClassName = (args.length > 0) ? args[0] :
              "com.sun.speech.freetts.en.us.CMUDiphoneVoice";
         Class voiceClass = Class.forName(voiceClassName);
         Voice helloVoice = (Voice) voiceClass.newInstance();
         helloVoice.setLexicon(new CMULexicon());
         helloVoice.setAudioPlayer(new JavaClipAudioPlayer());
         helloVoice.load();
         helloVoice.speak
              ("Thank you for giving me a voice. I'm so glad to say
    hello to this world.");
         System.exit(0);
    catch (Exception e) {
         e.printStackTrace();
    I've tried a billion things, including moving around the .class files [which, by the way, i extracted myself from the .jar files which came with the FreeTTS package - is that what i'm doing wrong? if so, please tell me - ] and still nothing happens - the same error results.
    I've tried reading other cases similar to mine in the forums, but most of the things i read didn't apply to my (quite simple) situation, such as the 'package' line needing to be removed or anything like that..
    I run Win2k and have j2sdk1.4.0_01 installed on my machine
    I beg for anyone's help. Thanks in advance
    -=-Miagi-=-

    Aha!
    Extracting from the jar file might be ok, as long as the directory it's extracted into reflects the class's package name. Open the jar file using WinZip and you'll see that the files it contains are in directories that exactly mirror (including case) the package names.
    The error you're getting tells you that java is looking in .\cl\com\sun\speech\freetts\audio\Voice.class (the '.\' means relative to your current working directory) and my bet would be that the file is not there!
    You shouldn't need to extract these files at all, actually: Try deleting the files you extracted from the jar then try running your program again.
    I hope this is helpful...
    Chris.

  • Bad class file: WSRP_v2_Registration_PortType ...

    I've been trying to deploy a portlet to a 10.1.3.2 Portlet Container on OAS 10g without much luck. The portlet deploys correctly to the standalone OC4J within JDeveloper. Here is the error:
    ... \application-deployments\Portlet\Portlet\oasis\names\tc\wsrp\v2\bind\runtime\WSRP_v2_Registration_Binding_SOAP_Tie.java:930: cannot access oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer
    bad class file: ... \application-deployments\Portlet\Portlet\oracle\portlet\wsrp\v2\soap\runtime\WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer.java
    file does not contain class oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    new oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer(ENCODE_TYPE, NOT_NULLABLE, SOAPVersion.SOAP_11), SOAPVersion.SOAP_11);
    ^
    1 error
    The class it is complaining about is in wsrp-stubs.jar. I've included the jar in my deployment from JDeveloper and placed it in OAS as a shared lib and import it into the classpath at deployment time. The sample portlets distributed with the portlet container deploy without issue. I'm out of ideas. Any thoughts you have would be appreciated. Thanks!
    -Jason

    Boing.

  • Bad class file error

    Hi
    I set my java home to JDK 1.4 and execute my build.It is ok.
    Then i try the same by setting JDK 1.5 as java home. build is ok.
    But now i need to use only JDK 1.4.So i set my java home as jdk 1.4 and try to execute the build.xml
    Now i got the error of class file has wrong version 49.0, should be 48.0
    I understand that the class files(49.0) which are created by JDK 1.5 and i try to execute those by JDK 1.4.
    But i donot knwo how to solve this.
    Will anybody please help me to solve?
    Thank you

    Hi
    I didnot compile java files with JDK 1.4 and 1.5 both.
    First time i use JDk 1.4. for all java files
    Second time i use JDk 1.5 for all java files.
    Finally i should use JDK 1.4. So i come to jdk 1.4 and set java home jdk 1.4 and exucute my build.xml. Then i got the bad class file error.
    Can u help me at this point?
    Thank you

  • BAD CLASS FILE ERROR WHEN TRYING TO CALL JAVA CLASS IN WEB-INF DIRECTORY

    I AM NEW TO THIS FORUM. PLEASE HELP ME IDENTIFY/RESOLVE THIS ERROR - bad class file: /java/tomcat/webapps/ChoiceTel/WEB-INF/classes/XYZ/SMUA.class. OTHER JSP SCRIPTS THAT CALL JAVA CLASSES DO WORK WELL.
    THE FUNNY THING ABOUT COMPILIING THIS JAVA CLASS WAS - I HAD TO A jar xvf OF activation.jar and mail.jar IN THE XYZ DIRECTORY BEFORE SUCCESSFULLY COMPILING SMUA.
    THE CALL BEING MADE FROM THE JSP SCRIPT IS AS FOLLOWS:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <BODY>
    <%@ page import="XYZ.*" %>
    <%!
    %>
    <%
    SMUA sndmail = new SMUA();
    sndmail.postMail ("[email protected]","Test Subject","What Message","[email protected]");
    %>
    </BODY>
    </HTML>

    Dude. Please don't shout. If your keyboard is like mine, it can produce both upper and lower case letters. Please use them appropriately.
    Do you have the activation.jar/mail.jar available in the WEB-INF/lib directory for this application?

  • Cannot access remote FoxPro dbf file using jdbc-odbc and system DSN

    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database. I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

    Laura Ren wrote:
    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database.What exception do you get? WebLogic is just like any other Java App. That code
    should work OK (though I have a better way)... Be warned that the JDBC ODBC
    bridge is specifically dangerous. It is not threadsafe.
    Joe
    I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

  • Bad class file

    This is probably a very basic issue but here it goes: I've been developing a web application in tomcat. Originally we were using the JWSDP 1.3 bundle. I decided to download tomcat 4.1.3 and tried to run the application. I keep getting "bad class errors" and something about tag pool 13 of 10. Any clue as to what is causing the problem? I think it has something to do with the classpath environment variable in windows XP, unfortunately the IT people must have changed my user rights b/c I can no longer edit/change the System variables., I've tried adding a user variable CLASSPATH with the new path to the application, but it still doesnt seem to work.
    Thanks for any help

    Because this is the only post Google returns for "netbeans bad constant pool tag", I'd like to add this (even though the post is many years old):
    The original post mentions Windows XP and CVS - so my recent experience may be relevant.
    I moved a bunch of Netbeans projects via Windows onto a Linux server to add them to a CVS repository.
    When I reentered the Projects into Netbeans all hell broke loose : for example: projects compiled clean but the IDE red-flagged them; libraries showed up on the Project Property sheets but were absent in the Libraries tab under the Project in the Projects tree. Netbeans itself appeared to be "in distress".
    I had noticed that many java sources were now double-spaced (a blank line inserted after each original line). I suspected somewhere during the journey from Windows to Linux the old carriage-return + line-feed glitch had happened. But, hey-ho, this doesn't effect the java and could be filtered out later.
    Then the moment of revelation: most of the XML and .properties files had also been double-spaced.
    So code that originally read (for example):
    javac.classpath=\
    foo:\
    bar
    now read:
    javac.classpath=\
    foo:\
    bar
    This (subtle) introduction of the extra lines ruins everything ... but once you realise what's happened, it is easily fixed !

  • Flash Vars is not working when we accessing from other class files

    Hi all, I'm currently developing a flex application where i
    need to pass the data from the flash vars to the other class files
    instead of the main actionscript class file.
    Does any body know how i should go about doing that?? you can
    see this below code : please help me out if u know how to solve
    testnew2.as file
    package {
    import flash.display.Sprite;
    import flash.display.LoaderInfo;
    public dynamic class testnew2 extends Sprite {
    public var
    xmlfile:String=String(root.loaderInfo.parameters.lists);
    public function testnew ():void{
    package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.display.LoaderInfo;
    public dynamic class testnew extends testnew2 {
    public function testnew () {
    var myText:TextField = new TextField();
    // this assumes that you are going to pass in an id variable
    // on the end of the myFile.swf?id=12345 or
    // use FlashVars in the HTML parameter list for instance
    // 'FlashVars', 'id=123456', 'width', '1024',
    myText.text = new testnew2().xmlfile;
    addChild(myText);
    but if we access in same file it is working fine:
    package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.display.LoaderInfo;
    public dynamic class testnew extends Sprite {
    public function testnew () {
    var myText:TextField = new TextField();
    myText.text = String(root.loaderInfo.parameters.lists);
    addChild(myText);

    Pass the data into the main app, then from there either pass
    it into the sub-components or use
    Application.application.parameters, or bind to the values.
    Tracy

  • Cannot access desktop to shoe files or folders since using migration assistant to transfer data from my old iMac to my new one.  What do I need to do to access the desktop?

    Cannot access desktop

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • Locked out with file vault. Did fix by setting up new user account but cannot access old account with files                           but I can't get back into my old account with all my doc's and pics

    I was locked out by File Vault. I set up a new account by fooling the notebook it was a new start up. Now I cannot access my old account with all of my files. I can see it in Accounts but it will not let me access. Help

    I managed to get a few Time Machine Back Ups  before I passed away
    I'm not sure whether a ghost can do this, but if you were still alive, you could do as follows.
    First make sure you have read & write access to the folder you're trying to restore to. You should be able to see its contents in the Finder, and to move files in and out of it.
    This is an exception to the rule that you should never make any changes to backup data. I've tested this procedure in OS X 10.8 only. It should work with later versions, but I don't know whether it works in earlier versions. Use it only for files that were backed up from your home folder, or a folder on another volume created by you, and would normally be writable by you. Do not touch backups of system or application files.
    In the Finder (not in the time-travel view), navigate to the backup volume, then to the folder named "Backups.backupdb", and then to the snapshot you want to restore from. The snapshots are folders labeled with the date when they were created. Inside each of those folders is a file hierarchy like the one on the volume that was backed up. Descend through the hierarchy until you come to a folder named "Users," and inside that, a folder with your user name. The procedure will be different if you're trying to restore files on another volume.
    Select the folder and open the Info dialog (command-I). Click the padlock icon in the lower right corner of the window and authenticate. In the Sharing & Permissions section, give your account Read & Write access. You may have to close the dialog and repeat this step in order for the change to show up. Then click the gear icon and select
              Apply to Enclosed Items
    from the popup menu.
    Try the restore operation again, in the time-travel interface.

  • Cannot access graphics on my Hallmark studio since installing Yosemite

    I have a Hallmark studio card maker (designed for Mac) which now I cannot access the graphics since installed Yosemite. Any suggestions? Thanks

    Hey eileen, was just curious as to if you were ever able to get an answer to your question

Maybe you are looking for

  • Songs not working correctly

    So, Itunes atomatically updated one day. I know because I opened Itunes and all my songs were gone. I reloaded all songs back to Itunes and everything is fine/perfect in itunes, all lyrics, album art, ratings etc. are intact. I updated my Ipod after

  • Creating my own shapes

    Hi I'm trying to create an Aperture-like shape in Illustrator CC by combining a circle/elipse with a sheared square, but not getting very far. I've tried the Help Section ...even tried the Illustrator CC Classroom Book for answers. I would appreciate

  • Partition pruning, Nested loops

    Hi, I am having a problem with getting partition pruning in a query. I've managed to dumb down the problem to two tables and a minimal query (see below). Basically, I have a partitioned table "Yearly Facts", and a helper table "Current Year" that alw

  • Solman system DUMP after SPS 11 import proper phase

    Hello I have a problem with Solman 7.1 fresh install to  SPS11 upgrade, system hang in IMPORT_PROPER phase via SAINT, now system DUMP with all transactions Category           ABAP Programming Error Runtime Errors     SYNTAX_ERROR ABAP Program       S

  • How to calculate SNR and BER using USRP 2920 with LFTX and LFRX daugher boards.

    I have few questions regarding SNR and BER measurement: I am using two USRP 2920 with daughter boards LFTX and LFRX. One is completely Tx and anothe one is completely Rx. I have following few questions: Q1: How to control/change Energy per bit (Eb) i