Stuck with compiling a source file

Hi,
I'm stuck with this strange problem and i desperately need some help.
My source file is in the D drive inside the package named objectwrite. The source file X.java is extending an abstract class named Y. When i'm trying to compile the files using the command javac objectwrite\ x.java y.java from D drive, it's giving the follopwing error
javac: invalid flag: ObjectWrite/
Looking forward for the solution
Thnks
Rompom_1

You have a space between '\' and 'x'

Similar Messages

  • StackOverflowException compiling 8000 source file

    I am trying to compile a source file with ~8000 lines. It has many (hundreds) of static members (instances of that class), and methods containing conditional statements to take a string and return the instance of that name. This is generated code, so I do not think I can change it.
    Every time I try to compile it with Maven (Sun JDK 1.4.2_05) I get a java.lang.StackOverflowException. I have tried giving Maven more stack memory via the -Xss option (as much as 10m per thread), but that didn't help at all.
    I commented out 90% of the code and it works fine, so I know it is the size that is the problem.
    Has anyone had to deal with something like this before? If so, how did you fix it?

    Thank you to everyone who has replied. After some experimentation I discovered that the problem is not the 800+ static objects being created - it was the 1000's of lines of nested conditional statements. The generator has been modified to make if, if, if... instead of if, else-if, else-if, ... and all is well. :)
    I do not believe any sort of hard limit was reached, b/c Eclipse had no problem with the file. Also, one of our projects has a source file with 12k lines, and it works fine (though it has a different structure).
    I find it interesting that people are being so critical about the generator, especially since this is only one small piece of its modelling. The generator does far more than just create the key types and values.
    Furthermore, I don't understand the criticism of the code as-is. No, it's not something I'd write myself, nor would I wish to maintain such code - but no one has to! That's what the generator is for. If I want to add or delete a key type/value, I do so in the generator, and then regenerate the code.
    I also don't understand why anyone thinks this code is not object-oriented. Perhaps I just didn't explain it well. All classes representing key types extend AbstractDiscreteValue, so there's inheritance. The reason why all the values exist as static (and final) instances is b/c we never need more than one instance of each value, the values are known at generation time, and all instances are immutable.
    How would any of you construct such a class? Keep in mind that maintenance is not an issue, and most key types (probably 95% or more) have fewer than a dozen values.
    Anyway, thanks again for the help.

  • Java.lang.NoClassDefFoundError when compile SQLJ source file

    Always got error message java.lang.NoClassDefFoundError: sun/io/CharToByteConverter
    when using sqlj to compile SQLJ source file.
    The CLASSPATH (partial) .:$ORACLE_HOME/sqlj/lib/translator.zip:$ORACLE_HOME/sqlj/lib/runtime.zip
    I am able to compile the demo TestInstallCreateTable.java and TestInstallJDBC.java but not TestInstallSQLJ.sqlj in the same directory.
    I am using Oracle 8.1.6 R2 client in Linux Intel on Red Hat 6.0. Can anyone explain why this happened ?

    From the forthcoming new version of the SQLJ FAQ:
    "NoClassDefFoundError: sun/io/CharToByteConverter"
    (This is likely a general configuration issue, not something specific to your code.)
    Running sqlj results in the following error message.
    java.lang.NoClassDefFoundError: sun/io/CharToByteConverter
    at sqlj.tools.Sqlj.initializeErrors(Sqlj.java:519)
    This happens if you are running under a JRE environment, and not a full JDK environment. You need to download and install a full JDK environment. Note that the Oracle
    database installation will only set up a Java Runtime Environment. Oracle does not distribute the Java Development Kit - you have to get it from http://java.sun.com
    If that did not help, you'd need to give us a fuller picture of your environmnet (JDK versions, PATH, CLASSPATH settings, etc.).
    Thanks!

  • Compile multiple source files

    sorry, this is maybe a newbie question.
    but iI have a problem compiling an application that use multiple sources files
    for exemple
    the class A is in the file 1
    the class B is in the file 2
    class A uses an instance of the class B
    class B uses an instance of the class A
    so i'm unable to compile these files coz each one tells me he doesn't know about the other
    Is there a way to define prototypes of class or fonctions before their use like in C/C++?
    Or is there another way i didn"t pay attention
    thanks all

    This is a minimal explanation of packages. For a full explanation of packages and how to compile and run Java programs, see this page:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html
    and read the Setting the Classpath and the How Classes are Found topics.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file:
    package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    And a statement to run the program is:
    java myapp.aProgram
    (This can be issued from any directory, as Java will search for the program, starting the search from the classpath directories.)
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • Failed to compile J2EE source files

    Hi all, I'm learning J2EE these days. When I followed the tutorials on how to compile source files,
    eg. 1. In a terminal window, go to the j2eetutorial/examples directory.
    2. Type the following command:
    ant converter
    I got a message with title "16 bit MS-DOS Subsystem" and content
    "C:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application. Choose 'Close' to terminate the application."
    Could anyone tell me what's going on?
    Thanks very much

    The documentation on the javac command has information on the options it provides:
    [http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html]
    Otherwise you could use a tool like Ant to manage the build.

  • Error with Archiving Faulty Source File in Sender FTP adapter

    Hi All,
    I have configured a Sender FTP adapter with Processing Mode as Archive.
    I am able to read the files from FTP server and archive all the successfuly processed file in the PI aplication server directory XXX/success.
    We need all the error files also to be archived on PI application server in directory XXXXX/Fail so I have checked the option Archive faulty Source Files and provided the application directory  XXXXX/Fail .
    I have unchecked the option Archive Files on FTP server.
    But the problem is when FTP adapter is getting any error files it is not able to archive it to application directory  XXXXX/Fail .
    In RWB it is showing the error
    Unable to archive faulty input file /data/abc.txt to /XXXX/fail/abc.txt
    Cause: com.sap.aii.adapter.file.ftp.FTPEx: 550 rename: No such file or directory
    This directory is existing and works fine when I give this directory name in Archive directory of processing mode.
    Sender FTP adapter is trying to archive the file in FTP server which I dont want and giving us this error.
    If I give any Directory which is present in FTP server my error files are getting archived on FTP server but not in the archived folder.
    I have already unchecked the option Archive Files on FTP server.
    Please help......
    I am on PI 7.11
    Regards
    Henery H

    Hi Henery,
    Check the below thread, this should help you to fix the issue.
    FTP adapter: exc. 550 : No such file or directory
    Thanks,

  • I cannot compile "C" source file on Mac OS X(10.8.2)

    Hi,
    I am trying to compile the C source filein terminal, using "cc" or "gcc" command. No luck.
    Later on, tried to ran the command, xcrun cc filename.c, the compiler gave an error about header files.

    I have tried with /bin/cc and /usr/bin/cc  and tried to find the "CC" command  or "gcc" command or "C++" or "g++" command in the directories. No luck!
    echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
    I have checked the cc binaries in all of the above directories. No luck

  • RoboHelp for Word 7 with version 5 source files

    I am trying to compile a WinHelp 4 file in RoboHelp 7, and it
    will not compile. The project is old and was last used in RoboHelp
    X5. I would love some suggestions. This is a very large help file
    and I don't want to recreate it.
    Working on a Windows XP pc.

    I am having the same problem.
    A colleague sent me some Robo for Word projects that were
    created with X5. I cannot work on them.
    I have uninstalled and reinstalled RoboHelp 7 &
    downloaded both patches. I can create and compile new projects in
    Robo.
    However, when I try to open one of these X5 projects, or one
    of the project documents, the RoboHelp Explorer becomes
    unresponding.
    I tried creating a new project & copying a doc into the
    new project's doc, tried importing one of the problem docs into a
    new project, tried deleting the .rtf files out of the old project.
    In all cases, the Explorer stops responding.
    Grateful for any other ideas.

  • PDF file transfer writing target file with the same source file name

    Hi to all,
    I want to transfer a PDF file from a SOURCE folder to a TARGET folder. My problem is that I want the target pdf file has the same name of the source pdf file. How can I do this? I have to look for some parameters in the sender or receiver channels?
    Thanks to all.

    Hi Gabriele,
    If you want to FTP the pdf file from source to target directory, use this blog.  It doesn't require any IR devlopment.
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Also, In sender and receiver comm channels select "Set/Use Adapter specific message attributes" and "File Name" to get the same file name in the target directory.
    Regards,
    Sreenivas

  • Stuck with emptying trash, no files deleted

    Hey all!
    I'm trying to delete files from my Mac OS X Lion system, but it fails. Well actually, nothing happends. When i hit EMPTY TRASH, the dialog box opens with a note "emptying the trash" and showing the number of files to be deleted (486 files) - but nothing happends. It just hangs there.
    I did the file persmissions repair, which initally took very long to kick off showing it will take some 7 hours... I got worried there, but then completed in about 5 mins....
    Any ideas whats going on?

    To see what's in the trash:
    Launch Terminal and copy & paste these commands:
    cd ~/.Trash
    Press Return
    Then enter ls Press return
    This will list of the contents of your trash, so you can if there's anything you need you can drag it out. If not, follow these instructions:
    Go to /Applications /Utilities/Terminal and launch it.
    At the prompt, copy and paste this command
    sudo rm -rf ~/.Trash
    Press Return.
    You will be asked to enter your admin password. It will be invisible.
    Enter it and press Return.
    Log out and back in or restart.
    Let us know.

  • Downloading into blobs with name of source files

    Hi
    I have a little question. Is there any chance to conserve a name of the file, which was uploaded into blob column via portal form and then create link for this file with the same name?

    Vlasta,
    This question should go to the Portal Applications Forum (I assume you're using a custom form, and not uploading files to content areas).
    Thanks,
    Jerry
    null

  • Secure the JAX-RPC United Loan Web Service with WS-Security source file not

    A download link 'http://www.oracle.com/technology/obe/obe1013jdev/secureunitedloan/SecureUnitedLoanSource.zip' referenced by 'http://www.oracle.com/technology/obe/obe1013jdev/secureunitedloan/SecureUnitedLoan.html' cannot be found.

    After some research I found that:
    1. on geronimo 2.1 you can only use basic authentication for webservices
    2. advanced security requires the use of axis2

  • Problem compiling source file in package

    Hi, I have 5 source files which I have just packaged together and put in the same sub-directory, the problem is that when I try to compile the file with the main method I get the error message:"cannot read" then the name of the source file. I am compiling from the command line and setting the classpath as I compile with the statement:
    c:\j2sdk1.4.1\bin>javac -classpath c:\directory\package directory source file.java
    I'm not sure what I am doing wrong and the source files all compiled fine before I added the package statement to the files. Please any help would really be appreciated.

    It sounds like the java file your are trying to compile is not in the directory you are compiling from.
    Is this basically what you are doing?:
    Say the package name is mypackage.
    Assume we are O.K. with keeping source and class files together.
    Create a directory named 'mypackage' somewhere...C:\mypackage\.
    Put all the .java files in it (these .java files indicate that they are a member of the 'mypackage' package).
    At a command prompt, cd to the directory containing the 'mypackage' directory...'cd C:\'
    Compile the source files: C:\j2sdk1.4.1\bin\javac mypackage\*.java
    run the main class: C:\j2sdk1.4.1\bin\java mypackage.TheMainClass
    Basically, this says keep the files where you want them and point to javac, instead of moving everything under java/bin. btw it will save a lot of typing if you add java/bin to your PATH.
    Hope this helps.

  • Compile source files from multiple subdirectories

    Hi. we know that we can compile multiple source files in a folder with the statement:
    javac -classpath . *.java
    How can we compile multiple source files that belong to different subfolders without using an IDE?
    Example:
    folder1, folder2, & folder3 all have .java source files, and all 3 folders belong to a folder named bigfolder;
    what is the shortest way to compile those source files in one statement like the one above?

    It should work withjavac -classpath your_classpath folder1\*.java folder2\*.java folder3\*.javaJust make sure that your_classpath allows all of the classes to be found.
    It might be better to use the -d option in your case.javac -d path_for_classes folder1\*.java folder2\*.java folder3\*.javaYou just specify the directory into which the .class files and their package directories should go.

  • Do we have to separate java source files and class files after compiled..

    Hi,
    I really confussed with this:
    I have compiled java source files into a package and tried to use but the classes can not be found. Should I separate class and source files after compiled with packages names. I hope you understand what i mean.
    Thank you
    So Jag

    You can choose to separate the source files or not. It sounds like your problem has to do with Classpath and packages.
    If the file c:\base\compute\engine\mysourcefile.java starts with the statement "package engine;" then the fully qualified name of the class is is engine.mysourcefile. If the file c:\base\compute\client\mysourcefile.java starts with the statement "package client;" then its fully qualified name is client.mysourcefile.
    In your source files, whenever you refer to a class from another class, the compiler needs the fully qualified class name. You can either import the class or use the fully qualified name. In order for the compiler to find the class, the c:\base\compute directory must be in the Classpath (assuming the package definitions from above).
    Finally, to launch an application given the above, the command would be "java client.mysourcefile" assuming the main method is in client.mysourcefile.

Maybe you are looking for

  • Why do I need a hardwire for my WRVS4400N wireless router?

    I am not very technically inclined.  Plug and play is my way.  So when I got my first router (a linksys) i plugged in the ethernet cables and voila!-----internet access as well as connectivity for my xbox 360, ps3 and Wii.  The people rejoiced. Times

  • Ambigious Column Not Detected In SELECT with JOIN

    I wrote the following SELECT query. SELECT TRANS.ID, TRANS.INVISIBLE FROM TRANS JOIN TRANSCAT TC ON TC.ID = TRANS.TRANSCATID JOIN TRANSTYPE TT ON TT.ID = TRANS.TRANSTYPEID WHERE INVISIBLE = 0 AND ID IN (SELECT DISTINCT TRANSID FROM XTRANS WHERE XTRAN

  • PCA Document Number

    Hello, Can someone help where exactly the Profit center accounting document no. ranges are given? We are implementing ECC6.0. I have assigned document no. ranges under Actual Postings in PCA Tree. But system has automatically started to post from 1(o

  • Query on transaction /BEV1/SR0

    Hello Friends, I wanted to know whether we can avoide crediting the empties to the customer through transaction /BEV1/SR0. is refunding key help in this ??? regards, sujit

  • Error installing pc suite/nokia cable drivers/noki...

    hi..i'm using windows xp service pack 2,my phone is a nokia 5700MX on firmware version:3.83.1 i had the nokia pc suite version 6.82 installed on my pc but accidentally deleted some nokia pc suite files(common files),so i decided to uninstall and rein