Compiler error - bad command or file name

I have downloaded JDK 1.4 beta from this site and have
ammended the path commands in my Autoexec file. I use
the DOS edit to type my programs and save the files with
a .java extension. When I type javac Convertion.java for
example all I get is Bad command or file name.
Any assistance will be appreciated.

either you haven't rebooted your machine or you have set the PATH correctly - first reboot, then double check autoexec.bat

Similar Messages

  • JAXB: Error compiling classes generated by xjc (file name too long)

    Hi friends,
    I am trying to compile classes that are generated by using XJC tool on xsd file. The compilation fails with following message.
    buildxsdmodel:
        [javac] Compiling 794 source files to /home/uchamad/working/teleworker/ejb/build/classes
        [javac] /home/uchamad/working/teleworker/ejb/build/tmpsrc/uk/co/novatel/teleworker/model/wlr/bulksearch
    results/impl/ApplicationInformationTypeImpl.java:58372: error while writing
    uk.co.novatel.teleworker.model.wlr.bulksearchresults.impl.ApplicationInformationTypeImpl.XMLRequestID
    TypeImpl.SearchOrderResultsTypeImpl.SearchTypeDetailTypeImpl.OrderTypeImpl.OrderDetailsTypeImpl.
    OrderLinesTypeImpl.NumberPortingTypeImpl.OLODetailsTypeImpl.NumberLocationTypeImpl.OLOMainP
    STN1AddressTypeImpl.Unmarshaller: /home/uchamad/working/teleworker/ejb/build/classes/uk/co/novatel
    /teleworker/model/wlr/bulksearchresults/impl/ApplicationInformationTypeImpl$XMLRequestIDTypeImpl$S
    earchOrderResultsTypeImpl$SearchTypeDetailTypeImpl$OrderTypeImpl$OrderDetailsTypeImpl$OrderLin
    esTypeImpl$NumberPortingTypeImpl$OLODetailsTypeImpl$NumberLocationTypeImpl$OLOMainPSTN1A
    ddressTypeImpl$Unmarshaller.class (File name too long)
        [javac]                                             public class Unmarshaller
        [javac]                                                    ^
        [javac] 1 error
    The compiler is complaining about the file name being too long. This is happening because the java classes when generated from XSD contains deep nesting of inner classes. So when it comes to compile the .class name file is too long for the operating system.
    I am trying this on unix box.
    I wonder if there is a way to configure XJC so that it does not produce inner classes but instead keep them out.
    Any help would be appreciated.
    many thanks
    Usmangani

    Flattening your schema definition will flatten the output files, too -- that will probably be nice for coding as well since you wont have to use class names such as SomeTypeNestedInAnotherTypeThatHasYetAnotherType. Instead of having all of the elements defined directly within the enclosing root element, define logical chunks at the top level and incorporate them in the definition of real root element of your documents by reference.

  • Error message "A duplicate file name was specified"

    Every time I open iTunes or attempt to make a purchase, I get the error message "A duplicate file name was specificed. There was an error in the iTunes Stores. Please try again later."
    It started when I tried to download a book a few days ago.
    I do not have any plugins installed, so there are none to remove/disable. I'm running the most recent version of iTunes (11.0.5) for Windows 7 (64-bit). I tried clearing the iTunes cache to no avail.

    Try and unchecking Manually manage music and videos on the summary page in iTunes. To get there, just go to ____'s iPod, scroll down, and it should be there. You can then check any other boxes (or uncheck) that you think might help you. That box might have automatically checked itself after the update. Also, make sure you have the latest version of iTunes by going to the apple in the top left hand corner, and clicking software update.

  • When I try importing a CD following message comes up: error occurred whilst converting file " name of fist song on CD" You do not have the privilege to make changes.  Any ideas?  thanks  John.

    When I try importing a CD following message comes up: error occurred whilst converting file " name of fist song on CD" You do not have the privilege to make changes.  Any ideas?  thanks  John.

    Read the part about changing permissions on the iTunes folder in: https://discussions.apple.com/message/11583914

  • An FTP error occurred - cannot put [file name.htm]. Dreamweaver encountered an internal data error

    I get the message “Server not responding” whenever trying to add files to my web site via DW. The following message appears: "An FTP error occurred - cannot put [file name.htm]. Dreamweaver encountered an internal data error. Please try the operation again." 
    I called the hosting service provider, and they said they were able to upload a 20 mb document with no problem. I was also able to upload a document using Filezilla.
    Therefore, the problem must be with DW.
    When I go to Manage Sites and choose my site and get to the Test Connection button, the test is successful, which further confuses the issue.
    Any guidance would be greatly appreciated. 

    Does this help?
    http://forums.adobe.com/thread/861606
    Also check the log:
    http://forums.adobe.com/thread/937231
    It is possible it is a host issue but because they use a higher level account to test that they do not see the error.

  • Compilation error when deploying EAR file on standalone OC4J...

    Hi All,
    I am getting the following error when trying to deploy an EAR File describing a web service from the Jdeveloper IDE to the stanalone OC4J server instance.
    ==========================================================
    Uploading file JavaWebServiceEmp-GetDates-WS.ear ...
    Application Deployer for JavaWebServiceEmp-GetDates-WS STARTS.
    Copy the archive to C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear begins...
    Unpacking JavaWebServiceEmp-GetDates-WS.ear
    Done unpacking JavaWebServiceEmp-GetDates-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS.ear ends...
    Starting application : JavaWebServiceEmp-GetDates-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : JavaWebServiceEmp-GetDates-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application JavaWebServiceEmp-GetDates-WS to site default-web-site under context root JavaWebServiceEmp-GetDates-context-root
    Operation failed with error:
    Error compiling :C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home\applications\JavaWebServiceEmp-GetDates-WS\WebServices: compilation error occurred
    Deployment failed
    Elapsed time for deployment: 1 minute, 50 seconds
    ==========================================================
    Please could somebody help me out with this? Basically I am not able to understand how to deploy the EAR file created under the MyWork folder under jdeveloper\jdev to the applications folder of j2ee\home. I am new to both EAR deployment as well as web services and would like to get a good understanding of the working of a web service which includes SOAP components and the like.
    Any help with regards to building and deploying a web service on standalone OC4J would be appreciated. Thanks a lot.

    Initially I followed the following steps to start up OC4J:-
    Settings :-
    1) Jdeveloper is setup under C:\Lester\Testing as Jdev10.1.3 folder
    2) I downloaded the extended oc4j zip folder and unzipped it under a new folder oc4j at the location C:\Lester\Testing\Jdev10.1.3
    Steps followed to run oc4j and deploy application
    1) Setup a standalone oc4j from the jdeveloper ide giving C:\Lester\Testing\Jdev10.1.3\oc4j as the root folder for oc4j.
    2) While doing step 1 added password and deployed it. Changed server.xml under C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/config
    to include the following:-
    <shared-library name="global.libraries" version="1.0" library-compatible="true">
    <code-source path="C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/applib"/>
    </shared-library>
    AND
    <java-compiler name="javac" in-process="false" options="-J-Xmx1024m -encoding UTF8" bindir="C:\Jdeveloper\jdk" extdirs="C:\Jdeveloper/jdk" />
    3) Opened a command prompt and went to the location C:\Lester\Testing\JDev10.1.3\oc4j\j2ee\home and ran the following command:-
    --> java -jar oc4j.jar
    4) Deployment: Then I deployed my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -deploy -file PrimeNumberService.ear -deploymentName DocStyleWebService
    5) Web Binding: Then I bound my primewebservice application from command prompt at C:\Lester\Smart Cylinder\Example code\prime\PrimeNumberService>
    using:-
    --> java -jar C:\Lester/Testing/JDev10.1.3/oc4j/j2ee/home/admin.jar ormi://172.20.13.164:8888 oc4jadmin welcome -bindWebApp DocStyleWebService PrimeNumberService_web http-web-site /docws
    6) Steps 4 and 5 went through without error.
    7) However when trying to access the web service using the following link I get the standard HTTP 404 (Page not found) error:-
    http://localhost:8888/docws/prime
    This was before I tried deploying the web service through jdeveloper IDE.
    I had tried the document web service given at the following link:-
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/docservice/index.html
    from the web services how to links
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/webservices/index.html
    Please could somebody help me out? Also periodically I recieve the ojc.exe not found error when trying to deploy an application using jdeveloper ide. There are two conflicting jdeveloper versions one comes with this exe and one without.
    Message was edited by:
    Lester N

  • Error: Could not save "file name" because the file name was not valid. (PS CS6 + WIN 7)

    I have recently purchased a new desktop under WIN 7 as well as Adobe Creative Suite CS6.
    My first internal hard disk is 2 TB, the second one installed is from my old PC, 250 GB.
    I am getting this error when trying to save a file over an existing file using the “Save” command.
    The message is wrong, because the file name IS valid.
    This error is persistent.
    This error does not occur when doing the same action on my second internal hard disk.
    This error happens on files larger than about 1MB in weight.
    What happens is that the original file over which I try to do the ”Save” command gets corrupted and lost.
    If I don't use the “Save as” command to save my work under a different name, my work is lost.
    The same problem occurs with both PS CS6 versions, 64 Bit and 32 Bit.
    I am very disappointed and annoyed with this happening.
    Any idea what is going on here?

    ok ...
    I think I have resolved this.
    I forgot to mention that I have Sugarsync over that file structure.
    However, I do not know if Sugarsync has anything to do with the error.
    I copied the whole folder structure under a newly created folder, and I am no longer getting the error.
    Thanks
    Milan

  • Compiling error reading RMI implemntation fil

    i want to my 1st rmi program but cant compile
    1st file Hello.java
    package examples.hello;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface Hello extends Remote {
    String sayHello() throws RemoteException;
    this file compiles correctly
    but 2nd one HelloImp1.java
    package examples.hello;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.RMISecurityManager;
    import java.rmi.server.UnicastRemoteObject;
    public class HelloImpl extends UnicastRemoteObject
    implements Hello {
    public HelloImpl() throws RemoteException {
    super();
    public String sayHello() {
    return "Hello World!";
    public static void main(String args[]) {
    // Create and install a security manager
    if (System.getSecurityManager() == null) {
         System.setSecurityManager(new RMISecurityManager());
    try {
         HelloImpl obj = new HelloImpl();
         // Bind this object instance to the name "HelloServer"
         Naming.rebind("HelloServer", obj);
         System.out.println("HelloServer bound in registry");
    } catch (Exception e) {
         System.out.println("HelloImpl err: " + e.getMessage());
         e.printStackTrace();
    wont compile it gives error
    cannot read file HelloImp1.java
    error 1
    Plz help me

    Looks like you have a discrepancy in the file name vs the class it contains - hellImpl vs helloImp1

  • Install iTunes 10.4.1 install error - The Folder Path "File Name" contains an invalid character

    Upgraded computer from XP Prof 32-Bit to Windows 7 Ultimate 64-Bit (Upgrade package, performed Custom Install).
    Attempt to install iTunes 10.4.1 for 64-Bit.  Receiving the following error/problem:
    The Folder Path "File Name on my external drive" contains an invalid character
    I click ok and then get this:
    The Installer encountered errors before iTunes could be configured.  Errors occurred during installation.  Your system could not be modified,  Please run the installer again, or click Finish to exit.
    Any fixes for this?

    Sorry, one of us is not managing to be clear enough.
    Does the message read The Folder Path "File Name on my external drive" contains an invalid character or perhaps The Folder Path "<some path name here>" contains an invalid character?
    If so, then the problem might be just what it says it is with the path name in question... Either way if you list the path given in the error message in a reply to this thread it might provide a clue for anyone tying to help with the problem.
    You could try downloading the installer to C:\iTunesSetup.exe in case that helps.
    tt2

  • Sender file Error - Detailed log on file name

    Hi,
    With sender File configuration the file name is given as pattern and for some reason i get the error "Conversion of file content to XML failed at position 0". I understand that as per FCC definition I have only 5 fields as my input strucure but the file has more than that...now the question is i want to find out which file (out of 100s) is having this issue as the name of the file is not logged in Comm monitoring. any help/insight on this please?

    Hi.
    Have you had chance to check this  parameter  "additionalLastFields"? . According documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    If the inbound structure has more fields than specified in the configuration then the XML outbound structure is created as follows:
    ○       ignore
    Outbound structure only contains the fields in the inbound structure
    ○       error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
    Regards

  • Dynamic bad and Log file names!!

    Hi

    Hi
    I have the scenario like the data files would be passed as parameter to the mapping , and the mapping would have the premapping procedure which would change the file name in the external table definition. This works fine. But the one more issue I have is that, I would like to change the bad file,log file and discard file name also through this procedure. In other words, for each incoming data file I would like to create a bad ,log and disc file.So How do I accomplish in the present procedure which does the following alter table statement
    execute immediate 'alter table '||p_table_name||' location('''
    ||p_file_name||''')';
    Any suggestion would be greatly appreciated
    Thanks
    Balaji

  • Error when rendering illegal file name

    I appreciate any help. I am trying to finish a video and I have three clips in the video sequence that won't render. The message I get is "illegal file name, unable to render". I tried renaming the clip; saving the project under a different name; replacing the clip; overwriting the clip; shutting down the program; shutting down the computer. I have searched the manual and the discussion forums and have not been able to figure this out.
    This is not the first video I've edited - am using final cut express.. iMAC WITH OS -X 10.6.1
    Again, appreciate any assistance. Renee

    Thank you all for helping me with this! I am using FCE 4.0.1 IMAC 24" 3.06SD/ intel core 2 DUO Machine is only 2 months old/ came with all software preinstalled. Video is taken on JVC Everio in MOD format and converted to MOV by Iverio convertmod program (which I installed). The video file permission is "you can read and write". The file itself is one clip - it is from the funeral service from my Mom's funeral and all I wanted to do is take out some of the dead space/ insert some video transistions/ and burn the video for relatives that were unable to attend. I am wondering if it has something to do with the fact that it is one clip that I have spliced into several clips. The file name is 2009-07-14 09h16mn16s.MOV When I rendered most of the clips that I spliced and added the transistions to, they rendered fine, but the last three spliced clips keep giving me the error reading "file error ..illegal name" When I try renaming just that spliced clip - it changes the name on all the clips in the timeline (including the previous rendered clips. I know I'm probably not thinking as clearly being that this video is a bit more emotional to me than the others I've worked with, but other than the fact that it is my mom's funeral - the only other difference is in the other video's I've done - each clip has a specific name (and maybe are 5-7 minutes long - and not just one long 52 minute clip that I'm splicing)
    Again, I appreciate any help - I'm about ready to scrap the whole thing and start from the beginning -
    Renee

  • Error in serialization when file name is dynamic

    Hello there,
    I am utilizing serialization functionality of Java to Save the work done using the application that I have developed. When the user goes to File -> Save, the application calls the following function:
    public void save()
    try{
    System.out.println("before FOS");
    FileOutputStream f_out = new FileOutputStream("*save.data*");
    System.out.println("after FOS");
    ObjectOutputStream out = new ObjectOutputStream (f_out);
    System.out.println("after OOS");
    out.writeObject(*myPanel*);
    //myPanel is an instance of JPanel which contains all the sketches done by the user.
    out.close();
    f_out.close();
    System.out.println("after writeObject");
    catch(Exception e)
    System.out.println("Exception in Save function");
    This particular code runs fine but the problem is that the name of the serialized file is hard coded which is, "save.data" as highlighted in bold in the above code.
    So I added the JFileChooser component to enable the user to type in the file name that he/she wants. The following is the amended code:
    public void save()
    JFileChooser chooserSave = new JFileChooser();
    chooserSave.setCurrentDirectory(new File ("."));
    returnVal2 = chooserSave.showSaveDialog(myPanel);
    File fileName = chooserSave.getSelectedFile();
    System.out.println("filename : " + fileName);
    if(returnVal2 == JFileChooser.APPROVE_OPTION)
    try{
    System.out.println("before FOS");
    FileOutputStream f_out = new FileOutputStream(fileName);
    System.out.println("after FOS");
    ObjectOutputStream out = new ObjectOutputStream (f_out);
    System.out.println("after OOS");
    out.writeObject(myPanel);
    out.close();
    f_out.close();
    System.out.println("after writeObject");
    catch(Exception e)
    System.out.println("Exception in Save function");
    With the amended code however, the programs throws exception after bold line which means writeObject method could not be performed.
    Could anyone kindly advice what could be wrong? I have made almost all the possible amendments to the best of my knowledge but to no avail.
    Thank you very much.
    Note: This question has been posted earlier in java-forums.org @ http://www.java-forums.org/advanced-java/20147-serialization.html

    You shouldn't Serialize swing components - draw the sketches to images or save them as their own objects and read them back in to populate the JPanel.
    The reason you are suddenly getting the Exception is because the JFileChooser is referenced within the JPanel while you are saving it - and that particular partof the JFileChooser is not Serializable.
    As was said before, you shouldn't Serialize swing components (the API specifies that swing serialized objects may not be compatible with future releases).

  • When i go to sync my ipod nano 5th generation i get an error saying "A duplicate file name was specified".  what do i do then?

    I am trying to sync my iPod nano 5th generation to my computer and when i go to add music through iTunes i get the following message:
    The iPod "X's iPod" cannot be synced.  A duplicate file name was specified.  Any ideas how to fix this?
    On my computer (iMac) while in iTunes it is showing that the music is indeed on my iPod, but when i eject the iPod there is nothing there.

    I have a 27" iMac with the latest version of iTunes.  I tried restoring my iPod and even removing and re-installing iTunes.  What eventually worked for me was plugging into my PC and restoring/reformatting it to work with my PC.  I don't know why it wouldn't work with my iMac, but now it seems to be working.

  • Compiling error in my test file for Reader class.

    I did a small program trying to test Reader class, here is my code:
    package testfilereader;
    import java.io.*;
    import java.io.Reader;
    import java.io.InputStream;
    * Title:
    * Description:
    * Copyright: Copyright (c) 2001
    * Company:
    * @author
    * @version 1.0
    public class FileTest {
    public static void main(String args[]){
    Byte buff[] = new Byte[80];
    try{
    InputStream r = new FileInputStream("test.txt");
    int i = r.read(buff);
    String s = new String(buff);
    System.out.println(s);
    }catch(NullPointerException e){}
    catch(IOException e2){}
    But I continue to get compiling errors:
    C:\>javac FileTest.java
    FileTest.java:19: cannot resolve symbol
    symbol : method read (java.lang.Byte[])
    location: class java.io.InputStream
    int i = r.read(buff);
    ^
    FileTest.java:20: cannot resolve symbol
    symbol : constructor String (java.lang.Byte[])
    location: class java.lang.String
    String s = new String(buff);
    Please advise what is wrong here.

    Replace Byte with byte - the methods
    expect arrays of byte; not Byte (which is a simple
    class wrapper for byte).Hi, I changed to:
    byte buff[] = new byte[80];
    Same errors, any other ideas?

Maybe you are looking for

  • Airport Extreme Connected to Internet, Yet No Longer to Powerbook G4

    Airport was connected over a cable modem to the internet just fine until last night. It stopped working--no browser or email. I can still connect fine directly from the cable modem though. Internet Connect seems to think I have a strong connection, b

  • Firefox Browser window will not open or start.

    Sorry that this is long, but I wanted to make sure you knew as much as you needed to know. I click on the icon in my Windows taskbar, and the firefox browser window will not open. This was not the first of my problems. At first, Firefox would open im

  • Preblems of .jar in JBuilder9 Enterprise

    Is there someone that knows well Borland JBuilder 9 Enterpise?? I made a java application that needs, for working well, some file (.jpg .gif .ico )located in the same directory of the project, and an external library(a JNI),in the directory "lib" ins

  • CreativeCloud Home Tab Does Not Load

    My application manager was just updated to Creative Cloud. When I login the Home tab just has a endless spinning wheel. All other tabs work. Any idea how to fix this? I already tired a uninstall and reinstall plus the I deleted the opm.db file. Also,

  • Previous $100 credit - just online or in-store as well?

    For those of you who have used your previous $100 iPhone credit, can you use it at the Apple Store, or is it just online like the 1st generation iPod credits were?