Help needed for compiling error  URGENT

Hello,
I have been looking at this compilation error for a while and I cannot figure it out.
I am compiling with this command:
javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
The error is:
C:\java\hw5>javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
src\pshah3\library\gui\GraphicalGui.java:32: error while writing <anonymous pshah3.library.gui.GraphicalGui$1>:classes\pshah\library\gui\GraphicalGui$1.class
(The system cannot find the path specified)
public void actionPerformed(ActionEvent e) { System.exit
(0); }
Why is it telling me that it cannot find the path, when it has to create the .class file itself?
I would appreciate some insight into this problem?
Thanks,
Premal

Thank you for you help, but i'am still a bit confused. The "pshah" was a typo, it should have been pshah3, so that's not the problem. Here's a more detailed explanation of what i'am trying.
I am declaring the exitlister class in the following path:
c:\java\hw5\src\pshah3\library\gui
The file is fairly simple, it looks like this.
package pshah3.library.gui;
import java.awt.*;
import java.awt.event.*;
public class ExitListener extends WindowAdapter{
     public void windowClosing(WindowEvent event) {
          System.exit(0);
The other file that i'am including is in the same location...it starts out like this.
package pshah3.library.gui;
import pshah3.library.*;
import java.io.*;
import java.util.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
class GraphicalGui {
          public static void main (String[] args){     
          JFrame backGround = new JFrame("Tech Library");
          backGround.setSize(400,150);
          backGround.addWindowListener (new ExitListener());
          Container content = backGround.getContentPane();
I am compiling from the c:\java\hw5 directory with the command
javac -classpath classes -sourcepath src -d classes src\pshah3\library\gui\GraphicalGui.java
I am doing this so all the classes go in a "classes" directory with the same heirarchy as the source.
Do you think i'am doing something funky with the packages??
Again the error is:
src\pshah3\library\gui\GraphicalGui.java:39: error while writing <anonymous pshah3.library.gui.GraphicalGui$1>: classes\pshah3\library\gui\GraphicalGui$1.class
(The system cannot find the path specified)
public void actionPerformed(ActionEvent e) { System.exit
(0); }
THANKS A LOT!!!

Similar Messages

  • Help please for compilation error

    I have made an utility app.
    I have used CFHTTPMessageRef class from CoreServices.h
    This works fine with me for Simulator.
    Now when i change Active SDK to Device it gives compilation error :
    1) No such file or directory : <CoreServices/CoreServices.h>
    2) Syntax error before CFHTTPMessageRef.
    While reading i came to know that CoreServices is available only for Simulator and not for device(Correct me if wrong).
    I also added CFNetwork framework for linking in build settings.
    Can anybody suggest something on this...

    Hi, i've used some types like CFHostRef in one of my apps, so it should work. I will look into the sourcecode to see what headerfiles i've included.
    i'll be back later this day.

  • Help needed in compilation errors....

    Hi i am trying to compile an API program.... but is it giving me some errors which i am unable to figure out...
    the first one is here...
    Document doc = new Document();
                                doc.add( Field.Keyword( F_WORD, text)); // orig term
                                doc.add( Field.Keyword( F_FREQ, ""+df)); // for popularity cutoff optionx
        and the error i am getting is
    org\apache\lucene\spell\NGramSpeller.java:551: cannot find symbol
    symbol  : method Keyword(java.lang.String,java.lang.String)
    location: class org.apache.lucene.document.Field
                                doc.add( Field.Keyword( F_WORD, text)); // orig term
                                              ^
    org\apache\lucene\spell\NGramSpeller.java:552: cannot find symbol
    symbol  : method Keyword(java.lang.String,java.lang.String)
    location: class org.apache.lucene.document.Field
                                doc.add( Field.Keyword( F_FREQ, ""+df)); // for popularity cutoff optionx
                                              ^and the second one is
    IndexWriter writer = new IndexWriter( out,
                                                                                                  new WhitespaceAnalyzer(),
                                                                                                  true);
                        writer.mergeFactor *= 50;
                        writer.minMergeDocs *= 50;
        and the error with this one is
    org\apache\lucene\spell\NGramSpeller.java:292: mergeFactor has private access in org.apache.lucene.index.IndexWriter
                        writer.mergeFactor *= 50;
                              ^
    org\apache\lucene\spell\NGramSpeller.java:293: minMergeDocs has private access in org.apache.lucene.index.IndexWriter
                        writer.minMergeDocs *= 50;
                              ^any ideas please........

    ping.sumit wrote:
    org\apache\lucene\spell\NGramSpeller.java:551: cannot find symbol
    symbol  : method Keyword(java.lang.String,java.lang.String)
    location: class org.apache.lucene.document.Field
    doc.add( Field.Keyword( F_WORD, text)); // orig term
    ^
    Have you checked the javadocs for Field? I have: [http://lucene.apache.org/java/2_3_2/api/org/apache/lucene/document/Field.html] and I don't see anything called Keyword in that class.
    org\apache\lucene\spell\NGramSpeller.java:292: mergeFactor has private access in org.apache.lucene.index.IndexWriter
    writer.mergeFactor *= 50;
    ^
    org\apache\lucene\spell\NGramSpeller.java:293: minMergeDocs has private access in org.apache.lucene.index.IndexWriter
    writer.minMergeDocs *= 50;
    ^I'm getting the impression you aren't even bothering to look at the javadocs. Are you?

  • Help needed for HSC project, urgent.

    Hi,
    I am having further troubles. In my storybook on the first page all the buttons are appearing, I do not want this. How do I code to fix that, the only button I want on the first page is "page1_btn"
    will paste my coding into here, and could you please tell me what to do to fix this ?
    page2_btn.visible= false;
    p3_first_btn.visible= false;
    page1_btn.addEventListener(MouseEvent.CLICK,turnpage2);
    function turnpage2 (evt:MouseEvent):void {
      screen_movie.gotoAndPlay ("page2");
      page1_btn.visible = false;
    page2_btn.visible= true; 
    page2_btn.addEventListener(MouseEvent.CLICK,turnpage3);
    function turnpage3 (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3");
    page2_btn.visible= false;
    p3_first_btn.visible= true;
    p3_first_btn.addEventListener(MouseEvent.CLICK,turnpage3a);
    function turnpage3a (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3a");
    p3_first_btn.visible= false;
    And, also the reason why I am setting the buttons to visible= true; at the start and visible= false; at the end is because I can only have one button for each page.
    Please help someone,
    Regards,
    Adam

    In your code you are:
    1. setting page2_btn and p3_first_btn to visible false, then you set an event listener and function for page1_btn.
    2. setting page2_btn to be visible true and setting an event listener and function for that button.
    3. setting p2_first_btn to be visible true and setting an event listener and function for that button.
    If all of this code is in the same frame, then you are turning all of the buttons' visible properties to true.
    If you only want one of those buttons to be visible at any one time then set the visible property for page2_btn to true at the end of the function turnpage2 and do the same for p2_first_btn.
    Something like this:
    page2_btn.visible= false;
    p3_first_btn.visible= false;
    page1_btn.addEventListener(MouseEvent.CLICK,turnpage2);
    function turnpage2 (evt:MouseEvent):void {
      screen_movie.gotoAndPlay ("page2");
      page1_btn.visible = false;
      page2_btn.visible= true; 
    page2_btn.addEventListener(MouseEvent.CLICK,turnpage3);
    function turnpage3 (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3");
    page2_btn.visible= false;
    p3_first_btn.visible= true;
    p3_first_btn.addEventListener(MouseEvent.CLICK,turnpage3a);
    function turnpage3a (evt:MouseEvent):void {
    screen_movie.gotoAndPlay ("page3a");
    p3_first_btn.visible= false;
    You may have to make more changes, I'm guessing at what is going on in your movie.

  • Help needed for ORA-errors

    Hello all ,
    My client is running a report from one form.But after pressing the button "run report" , he got one dialog box saying the following errors :
    ORA-01115: IO error reading block from file string (block number 69225)
    ORA-01110: data file string: &apos;string&apos;
    ORA-27091: skgfqio: unable to queue I/O
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    ==> Select hdr.INV_HDR_ID
    Can any one point me in the right direction on how to fix this? I have not encountered this before.
    Thanks in advance.
    SRM

    Probably other process open your datafile before you open database. Example : when you copying datafiles open database.

  • File missing (file\BCD error code 0Xc0000034 help need for work!

    file missing (file\BCD  error code 0Xc0000034 help need for work!    what can i do?
    have an p 2000 notebook pc

     Hi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
    What is the model or product number of your notebook? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • Hp pavilion dv6 6180 help me for this error when I am using my recovery disk

    hp pavilion dv6 6180 help me for this error when I am using my recovery disk
    The destination drive is not connected

    Hello Mohammadshamlou.  I understand that you're having some issues using your Recovery Disc.  It is giving you the error that the drive is not connected.  Is this correct?  How long have you had the notebook?
    What issue originally led you to want to try a recovery?
    The error seems to imply that it is not detecting the hard drive as this would be the most logical destination drive.  So, I feel the best thing to try first is verify that the hard drive is in proper working order.  Follow these steps and please post the result. 
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re

    Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
    System: Windows 7
    Adobe CS5
    Printer: Epson Stylus Photo 1400
    Paper: Inkjet matte presentation paper with slight luster
    Installed latest patch for Adobe CS5
    Epson driver up to date
    After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
    The files I am printing are photographs of dogs with lots of detail  I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
    My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
    Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
    When I change to these settings in printer window: Color Handling:  Printer manages color.  Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
    Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
    Also I am confused as to what ICM color management system to use with this printer and CS5:
    What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
    Do I embed the ICM I choose into the new files I create? 
    Do I view all files in the CS5 workspace in this default ICM?
    Do I set my monitor setting to the same ICM?
    If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
    Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
    Is using the same ICM for all devices what is called a consistent workflow?
    I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.

    It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
    I hope this may help...............

  • [svn:fx-trunk] 5408: Fix for - Compiler error using Reparent in a Halo Navigator.

    Revision: 5408
    Author: [email protected]
    Date: 2009-03-18 20:57:19 -0700 (Wed, 18 Mar 2009)
    Log Message:
    Fix for - Compiler error using Reparent in a Halo Navigator.
    QE Notes: None.
    Doc Notes: None.
    Reviewer: Paul, please review.
    Bugs: SDK-20099
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-20099
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a

  • Help need for force to signout All session ! how...

    hi
         help need for force to  signout All session !  how ??
    Solved!
    Go to Solution.

    Hi and welcome to the Skype Community,
    To force a signout of all instances your Skype is signed into please change your password: https://support.skype.com/en/faq/FA95/how-do-i-change-my-password
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error

    IOS 7 very slow, i have many problem , exemple  download documents , typing doc to go .   Very slow, sometime no response , please help us for this error,

    spacepilot wrote:
    i live in the WS10 / 0121 area and have been having similar problems. i have an up to 20mb services, but up to a month ago connected at 4800, then my line went dead for 6 days, and all indis could do was send me  new router, which came the day after my line was restored, but had dropped to 2418 and remained so for the past 3 to 4 weeks, then i dropped to 1963 yesterday, and 729 today.
    all speeds are far lower on my upto 20mb than they where on my upto 8mb link.
    foegot to add, i reported the problem via the report a problem link, which hopefully will be red by someone with  a firmer grasp of english that the normal call centre staff
    welcome to the forum    why don't you start your own subject and post the adsl stats from your router and also run btspeedtester and post the results and someone may be able to offer assistance
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Urgent help needed in compiling JSP on websphere 6

    we are migrating our app from websphere 5 to 6 version. our app has 2 JSP files. Jsp A and Jsp B...
    Jsp A code
    if(cond met) { <%@ include file = JspB %> }
    Now JSP B code
    <bean:define id='X' />
    when i run the JSP A, it throws compilation error as below..
    Jsp A failed to compile, variable X not resolved
    An error occured in the statically included jsp B
    The same code is running on websphere 5. its giving error on 6. ..Pls help..This is urgent,

    Could you post more details perhaps? Eg. the complete files.
    Also, I would recommend that you consider using the runtime include, <jsp:include ...>, and put your variables in the request scope.

  • Help needed for an unusual iphoto error.

    When I try to open my IPHOTO it now gives me this message... "The photo library was created with an unreleased version of IPHOTO please quite and upgrade this photo library by opening it in IPhoto 2 or Iphoto4", and forces me to quit right when the program opens.... for the record I've never had IPhoto 2 or 4 on my computer. I just added some more photos from my camera like I always do and this started to happen.
    Also I tried upgrading to the newest version of IPhoto (I bought ILIFE 06 because I thought it would fix it, and then did the upgrade to no avail)... It makes no sense... and I need help to fix it.
    (link to a screenshot of what happens) http://img206.imageshack.us/img206/3473/picture15hj.png

    Hi Kevin,
    So far I have not seen any solution for that error message in these discussions. If you have a recent backup of your iPhoto Library folder then take the old library out of the Pictures folder and put your backup library in there (I suggest you backup the backup before you do this) Launch iPhoto and hopefully everything will be back to normal. If you don't have a backup then...
    The only thing I can tell you to do right now is to create a new library and import/add to the library to reimport your images.
    these are the steps:
    Close iPhoto
    Drag the iPhoto Library folder to the desktop
    Launch iPhoto
    In the next window that opens choose to create a new library.
    -double click the iPhoto Library folder on the desktop to open it
    -the two main folders you will need to import are the Original folder and the Modified folder (only if you want to import the edited images).
    -the Originals folder has all your originals photos unedited. the Modified folder has all images that you have edited, rotated, cropped, etc.
    -Drag these two folders to the desktop
    -If you want to save the edited image, find it in the roll in the Modified folder and drag it into the roll of the same name in the Originals folder. It will replace the originals and now will be the original.
    -If you don't care to save any edited images, then don't import the Modified folder into iPhoto or don't bother replacing the edited image with the original image like I just described.
    -If you import the Originals folder into iPhoto you will have all your originals in their named rolls.
    -If you import the Originals and Modified folders into iPhoto, you will have all of them being in the originals folder in the finder. The roll with the same name as the other will have a _1 appended to it's name (in the finder)
    -the roll from the originals will be next to the same roll from the Modified folder within iPhoto. You can then delete any of the images from there if you want.
    I know this might sound confusing but it really isn't.
    Get back if any of this sounds like something you might want to do.

  • URGENT HELP NEEDED FOR GROUP BY

    SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
    comments, curve_currency, curve_generator, curve_interpolator, holidays,
    user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
    time_zone
    FROM curve a
    WHERE curve_date = (SELECT max(curve_date)
    FROM curve b
    WHERE b.curve_id = a.curve_id
    GROUP BY curve_id)
    I have this query ..This query does the FULL TABLE SCAN .....PLEASE Suggest some easier way to optimize this query.....I need it VERY VERY URGENTLY....

    SELECT curve_date, curve_id, curve_type, curve_name, curve_instance, is_simple,
    comments, curve_currency, curve_generator, curve_interpolator, holidays,
    user_name, rate_index, daycount_code, frequency_code, rate_index_tenor,
    time_zone
    FROM curve
    WHERE (curve_id, curve_date) IN (SELECT curve_id, max(curve_date)
    FROM curve
    GROUP BY curve_id)
    Be sure you have statistics collected on the table. Anyway, I am not sure that Oracle will not do the FTS for this query even if curve_id and curve_date are indexed.

Maybe you are looking for

  • Output Compression Increasing, not Reducing File Size

    Hi guys I have Pr CC2014 on a Win7 PC, with a Nvidia Quadro FX3800 and I'm having nothing but problems lately. Apart from CUDA doesn't open properly, my exports are getting worse and worse. The quality is much degraded from the preview in edit. Now c

  • Displaying products (HELP!!)

    I was wondering if it is possible to have my small format products  (in a catalog) displayed differently? Is it possible to have your products in a catalog displayed in a drop down menu or anything other than standard display? I know when displaying

  • Send data from a sharepoint 2010 list to a csv file

    How do I import a SharePoint 2010 List's data to a csv file using c# code or Powershell Script? 

  • Has anyone successfully developed an App that uses AirPrint?

    We have a client that wants us to add AirPrint to the app we have developed for them. I can't find anything supporting this, is it possible? Can anyone get me some tips on how to make it work? I found this Simple iOS Printing from AS3 - Flash Tuts Mo

  • Oracle Developer Forms Books

    I am new to the Oracle world and I'm basically in training mode at my new job. Any good books out there for Oracle Forms in particular?????