How to write several unique java class in the java file?

Hello
I use Jdev 11.1.2.0.0.

When I write the java class, I wrote in my file of multiple class. This time Jdeveloper advise that, move this class into distinct java file.
But I don't want to go, without moving this class it works perfectly. But it is what tells the error indicator 'red '. How to solve this problem.

Kind regards
Rami

Hello

its an audit rule that is facing you. You can go to tools-->--> Audit preferences and disable it if you are more disturbed.

Frank

Tags: Java

Similar Questions

  • Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    Help, please... I need to know how to crop my video segments?  I also need to know how to make several clips to run at the same time by dividing the screens?  How to fade a clip?

    I watched the video tutorials.  I need to know also how to add additional video tracks to my screen.  Any help please?

  • is it possible to write a script that will display the script files folder in the tree

    is it possible to write a script that will display the script files folder in the tree

    Yes :-)

    In your previous post, someone suggested to search for the file "SnpCreateTreeview.jsx", because it would just be the asked.

    The script can be found here, just accept the EULA and download the example scripts of Bridge CS3. (For some reason it is not in CS4 samples because as far as I know)

    Here's a version with small changes, it is up to you to point the script in the folder 'root' right, because this is, needless to C: on PC:

    ////////////////////////////////////////////////////////////////////////////
    ADOBE SYSTEMS INCORPORATED
    Copyright 2007 Adobe Systems Incorporated
    All rights reserved
    //
    NOTE: Adobe permits you to use, modify, and distribute this file according to the
    the terms of the Adobe license agreement accompanying it.  If you received this file from one
    source other than Adobe, then your use, modification or distribution of it is required in advance
    written permission from Adobe.
    /////////////////////////////////////////////////////////////////////////////

    /**
    @fileoverview shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.
    @class shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.

    Its use


      
      
      

        
    1. Run the extract in the ExtendScript Toolkit (see Readme.txt).
         
    2. Enlarge / reduce the list items
         
    3. Check the JavaScript Console to see the events captured by the elements of the TreeView.
       

    Description


     
     

    Creates two hierarchical list of TreeView items. One is static, with a fixed set of point
    nodes that you can expand and collapse. The other is dynamic; Item nodes are added and removed as
    the need for a view of the file system.
     
     

    The list items in the TreeView control to display the folders and files custom images.  When you add items to the
    TreeView list, type 'article' is used for elements of the leaf and 'node' to the elements of the container.
     
     

    Dynamic TreeView captures events in two different ways. It uses callback functions to capture the
    node to expand and collapse events and selection changes and also registers an event listener to
    capture double-click events.

    @constructor constructor
    */
    #targetengine "session".
    function SnpCreateTreeView()
    {
    /**
    The context in which this code snippet can work.
    @type string
    */
    this.requiredContext = "\tNeed runs in the context of the Bridge\n."

    /**
    The location of this script file system
    @type file
    */
    var scriptsFile = new File($.fileName);
       
    /**
    The location of the file system resource PNG file used to represent folders
    @type file
    */
    this.folderIcon = new file (scriptsFile.path + "/ resources/Folder_16x16.png");

    /**
    The location of the file system resource PNG file used to represent files
    @type file
    */
    this.fileIcon = new file (scriptsFile.path + "/ resources/Story_16x16.png");

    /**
    The root folder that will be used for the dynamic tree
    @type string
    */
    this.rootFolder

    If (File.fs is "Windows")
    {
    this.rootFolder = "C:";
    }
    on the other
    {
    this.rootFolder = ' / ';.
    }
    }

    /**
    Functional part of this code snippet. Creates the ScriptUI window and its components,
    and defines the behavior.
    @return true if the code snippet is executed as scheduled, false otherwise
    Boolean @type
    */
    SnpCreateTreeView.prototype.run = function()
    {

    $.writeln ("about to"run SnpCreateTreeView");
       
    Create the window
    var win = new window ("palette", "SnpCreateTreeView", undefined, {resizable: false});

    Create the Committee for the static TreeView control
    sPanel var = win.add ('Committee', undefined, 'TreeView Élément') static;
    sPanel.alignment = ["fill",""];
    sPanel.alignChildren = ["fill",""]

    Create a TreeView list
    sTv var = sPanel.add ("treeview");
    sTv.preferredSize = (300, 200);
    Add static items to the list, in a hierarchical structure.
    for (var i = 0; i)<>
    {
    sTv.add ("node", "Item" + i);
    for (var j = 0; j)<>
    {
    sTv.items [i] .add ("item", "Sub Item" + j);
    }
    }

    Create the Committee for the dynamic TreeView control
    var dPanel dynamic = win.add ('Committee', undefined, 'TreeView Élément');
    Create a TreeView list
    TV digital var = dPanel.add ("treeview", undefined);
    dTv.preferredSize = (400, 300);
    Create the root node element
    var aNode = dTv.add ("node", "/");
    Pair it with an image of the icon
    aNode.image = this.folderIcon;

    Define a handler for the double clicks
    myOnDoubleClick = Function
    {
    if(e.detail == 2)
    {
    $.writeln ("double click");
    }
    }

    Adds the handler as an event listener to the TreeView element.
    dTv.addEventListener ("click", myOnDoubleClick);

    Keep a reference to this object
    var that = this;

    Define an event handler for when a node is expanded
    dTv.onExpand = function (point)
    {
    $.writeln (item.text + "is now expanded.");
    nextItem var = item;
    var path = "";
    goUp var = true;

    While (goUp)
    {
    path = "/" + nextItem.text + path;
    nextItem = nextItem.parent;
    If (instanceof TreeView nextItem)
    {
    goUp = false;
    }
    }

    Remove all children of this element
    item.removeAll ();

    var Ref = new file (that.rootFolder + path);
    If (Ref instanceof Folder)
    {
    children var = ref.getFiles ();
    for (var i = 0; i)<>
    {
    If (children [i] instanceof file)
    {
    Item.Add ("node", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.folderIcon;
    }
    on the other
    {
    Item.Add ("item", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.fileIcon;
    }
    }
    }
    }

    Define an event handler for when a node is reduced
    dTv.onCollapse = function (point)
    {
    $.writeln (item.text + "is now reduced.");
    }

    Define an event handler for when the selection changes
    dTv.onChange = function()
    {
    $.writeln ("selection changed");
    }

    Display the window
    Win.Show ();
       
    $.writeln ("Ran SnpCreateTreeView");
       
    Returns true;
    }

    /**
    "main program": construct an anonymous instance and run
    as long as we are not unit - test this code snippet.
    */
    If (typeof (SnpCreateTreeView_unitTest) == 'undefined') {}
    new SnpCreateTreeView () .run ();
    }

  • Mixture of Photoshop mobile app. How can you save an edited photo in the same file as the original?

    Mixture of Photoshop mobile app. How can you save an edited photo in the same file as the original?

    Hey there Mopi2!

    Currently, there is no way to save your new image instead of the original image. For now, you need to manually delete the original. It is however a great request! Please share with the team by typing "give us feedback" in the app menu (tap on the app icon in the upper left corner of the screen while inside the app).

    Let me know if that helps!

    -Kathleen

  • How to search for text in all of the PDF files on a mobile device?

    How to search for text in all of the PDF files on a mobile device?

    Not possible on mobile devices.

  • Image shows two NEF + JPEG, how do I know if I'm editing the RAW file?

    In the library module, I have images that show the NEF + JPEG.  When I click on the image and move the develop module, how can I know that I am editing the RAW file?

    ILoveMyNikon wrote:

    NEF + JPEG

    Interpret as follows: raw file 'NAVE' a 'sidecar' jpeg disk file too, which was not imported, but is "follow-up." i.e. it is a NEF file.

    The best way to develop the module file is raw or jpeg is to look at the cursor to temperature: temperature of jpeg is incremental, centered at 0, gross temperature is in degrees kelvin.

    Rob

  • Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Yes, I assumed that was the case, and I thought that this link addressed to her.  I would have thought it was more a function of your network and the OS than Photoshop.

  • How to write a unique number in a single Excel cell

    I'm using Labview 2013 SP1 with the Microsoft Report Builder and I can't understand how to write a number of DP to a specific cell in an Excel spreadsheet. I have no problem writing tables of numbers to specific cell ranges, formatting of cells, the writing of titles, using models, everything I need, except the possibility to write a number to a specific cell. All vi who write the numbers seems to require tables 2D for the entries. I must be missing something, but I think I crossed every vi in the palette of MRG and found nothing.

    Any help/examples were greatly appreciated.

    ... and you probably know that the best way to do it is with build table, twice.

    Note the lines is 'thick' goes from left to right.

    Bob Schor

  • How to write a table and a scalar value in file?

    I would like to write my data in a file but cannot address the problem. In the file I would write are values of x and y of my points of data in two columns, however, the data is in a table and the data of x consists of 3 pieces of information: an initial x, x incremented value and the number of points in my sample of data. How would I go about this?

    The number of points is redundant, because it will be the same as the 'other' in the table.

    Here's what I usually do:

  • How to write a single line instead of the entire port?

    Hello

    I followed the example for writing to the digital line as follows

    int taskHandle;

    given int [8];

    char linename [] = "" dev2/port0 / line0:7 ";"

    DAQmxErrChk (DAQmxCreateTask ("", & taskHandle));

    DAQmxErrChk (DAQmxCreateDOChan (taskHandle, linename, "", DAQmx_Val_ChanPerLine));
    DAQmxErrChk (DAQmxStartTask (taskHandle));
    DAQmxErrChk (DAQmxWriteDigitalU8 (taskHandle, 1, 1, 10.0, DAQmx_Val_GroupByChannel, data, NULL, NULL)); Here the data have 8 digits
     
    Error:
    SetWaitCursor (0);
    If (DAQmxFailed (error)) DAQmxGetExtendedErrorInfo (errBuff, 2048);
    If (taskHandle! = 0)
    {
    DAQmxStopTask (taskHandle);
    DAQmxClearTask (taskHandle);
    }
    If (DAQmxFailed (error)) MessagePopup("DAQmx Error", errBuff);

    The example above shows how to write 8 binary to 8 lines, but how to write only one line? I try the following code, but it does not work

    char linename [] = "dev2/port0/line 2;

    ...

    DAQmxErrChk (DAQmxWriteDigitalU8 (taskHandle, 1, 1, 10.0, DAQmx_Val_GroupByChannel, & data [2], NULL, NULL)); Here the data have 8 digits

    The data format for the DAQmxWriteDigitalLines() function will do exactly what you want.

    The data format for the DAQmxWriteDigitalU8() function is a full port (even if you do not have a value of a harbour full of lines in your task).

  • How to write express line and column of the tables headers to a file

    HI guys, I work with that express table and display data using the express table. What I want to do, is that when I press save button results data in the specific table must be written to a text file. I am able to write the text file, but only the data is written. Y at - there a possiblity that I can also write lines and column headers and the data in the text file. Kindly guide me in this regard as soon as possible. I enclose the image also. Please watch this and guide me.

    Cordially Ehtisham Safdar.

    Hello

    Sorry for the late reply. Here is the VI, I hope it works for you. Rather than each element of the index and the addition of the row header, take advantage of the available icons and play with the nodes of property for a good solution.

    Concerning

    Gaze

  • How oracle write "Checkpoint is not complete" in the journal of alerts?

    DB version: 10.2.0.4/RHEL 5.8

    In a batch run, we met a lot of 'Checkpoint not finish' errors in the alerts log.

    Later we discovered that the ORLs were only 50 MB in size and that DB had only 3 redo log group. Since this is the likely reason, we will create at least 10 groups of Redo log and increase the size of Redo log at 500 MB.

    But I want to know what exactly are the causes oracle to write "Checkpoint is not complete" in the journal of alerts?

    For the purpose of this discussion, I guess we have only 1 ENT by redo log group. Is my assumption correct below?

    ORL1

    |--> ORL1 file got full, then LGWR begins writing to the file ORL2. Control point occurs at the command of journal

    |                    DBWR writes updated the blocks associated with the entries of data files again ORL1

    |

    V

    ORL2

    |-> ORL2 file obtained full, LGWR wants to start writing to the file ORL3. Checkpoint is initiated to the log command.

    |                    But the control point cannot be completed for reasons unknown

    |

    V

    ORL3

    |---------------->

    Your assumption is only partially right.

    I like to illustrate

    ORL1

    |

    |---> ORL1, file got full, then LGWR begins writing to the file ORL2. Control point occurs at the command of journal

    |                    DBWR begins writing modified blocks associated with the entries of data files again ORL1

    |

    V

    ORL2

    |---> ORL2 file obtained full, LGWR begins writing to the file ORL3.

    |                    Checkpoint for ORL2 is initiated to the log command.

    |

    V

    ORL3

    |

    |---> ORL3 queue (the last member) also got full very quickly. LGWR wants first of all the 'new round '.

    writing (re-use) to ORL1. But the outlined point of control of the previous cycle ORL1 journal is

    not finished yet! .

    Basically, you get this error when LGWR tries to reuse a log file of roll forward online (ORL1 in the example above) and considers that it cannot be.

    This is because the remaining files (ORL2 and ORL3) ORL got entirely written before DB writer finished modified checkpointing associated blocks ORL1 again.

    Until the ORL1 control point is completed, DB crashes effectively and user sessions must wait until LGWR can reuse safely ORL1

    Yes can help a larger size of log roll forward to 10 groups. , But make sure that the input/output subsytem where are stored the ORLs has no latency problem.

  • How to write a script to report to the page number in a book?

    Hello

    Is it possible to write a script to report to the page number in a book by pop up a text file.

    What I'm trying to say:

    first of all, I opened an indesign book, thenI run the script, the script can gen a text pop-up file and the list of files, the file names and page numbers (only the star number of each file) and the script can also tells me that I have two files or more overlap page numbers (if any).

    sample:

    book3.jpg

    report like this:

    01 table of contents 1
    02 2 Summary
    03 the financial of the 3 games
    Statement by the President 4 04
    05 MD and A                                 7
    06 12 CG report
    Report of the directors 07 17
    08 18 auditor's report
    Profit and loss account 09 19
    profit and loss 20 10
    11 equity change 20
    Cash 12 21
    13 notes on the 22 account
    14 42 corporate information

    File have the page number of overlap:

    profit and loss 20 10
    11 equity change 20

    Thank you

    Is that what you need?

    var book = app.activeBook,
        _content = [];
        overlap = [];
    for(var i =book.bookContents.length-1;i>=0;i--)
    {
            _content.push(book.bookContents[i].name + "\t" + (book.bookContents[i].documentPageRange.replace(/-[^-]+$/g,"")) + "\r");
            if(book.bookContents[i].documentPageRange == book.bookContents[i-1].documentPageRange)
            {
                    overlap.push(book.bookContents[i].name + "\t" +book.bookContents[i].documentPageRange + "\r" + book.bookContents[i-1].name + "\t" +book.bookContents[i-1].documentPageRange);
                }
        }
    alert(_content.reverse());
    alert(overlap.reverse())
    

    Kind regards

    Cognet

  • Several unsuccessful attempts to open the PDF file in Windows Explorer by double-clicking

    Hello

    My system configuration: Windows 7 SP1 x 64 Adobe Reader 11.0.10.32.

    By double clicking on the PDF file or try to open with Adobe Reader IX in the menu shortcut in Windows Explorer or any other file manager, the software Adobe Reader opens only after a few attempts. At each attempt the AcroRd32.exe process arises. And after a few attempts, the file opens. As a result, I see several empty AcroRd32.exe process in the Task Manager, each have about 4000 KB of RAM and the only open file. I have to kill these empty process manually, because they are not dead before closing the window of Adobe Reader.

    I found the same problem on another PC with the same configuration.

    Best,

    Alexei

    AdbRD_Bug.gif

    Hi Alexis,.

    Could you please let me know for how long did you face this problem.

    Open the TEMP folder (press Windows + R and type %temp%) and delete all the files inside.

    This happens with any specific PDF or all PDFs?

    You can try to disable the Safe_mode opening drive then go to ' Edit > Preferences > (protection)»

    Let me know how it goes.

    Kind regards

    Ana Maria

  • How to close a jmf rtp session when the entire file is sent.

    I use jmf to stream a video file from one client to another, everything seems to work fine except for the fact that I don't know how to close the prosessor and the session/datasink on the transmission side when customers the clientis done streaming, I can close lets say after 60 seconds of starting, but I am not able to understand how to stop when the entire record is streaming. I tried to use the datasinklistner when sending the video and the following code
    public void dataSinkUpdate(DataSinkEvent event) {
    
             if (event instanceof javax.media.datasink.EndOfStreamEvent) {
                 endOfStream = true;
    
             }
         }
    but the endofstream event is never received from the data source.

    the problem is that it works very well if I using 20 second video and I close the datasink and the processor in 60 seconds, the entire file get listened to but if I have a file for more than 60 seconds, then just file is reduced to 60 seconds.

    I also tried to use a sessionmanager a sessionlistener and a sendStreamListener with the following code
    /**
         * SessionListener.
         */
        public synchronized void update(SessionEvent evt) {
    
    
        }
    
    
        /**
         * SendStreamListener
         */
        public synchronized void update( SendStreamEvent evt) {
            System.out.println(evt);
    
         if (evt instanceof InactiveSendStreamEvent) {
              flag=true;
              System.out.println("done");
    
    
         }
         if (evt instanceof ActiveSendStreamEvent) {
    
             System.out.println("start");
    
    
        }
        }
    I ran the code and send files and everything, but neither an activestreamevent nor an inactivestreamevent happens but the file is currently distributed correctly

    user13490676 wrote:
    could this be a problem with jmf itself that the endofstream don't get generated for the playing of a file data source

    In this case, that would be the problem... more that likely there is something odd about the file, maybe it doesn't have a duration set in the header and JMF treats it as a live stream.

    You can always write a custom data source that passes right through the entrance of a normal data source and then generate the EndOfStream event yourself... maybe based on a timeout counter or failure? I have not received all the data in x seconds or after x attempts, so I guess that the file is... Or when you have read enough data that the file cannot have more (read > = file header / data file)...

Maybe you are looking for