.class Files with "$X" extensions

Hi everybody,
when I deploy my App, some confusing .class files are generated by my JDev (10.1.3.3) ...
In my Project I declare a Class named
- JClientDesktopManager.java
This is compiled to two .class files:
- JClientDesktopManager.class     
- JClientDesktopManager$1.class
Whats that strange class with "$1"?
Should I care about about it? - it seems randomly...

Hi!
Theses files house anonymous inner classes, a standard Java mechanism.
Whenever you write something like:
ActionListener listener = new ActionListener() { public void actionPerformed(ActionEvent event) { <your code here> }};or
JTable table = new JTable() { public boolean isEnabled() { <your code here> }};you create in fact new (anonymous) inner classes. These classes have no name (hence "anonymous"), they are just numbered.
For more background you could just Google for "anonymous inner class".
Sascha

Similar Messages

  • How to output a postscript file with .ps extension name in jsp?

    Hi,
    I could use a servlet to output a postscript file with .ps file extension name. But I tried to do the same with jsp, for some reason, jsp always outputs a file with .jsp extension name though the content is postscript. Could anyone help me on this? Here is my jsp code:
    <%@page contentType="application/postscript"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="java.util.*" %>
    <%@page import="java.io.*" %>
    <jsp:useBean id="corresv" class="oiintranet.CorresVBean" scope="request"/>
    <%
    response.setContentType("application/postscript");
    String corresId = request.getParameter("Id");
    corresv.setCorresId(corresId);
    PrintWriter output = response.getWriter();
    output = corresv.getResult(output);
    output.flush();
    %>
    In the bean corresv:
    public class CorresVBean extends BaseBean {
    private String corresId;
    public void setCorresId(String s) {
    this.corresId = s;
    public PrintWriter getResult(PrintWriter output) {
    //get postscript file content from a socket, one string line each time until reaches "X_END"
    String str;
    while ((str = in.readLine()) != null) {
    if (str.equals("X_END")) break;
    output.println (str);
    output.close();
    }catch(Exception e) {
    e.printStackTrace();
    return output;
    Thank you in advance.
    Geraldine

    Hi
    Every time u want to make a file u need to make its extension. I am talking
    about general scenario like word, excel so even when u make spool file
    so u need to give extension.
    like
    Spool temp.sql
    it will save u r file as sql file.
    hope it will help
    regards

  • Receiving multiple files with dual extension using file adapter

    Hi,
    The scenario where I am implementing requires multiple files of different names to be picked(ABC.txt) and dropped at destination(ABC.txt.pgp) up by my File Sender and Receiver adapters.  Any idea on about how the configuration for receiving multiple files with dual extension for receiver adapter is to be done?
    Note:- currently, The scenario is working fine without dual extension. i.e Its picking all files which starts with ABC and creating at destination as it is. even I configured as ABC.txt.pgp, but its not creating the second extension.
    Thanks in Advance
    Manmadha

    Hi,
    Try to concatenate '.pgp ' to the source file name to create the target file name for the receiver file adapter, by accessing the Adapter Specific Attributes using Java user defined function. This might work.
    Reference links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm">SAP Help - Accessing Adapter Specific Attributes</a>
    <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - XI: The same filename from a sender to a receiver file adapter - SP14</a>
    Regards,
    S.Santhosh Kumar

  • How do I add a filter in JFileChooser for files with no extension?

    Is it possible to have a filter with that filters out files with no extension in a JFileChooser?
    Any help is appreciated.
    Shankar

    When you override accept(File), get the filename from the File object, and parse out the extension. I don't remember there being an easy way to get the extension besides looking for a dot and parsing. If there's no extension, accept it.

  • I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I alocate th

    I am trying to find out how to assign files with particular extensions to the appropriate software. At the moment when I create a file using Word it is apparently given the extension .docx but Word doesn't recognise its own files. How do I allocate the extension .docx to Word? There used to be a way of doing it, I think under "Preferences" but I can't seem to find it.

    Still in the same location:
    File > Get Info > Open with (select) > Change All (button)

  • Files with .ejb extension

    Hi,
    I am using the <javadoc> task in an Ant build file. I have several EJB files with th extension .ejb that I want to have included in my javadocs.
    I have the following code:
    <target name="javadoc" description="Build Java Documentation">
            <javadoc destdir="${doc.dir}">
                    <fileset dir="src">
                            <include name="**/*.ejb" />
                    </fileset>
            </javadoc>
    </target>However, when I run this I get the following error:
    [javadoc] javadoc: Illegal package name: "C:\src\com\test\ejb\CommandInputEJB.ejb"I do need the .ejb file extension for another tool to work (Ejbgen). Is there a way to get this working?
    Thanks in advance for any help!
    Arjan Huijzer

    Hi Arjun
    I'm still learning all of this myself with Ant, but looking at your script, it does not appear to be complete. I understand that you need to have certain tags included. The Ant task documentation gives good information, but in brief, in the list of parameters, the required options are indicated. Your script as a minimum, must include either '<b>sourcepath</b>', '<b>sourcepatheref</b>', or '<b>sourcefiles</b>' and you then must include '<d>destdir</b>' (which you already use).
    You can find the documentation here:
    http://ant.apache.org/manual/CoreTasks/javadoc.html
    I have never included external files such as the EJB ones you are using, but I have written my own script for generating JavaDoc HTML output. Feel free to use it if it helps.
    It uses an external file for the package list (sourcepath), called from the property:
    <i> <property name="JDOCSOURCELIST" value="JDOCSourceList.properties" /> </i>
    This is the same as the -sourcepath option of the standard JavaDoc docelt. It is formatted:
    <code>
    com.supersaus.server
    com.supersaus.server.factories
    \\\\S5\\Documentation\\com\\supersaus\\common\\Association.java
    \\\\S5\\Documentation\\com\\supersaus\\common\\CData.java
    </code>
    Other properties used in the script are:
    <code>
    <property name="JDOCDIRECTORY" value="JavaDocOutput" />
    <property name="SOURCECODEROOT" value="\\\\S5\\Documentation" />
    <property name="STYLESHEET" value="./stylesheet.css" />
    <property name="BOTTOM" value="Supersaus 2004" />
    <property name="DOCTITLE" value="Supersaus Common Files" />
    <property name="LINK" value="http://java.sun.com/j2se/1.4.2/docs/api" />
    <property name="OVERVIEW" value="doc-files\\Saus_Overview.htm" />
    </code>
    The main ant target is built up as follows:
    <code>
    <!-- Generate the JavaDoc HTML. -->
    <target name="BuildJavaDoc">
    <splash/> <!-- Add Ant progress bar -->
    <echo message="Please wait whilst the document is generated into the folder ${JDOCDIRECTORY}" />
         <!-- call javadoc -->
         <javadoc destdir="${JDOCDIRECTORY}"
         sourcePath="${SOURCECODEROOT}"
              packageList="${JDOCSOURCELIST}"
              maxmemory="180M"
              stylesheetfile="${STYLESHEET}"
              bottom="${BOTTOM}"
              Doctitle="${DOCTITLE}"
              Windowtitle="${DOCTITLE}"
              Overview="${OVERVIEW}" >
              <Link href="${LINK}"/>
         </javadoc>
    </target>
    </code>
    Hope all this helps?
    Best wishes and good luck
    Supersaus

  • Files with .a extension using ftp transport

    Hi.
    Am using ftp adapter in osb to read .txt files(e.g. abcd.txt) from ftp location, process the body/text() in OSB and then place the incoming file to an outbound folder.
    the flow is like ftp-> Proxy Service->Business Service->outbound ftp
    the service works fine where then is less load or the no. of incoming files is less.
    However,sometimes the outbound folder contains the files with .a extension at the end.(e.g. abcd.txt.a)
    Can someone tell me the rootcause of these .a file creation and the scenarios in which the .a files are created.
    Also,please tell me what are these .a files meant for?
    How,can I eliminate this while configuring the services using ftp transport.
    Thanks in adavance

    I had this recently with a variety of FTP servers, FileZilla, Microsoft etc.
    For me, it happened when the file already exists in the destination and I was expecting the destination file to be overwritten. My application would generate the same filename, say FileA.txt and expect that to be overwritten, but with OSB 10gR3 I would get files with .a stuck on the end.
    This functionality changed between ALSB and OSB and I had a patch developed to restore the ALSB functionality.
    I spent ages looking at it, and debugging FTP commands and going from memory, I'm pretty certain that the FTP adapter doesn't implement the correct FTP spec for the RNFR command according to the RFC in the case where a file already exists - it doesn't handle overwrite.
    Hope that may help.
    Pete

  • How to open a file with the extension x3f (sigma)

    how to open a file with the extension x3f (sigma)?

    RAW data from the following Sigma cameras is currently supported:
    DP1
    DP1s
    DP2
    SD9
    SD10
    SD14
    If your camera is among these, then simply import the photo as usual. https://helpx.adobe.com/lightroom/help/importing-photos-lightroom-basic-workflow.html

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • File with pls extension opens with data modeler instead of sql developer

    Hello,
    I have both SQL Developer and Data Modeler installed as separate installations. If I  click in  the Windows File navigator on a file with the extension pls, the SQL Developer should open since the pls extension has been connected to SQL Developer.
    If I have neither SQLD nor DM open, SQLD opens -> ok
    If I have only SQLD open, the file is opened in SQLD -> ok
    If I have only DM open, the file is opened in DM -> not ok
    If I have both SQLD and DM open, the last started application opens the file -> sometimes ok
    Is it possible to manage the opening of a pls to open always in SQL Developer?
    Joop

    This is quite an old problem which I have seen with JDeveloper and SQLDeveloper so it may be framework related. I don't currently have both installed to check it out, but as it has been around a long time I doubt it has gone away.
    SQL files would open in either JDeveloper or SQL Developer following the pattern Joop described. Java files would only ever open in JDeveloper.    IIRC there was never a SQL file association for JDeveloper and SQLDeveloper was always the default.

  • [SOLVED] Delete recursively all files with certain extensions

    Hi all,
    I am trying to recursively delete files with specific extensions. Many of these files have names containing spaces. The following, that I found googling around, didn't work:
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx' | rm
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx' -type f -ok rm '{}' ';'
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx' -exec rm -f '{}' \;
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx'| xargs /bin/rm -f
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx' -exec /bin/rm -f '{}' \;
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx'| xargs -0 rm
    and I think that it was the following that deleted all the files (except the directories):
    find /media/TSUNAMI -name '*out' -or -name '*aux' -or -name '*log' -or -name '*.blg' -or -name '*.toc' -or -name '*.bcf' -or -name '*.swp' -or -name '*blx' -type f -delete
    What am I doing wrong here?
    Thanks a lot in advance.
    PS. While writing this I realized that I fogot the dot in out, aux, log, and blx
    PS2. I'm experimenting around and don't mind deleting all the files if I do a mistake
    Last edited by geo909 (2014-09-30 06:12:04)

    geo909 wrote:Thanks so much. So  what is different when we group those options with \( \)?
    The implicit "and" operator binds stronger than the "or" (-o) operator. Therefore
    | -name a -o -name b -delete |
    will be grouped like this: 
    | (-name a) -o ( -name b -delete ) | .
    You want to group it like this: 
    | ((-name a ) -o ( -name b )) ( -delete )   | ,
    so you need to add some manual grouping: 
    | ( -name a -o -name b ) -delete |
    Last edited by progandy (2014-09-30 05:52:29)

  • Xdg-open is opening files with no extension in wine notepad

    xdg-open is opening files with no extension in wine notepad. This is really annoying. How can I change it?

    Click on "Browse" button at the "Open With" dialog and navigate to the location, where acrord32.exe is located. Preferebly, it should be this location "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe" unless you have installed at some customized location.  I'm assuming you have installed Reader 9. Once you add Adobe Reader in the open with list, it would continue to appear next time onwards.

  • Files with eml extension

    Hi there;
    I've encountered files with the extension eml.
    I am not able to see these files in any directory but they are occupying a huge amount of my tablespaces and HDDs. Each of which file is about 10MB.
    Does anyone know about these files?
    Thanks;
    Sasan Ebadian

    I'm not sure, but i think that this extension file it's from MS Outlock.

  • Read multiples files with same extension

    how to read multiples files with same extension in java.
    for ex : i would like to read all .DAT files from C drive using java.
    How is it done

    - You create the filter
    - You get the list of files
    - You open and read each file.
    For the first two above you look at java.io.File and listFiles(FileFilter filter).
    For the third you find whatever input stream is appropriate from java.io.*

  • Spotlight content search : excludes files with .php5 extension

    My Spotlight does not find strings in files with .php5 extension. It probably does not consider these as text files.
    How can I change that ?

    I guess I found the right page :
    http://developer.apple.com/documentation/Carbon/Conceptual/understandingutis/understand_utis_intro/chapter_1_section_1.html#//appleref/doc/uid/TP40001319-CH201-SW1

Maybe you are looking for