Javac error: Can't read my .java-file

Hi,
sorry for my stupid question, but I have problems compiling my java code.
Before, I used NetBeans to compile the code and I had no problems with it. Now I have to use the javac command (with the same *.java-files) and it does not work.
It's running on Linux. In my current working directory, I have the file
image/transfer/smallserver/RequestProcessor.java
So I type
javac image.transfer.smallserver.RequestProcessor.java but I get this error:
error: can't read: image.transfer.smallserver.RequestProcessor.javaPlease, can anyone tell me, what's wrong with this?
Thank you for your help
Susanne

I set all possible classpathes. It makes no difference.
If I try it a different way, I get other errors concerning the files I want to import. These files are located in image/transfer/client.
I tried to use smallserver as working directory, simply with the command
javac RequestProcessor.javaI get
Class image.transfer.client.ImageObject not found in importI tried it with the same working directory as before with "/" instead of "." in the path name. I get
error: Invalid class file format: ./image/transfer/client/ImageObject.class, wrong version: 46, expected 45and addionally the message from above (ImageObject not found)

Similar Messages

  • Javac can't read filename.java

    Hi
    my problem is that javac can't read filename.java
    i have saved the source code as filename.java under text document file type and i kept the capitalization the same for the[i] filename and classname but i am still having this error message: "error : can't read : filename.java" .
    does that have anything to do with windows xp that i am using or there is absolutely something else that prevents javac from reading and compiling the file?
    please help
    Kind regards
    Nour

    The only 2 reasons that I can figure out why you are getting this error is either because your java file has not been properly named ie. filename.java or else then it is not in the same location ie directory from where you are trying to run your compiler.
    Thus you need to run the compiler from the directory that contains your java source file so it really does'nt matter where you have saved your java file on the machine as long as your path is set to your j2sdk /bin Just cd your way to that directory where you have the java file and run the compiler javac

  • .ics file error : "iCal can't read this calendar file."

    I would like to add my flight itinery to my iCal. Downloaded the .ics file from the BA website. When double clicking on it and dragging it to iCal this message pops up: "iCal can’t read this calendar file. No events have been added to your iCal calendar."
    file details:
    BEGIN:VCALENDAR
    PRODID:-//Ben Fortuna//iCal4j 1.0//EN
    VERSION:2.0
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    BEGIN:VEVENT
    I also tried converting it to .vcs. Then iCal asks which calender I would like to add it to but still comes up with above message.
    Any ideas?
    Thanks.

    Hi!
    I managed to import the file when I deleted everything that had to do with HTML code at the end of the file. I'm not exactly sure about the purpose of this code, but deleting it left me with my flights inside my calendar, exactly as I wanted.
    HTH,
    Michael

  • Help please - Updating .jar file and can't compile decompiled .java files.

    Ok, so there is a game on the internet called 'runescape', its a java applet that runs in the web browser from a cache in the windows directory.
    Basically im trying to edit this client so that i can run it away from their website (for use on a private server).
    The problem i am getting is that when i decompile the class files from the .jar into the .java files i can't recompile the .java files.
    E.G. I decompiled one of the .class files and tried to re-compile it agian straight away which brought me errors, i did this to rule out my editing as the problem.
    The jar file can be found [here.|http://world80.runescape.com/loader_gl397188536.jar] but the link will no double be dead after a few weeks.
    Can somebody please take a look and help me? I'm fairly new to java programming so if you could keep your answers as simple as possible that would be great, thanks.
    Ps. If this is the wrong section im sorry, i couldn't find the right section and this section seemed closest for me.

    i'm compiling using the javac command in a batch file, its displaying 100 errors but there are more, it seems to be showing that the syntax is incorrect as it is labeling brackets as being in the incorrect places.
    Decompiling error?
    As for being allowed to do this, im not so sure the company would approve but im only doing this for learning purposes and will not be releasing any of it upon the internet.

  • How can I get controller .java files

    I have craeted OA extension pages in which I have created Entiy object, module and view objects
    in JDeveloper for 12.1.1 in windows and it working fine.
    Now I want to extend one of the page of payable module (payable vision operation (USA))
    and the page name is SuppSummaryPG.xml .
    The problem is that how can I open or import SuppSummaryPG.xml in my jdeveloper ID
    and all the related files which belongs to SuppSummaryPG.xml , example raleated VO, entity objects
    module file and controller servlet.
    I move all the files from
    apps server to jdeveloper directory , i did the same thing which is running
    and working fine but the problem is with all of ViewObject and aplication module
    I am not able to open these in Jdeveloper , because when I try to open these files
    it gives me error that you dont have .java files , and it opens view objects and applicatino
    moudel files in read only mode
    the page is a standrad java moudle page
    suppSummaryPG is a standard page and it is in
    payable moudle herachy is
    oracle/apps/pos/supplier/....suppSummaryPG
    what should I do

    You can use decompiler to read java code. Oracle doesn't have any policy to prevent you from reading the class files.
    However you cannot change the java code and replace the standard files.
    Source Code:
    Oracle sells the just the software. So they are not obligated to provide source code.
    The reason why they provided soruce code for forms and reports is that there is no robust personalzation and extention concepts available for them.
    As per Oracle Support services, you dont need OAF code for extension and personalization.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I read the bootstrap files and extract the fragment-URLs and fragment-numbers in plain text?

    How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
    Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh  f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
    Thank you!

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • Can we read a ZIP file through ESB file adapter?

    Hi,
    Is it possible to read a ZIP file from a specified locaiton either through a FTP adapter or file adapter as a opaque element and place it in another specified locaiton?
    So far the available options are to read a txt, csv, fixed length or cobol file.
    I tried to create a ESB reading ZIP file and place it in another locaiton. but it was not reading the ZIP file.
    Is it first possible for the ESB to read the ZIP file? if so then is there any specific configuratuion that we have to do for it to work?

    how can we read a MSWORD file through java?You can read it like any other file using FileInputStream
    and similar.
    Howvere, if you want do do something with it, like display
    it, you have a problem. AFAIK Microsoft do not release
    information about their document formats, and i have not
    seen a .doc viewer for java.

  • Can Mac read a dcr file made with win?

    Hello,
    Can Mac read a dcr file made with win?
    Thanks in advance.

    Thanks Sean,
    I posted the question because of some problem of user to read the web page with dcr.
    You assumed right, it is e dcr hosted in a browser page and viewed via shockwave with safari.
    I don't know the nature of the problem but the user get an error.
    Maybe I must decide to buy a mac and do some test.
    Thank you again.

  • Can't Read from Source File

    Hi Guys
    I'm using PPr CS5 on Win7 64bit.
    I'm not sure if this is strictly for here but can I pick your brains please? I edited in PPr and exported three versions of the same video to AVI (mainly different intros and titles) and they all play fine. I back up my movies to an external disk but one of them always creates an error in the back-up "Can't Read from Source File". The file sizes are 5.3gb for the offending movie and 8.3 for the other two.
    I know the answer is to re-export the movie but I'm just trying to get a bit of a handle what could have caused this problem in the first place and if this is a common problem?
    Any views?
    Regards,
    Graham

    That doesn't help much.  What exactly are you doing when you get the error message?
    Are you trying to open a PP project which contains the file?
    Are you trying to play a sequence which has clips from that file?
    Are you trying to play it in a media player?
    Are you trying to import the file into PP?

  • "iCal can't read this calendar file. No events have been added to your iCal calendar."

    How do I deal with this error message-"iCal can’t read this calendar file. No events have been added to your iCal calendar." ? .ics vs .vcs?
    Thanks

    Greetings,
    What version of the Mac OS and what version of iCal are you running?
    Are you using MobileMe calendars (or any other server based calendars like Google) in your iCal?
    While you answer those questions you can try the following troubleshooting:
    1. First make an iCal backup:  Click on each calendar on the left hand side of iCal 1 at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    2. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    ---NOTE: Removing these files may remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Once the computer is back up and running open iCal and test.
    Hope that helps.

  • I have the latest downloadable version of LR5.  It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next

    I have the latest downloadable version of LR5.  It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next time is launches.  I get the same message the next and every subsequent time it launches so I can't launch LR at all now.
    I get that the preview file got corrupted somehow.  Is there some way to fix this problem without building a new catalog?

    Use Windows Explorer to open the folder containing your catalog. You will see a folder with the extension .lrdata. You need to delete that folder and then start Lightroom again. Lightroom will generate a new previews folder.

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • How can i read local excel file into internal table in webdynpro for abap a

    Could someone tell me how How can i read local excel file into an internal table in webdynpro for abap application.
    thank u for your reply

    Deep,
    File manuplations...............................
    1. At the presentation level:
    ->GUI_UPLOAD
    ->GUI_DOWNLOAD
    ->CL_GUI_FRONTEND
    2. At the application server level:
    ->OPEN DATASET : open a file in the application server for reading or writing.
    ->READ DATASET : used to read from a file on the application server that has been opened for reading
    -> TRANSFER DATASET : writing data to a file.
    -> CLOSE DATASET : closes the file
    -> DELETE DATASET : delete file
    If file is on the local PC,use the function module GUI_UPLOAD to upload it into an internal table by passing the given parameters......
    call function 'GUI_UPLOAD'
    exporting
    filename = p_file
    filetype = 'ASC'
    has_field_separator = '#'
    tables
    data_tab = t_data
    p_file : excel file path.
    t_data : internal table
    <b>reward points if useful.</b>
    regards,
    Vinod Samuel.

  • With Lightroom 4 I can't read any .DNG files directly into Photoshop CS. I have camera raw 2.4

    With Lightroom 4 I can't read any .DNG files directly into Photoshop CS. I have"camera raw 2.4" selected in LR and the Plug-in for CS is Camera Raw.8BI.
    Any suggestions on what to do? Thanks.

    Welcome to the Apple Discussions. Have you tried a different DNG converter? Adobe released Adobe DNG Converter 5.3 in March of this year. Maybe, if it supports your camera, this version will create a more compatible file.

  • Why can't read access log file in real-time? (Oracle Weblogic Server 10.3)

    We can't read access log file in real-time. If access log is rotation to new file so can read access log file but can't read real-time.
    *** Oracle Weblogic Server versions 10 R3

    what's your meaning? try this command "tail -f access.log".
    Threre is a buffer about 8K for WebLogic to write the access info into the log files, so you can't see the access info untill the buffer is full.

Maybe you are looking for