Tracing Java files in Jdev

Hi,
I am new to Jdeveloper. In our project there is one Java form window with some issues. I can able to see the UI but I don't know which class is associated with that form so that i can change the code. Is there any way to display the Java file name in console when I open the particular UI in applet viewer during Run?
Thanks,
Prabhu

I'm not sure but look in the zipfile src.jar in the java installation directory

Similar Messages

  • How to handle big java source files in JDEV 10.1.3

    Hi,
    I have some .java files that are like over 10,000 lines long. I know this is crazy but I didn't write it but I have to maintain it. I really dont feel like refactoring all these big source files right now.
    JDeveloper has lots of while-editing features that are probably grinding to a halt on this really big file. My CPU usage shows ~97% whenever I do anything in this file.
    Is there some preferences I could set or something I can disable just while editing this big file.
    Thanks,
    Simon.

    The delays between edits and the IDE stalls seemed
    about the same with this change in place.Ah... that's sad. It seems like there's another (un-configurable) timer mechanism for background parsing used by the structure pane.
    I didn't
    really understand what the numbers were controlling
    so I didn't try any other values. They control the frequency of a timer that is reset each time you press a key in the code editor. After the number of ms specified in these parameters has elapsed after the last keypress, the code in the editor is parsed. There are two settings, one for short files and one for long files (I forget what the threshold is between short and long).
    Maybe it isn't the parser since it still goes to 100%
    CPU (just less often) but I can still move the mouse
    around the file - no stalling. Here's something I'd find useful to investigate this problem: Run jdeveloper with jdev.exe so that you have a console. When the CPU hits 100%, switch to the console and press Ctrl+Break. Copy the stack dump (maybe take a couple of them) and email them to me (brian dot duff at oracle dot com).
    Dropping the structure window is a fairly simple work
    around for me. I can live without the structure
    window for this file although it is actually most
    useful as the file's size, and structure, increases.Yes, I can imagine the structure pane would be quite useful with a mammoth java file like the one you're working with :) Incremental find might be your friend in its absence (Ctrl+E, I think).
    If your considering an ER for the structure window
    (:-) then how about this too:
    "Cursur location within the file should be shown in
    the structure window"
    This already happens for Ant (build.xml) files but
    not for Java files - or at least not for me. The
    problem is that it is easy to get lost in a large
    file and the navigation assistance should be the same
    across all structured file types. Funnily enough, I was talking to one of the developers on the team that builds the infrastructure for the xml based parts of the product (including ant) about these kind of inconsistencies between the XML and Java structure panes just a couple of days ago... :) I'll file a bug for this (rather than an ER), since it's a UI inconsistency.
    Thanks,
    Brian

  • BUG : JDev 10.1.3 SR2 hangs when opening a java files

    Hi,
    think I've found a bug. I'm using JDev 10.1.3, patched with SR1 & 2, my machine is a Windows XP SP2 box with 1GB mem and Intel Pentium 4 2.60 Ghz with HT.
    When I try to open a file in the Java editor the IDE hangs. Launching jdev.exe I can see that the following output is continuously printed:
    Exception occurred updating RowMap: 16
    startRow: 0
    numRows: 1
    startLine: 0
    numLines: 15
    _rowCount: 15
    lineCount: 15
    Stack trace follows
    java.lang.ArrayIndexOutOfBoundsException: 16
         at oracle.javatools.buffer.ArrayLineMap.getLineEndOffset(ArrayLineMap.java:326)
         at oracle.javatools.editor.BasicView$LineRowMap.recalculateLineWidths(BasicView.java:3576)
         at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3487)
         at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
         at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
         at oracle.javatools.editor.BasicView$LineRowMap.<init>(BasicView.java:3259)
         at oracle.javatools.editor.BasicView$FoldedRowMap.<init>(BasicView.java:3966)
         at oracle.javatools.editor.BasicView.updateMetrics(BasicView.java:1128)
         at oracle.javatools.editor.BasicView.getPreferredSpan(BasicView.java:1730)
         at javax.swing.plaf.basic.BasicTextUI$RootView.getPreferredSpan(BasicTextUI.java:1257)
         at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:819)
         at oracle.javatools.editor.BasicEditorUI.getPreferredSize(BasicEditorUI.java:158)
         at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
         at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1227)
         at javax.swing.JViewport.getViewSize(JViewport.java:1003)
         at javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport(BasicScrollPaneUI.java:264)
         at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.viewportStateChanged(BasicScrollPaneUI.java:855)
         at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:797)
         at javax.swing.JViewport.fireStateChanged(JViewport.java:1357)
         at javax.swing.JViewport.setView(JViewport.java:975)
         at oracle.ideimpl.editor.SplitPane.setEditorComponent(SplitPane.java:343)
         at oracle.ideimpl.editor.SplitPane.attachEditor(SplitPane.java:949)
         at oracle.ideimpl.editor.SplitPane.attachCurrentEditor(SplitPane.java:919)
         at oracle.ideimpl.editor.SplitPane.setCurrentEditorStatePos(SplitPane.java:1138)
         at oracle.ideimpl.editor.SplitPane.setSplitPaneState(SplitPane.java:207)
         at oracle.ideimpl.editor.TabGroup.attachCurrentNode(TabGroup.java:517)
         at oracle.ideimpl.editor.TabGroup.setCurrentTabGroupState(TabGroup.java:1294)
         at oracle.ideimpl.editor.TabGroup.activateEditor(TabGroup.java:639)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1273)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1196)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1131)
         at oracle.ideimpl.editor.EditorManagerImpl.whenOpenEditor(EditorManagerImpl.java:2332)
         at oracle.ideimpl.editor.EditorManagerImpl.handleDefaultAction(EditorManagerImpl.java:1893)
         at oracle.ide.controller.ContextMenu.fireDefaultAction(ContextMenu.java:343)
         at oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(BaseTreeExplorer.java:1504)
         at oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(BaseTreeExplorer.java:1841)
         at oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(BaseTreeExplorer.java:1862)
         at oracle.ideimpl.explorer.CustomTree.processMouseEvent(CustomTree.java:176)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Forcing RowMap rebuild
    I also disabled ALL extension and removed the jar files in jdev/extension, except the one that was originally included in the 10.1.3 and those that seems related to the service releases.
    The file I'm trying to open is done like this:
    --- start after this line ---
    package com.websiteitalia.jsftest.view.controllers.people.list;
    import com.websiteitalia.jsftest.model.list.people.PeopleListUtil;
    import com.websiteitalia.jsftest.view.controllers.BaseListBacker;
    import com.websiteitalia.weblib.ejb.list.IWSList;
    public class PeopleListBacker extends BaseListBacker {
    public IWSList getListRemote() throws Exception {
    return PeopleListUtil.getList();
    --- end before this line ---
    I include also an HEX encoding of the file:
    00000000h: 70 61 63 6B 61 67 65 20 63 6F 6D 2E 77 65 62 73 ; package com.webs
    00000010h: 69 74 65 69 74 61 6C 69 61 2E 6A 73 66 74 65 73 ; iteitalia.jsftes
    00000020h: 74 2E 76 69 65 77 2E 63 6F 6E 74 72 6F 6C 6C 65 ; t.view.controlle
    00000030h: 72 73 2E 70 65 6F 70 6C 65 2E 6C 69 73 74 3B 0D ; rs.people.list;.
    00000040h: 0A 0D 0A 69 6D 70 6F 72 74 20 63 6F 6D 2E 77 65 ; ...import com.we
    00000050h: 62 73 69 74 65 69 74 61 6C 69 61 2E 6A 73 66 74 ; bsiteitalia.jsft
    00000060h: 65 73 74 2E 6D 6F 64 65 6C 2E 6C 69 73 74 2E 70 ; est.model.list.p
    00000070h: 65 6F 70 6C 65 2E 50 65 6F 70 6C 65 4C 69 73 74 ; eople.PeopleList
    00000080h: 55 74 69 6C 3B 0D 0A 69 6D 70 6F 72 74 20 63 6F ; Util;..import co
    00000090h: 6D 2E 77 65 62 73 69 74 65 69 74 61 6C 69 61 2E ; m.websiteitalia.
    000000a0h: 6A 73 66 74 65 73 74 2E 76 69 65 77 2E 63 6F 6E ; jsftest.view.con
    000000b0h: 74 72 6F 6C 6C 65 72 73 2E 42 61 73 65 4C 69 73 ; trollers.BaseLis
    000000c0h: 74 42 61 63 6B 65 72 3B 0D 0A 69 6D 70 6F 72 74 ; tBacker;..import
    000000d0h: 20 63 6F 6D 2E 77 65 62 73 69 74 65 69 74 61 6C ; com.websiteital
    000000e0h: 69 61 2E 77 65 62 6C 69 62 2E 65 6A 62 2E 6C 69 ; ia.weblib.ejb.li
    000000f0h: 73 74 2E 49 57 53 4C 69 73 74 3B 0D 0A 0D 0A 0D ; st.IWSList;.....
    00000100h: 0A 70 75 62 6C 69 63 20 63 6C 61 73 73 20 50 65 ; .public class Pe
    00000110h: 6F 70 6C 65 4C 69 73 74 42 61 63 6B 65 72 20 65 ; opleListBacker e
    00000120h: 78 74 65 6E 64 73 20 42 61 73 65 4C 69 73 74 42 ; xtends BaseListB
    00000130h: 61 63 6B 65 72 20 7B 0D 0A 20 20 20 20 0D 0A 20 ; acker {..    ..
    00000140h: 20 20 20 70 75 62 6C 69 63 20 49 57 53 4C 69 73 ; public IWSLis
    00000150h: 74 20 67 65 74 4C 69 73 74 52 65 6D 6F 74 65 28 ; t getListRemote(
    00000160h: 29 20 74 68 72 6F 77 73 20 45 78 63 65 70 74 69 ; ) throws Excepti
    00000170h: 6F 6E 20 7B 0D 0A 20 20 20 20 20 20 20 20 72 65 ; on {..        re
    00000180h: 74 75 72 6E 20 50 65 6F 70 6C 65 4C 69 73 74 55 ; turn PeopleListU
    00000190h: 74 69 6C 2E 67 65 74 4C 69 73 74 28 29 3B 0D 0A ; til.getList();..
    000001a0h: 20 20 20 20 7D 0D 0A 20 20 20 20 0D 0A 7D 0D 0A ; }.. ..}..
    Note the last empty line before the end-of-file. If I try to past this code into a Java file and open it in JDev, it hangs as described.
    Moreover, if I remove the last empty line, JDev will open the file in the editor but, as soon as I enter it again (placing the cursor at the end of the file a hitting enter) JDev hangs again.
    A final note: I experienced many hangs also in JSP editor, especially selecting a block of text and pasting something in its place, but don't know if the two behaviours are related.

    Ok, maybe I've tracked down at least one factor that makes JDev hang. I changed my font back to the default "DialogInput" instead of "Lucida Console" and now it opens my file.
    This is the settings that works in system/oracle.jdeveloper.10.1.3.36.73/preferences.xml
    <Item>
    <Key>FontSizeOptions</Key>
    <Value class="oracle.ide.ceditor.options.FontSizeOptions">
    <fontFamily>DialogInput</fontFamily>
    <fontSize>12</fontSize>
    <showOnlyFixedWidth>false</showOnlyFixedWidth>
    </Value>
    </Item>
    With this one it hangs:
    <Item>
    <Key>FontSizeOptions</Key>
    <Value class="oracle.ide.ceditor.options.FontSizeOptions">
    <fontFamily>Lucida Console</fontFamily>
    <fontSize>12</fontSize>
    <showOnlyFixedWidth>false</showOnlyFixedWidth>
    </Value>
    </Item>
    Logging the exception
    Exception occurred updating RowMap: 16
    startRow: 0
    numRows: 1
    startLine: 0
    numLines: 15
    _rowCount: 15
    lineCount: 15
    Stack trace follows
    java.lang.ArrayIndexOutOfBoundsException: 16
         at oracle.javatools.buffer.ArrayLineMap.getLineEndOffset(ArrayLineMap.java:326)
         at oracle.javatools.editor.BasicView$LineRowMap.recalculateLineWidths(BasicView.java:3576)
         at oracle.javatools.editor.BasicView$LineRowMap.recalculateRows(BasicView.java:3487)
         at oracle.javatools.editor.BasicView$LineRowMap.handleInsert(BasicView.java:3315)
         at oracle.javatools.editor.BasicView$LineRowMap.rebuildRowMap(BasicView.java:3286)
         at oracle.javatools.editor.BasicView$LineRowMap.<init>(BasicView.java:3259)
         at oracle.javatools.editor.BasicView$FoldedRowMap.<init>(BasicView.java:3966)
         at oracle.javatools.editor.BasicView.updateMetrics(BasicView.java:1128)
         at oracle.javatools.editor.BasicView.getPreferredSpan(BasicView.java:1730)
         at javax.swing.plaf.basic.BasicTextUI$RootView.getPreferredSpan(BasicTextUI.java:1257)
         at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:819)
         at oracle.javatools.editor.BasicEditorUI.getPreferredSize(BasicEditorUI.java:158)
         at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
         at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1227)
         at oracle.javatools.editor.gutter.LineGutterPlugin.getRowCount(LineGutterPlugin.java:1485)
         at oracle.javatools.editor.gutter.LineGutterPlugin.getPreferredSize(LineGutterPlugin.java:890)
         at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:690)
         at java.awt.Container.preferredSize(Container.java:1558)
         at java.awt.Container.getPreferredSize(Container.java:1543)
         at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
         at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:78)
         at java.awt.Container.preferredSize(Container.java:1558)
         at java.awt.Container.getPreferredSize(Container.java:1543)
         at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
         at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:717)
         at java.awt.Container.layout(Container.java:1401)
         at java.awt.Container.doLayout(Container.java:1390)
         at java.awt.Container.validateTree(Container.java:1473)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validateTree(Container.java:1480)
         at java.awt.Container.validate(Container.java:1448)
         at java.awt.Window.show(Window.java:515)
         at oracle.ideimpl.MainWindowImpl.show(MainWindowImpl.java:572)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.ideimpl.MainWindowImpl$2.runImpl(MainWindowImpl.java:773)
         at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Forcing RowMap rebuild

  • Generating war files with jdev

    Hi,
    I am trying to generate a war file with jdev and wish to exclude the connections.xml file from the war file. Is there any settings in the xxx.deploy file that I can change in jdev to do this?
    I am using 9i (v 9.0.3.4)
    Thanks

    Doesn't it come with a file called assembly.bat which launches the Java assembly tool. Webphere 4 does.
    That makes everything a lot easier.
    Dom.

  • Java files open in SQL Developer instead of JDeveloper

    JDEV 10.1.3
    Windows XP
    When I double click a java file, it opens in SQL Developer instead of JDeveloper.
    When I right click a java file, and select 'Open With'->jdeveloper, the java file always opens in SQL Developer instead of JDeveloper.
    I've tried browsing and choosing all the different executables: jdevw.exe, jdev.exe, jdeveloper.exe. No luck on any of them.
    Any help here? Thanks!

    Thanks, but that didn't work. I noticed that the "open" action for java file extension is, in fact, set to use the jdeveloper.exe (I also tried jdev.exe and jdevW.exe).
    Note: even if I run the jdeveloper.exe on the command line, with a java file as the argument, the java file still opens in SQL Developer, if it is running. (Otherwise it uses JDeveloper)
    It's as if JDeveloper and SQL Developer are somehow coupled in the opening of files.

  • How to get the .class file for the extended Controller .java file

    Hi,
    I did the below steps.
    1. Created New OAWorkspace
    2. Created New project
    3. Imported the page .xml file
    4. Added new .java file by extending the controller class
    5. Added code in the .java file.
    6. Ran the .xml file
    As I copied all the folders from Unix box, the page was opened.
    But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
    Please let me know how to create the .class file.
    Thanks,
    HP

    All are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
    In your case the path java would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
    AND
    Once you compile the java file in Jdeveloper, Class files get generated @ below path
    In your case the path of class would be
    JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
    Duplicate Thread-
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Java.io.NotSerializableException with VORowImpl.java file

    The WLS server shows this error with my file:
    java.io.NotSerializableException:
    @ oracle.apps.hcm.employment.responsibility.external.service.view.AssignmentResponsibilityVORowImpl
    The VORowImpl.java file is auto generated by jdev. How should I fix the NotSerializableException for VORowImple file?
    Thanks.
    Yan

    Hi,
    the question is what you do so that this error occurs. ADF BC performs passivation and there is no need to pass VORowImpl around. So trun the question around and ask what you shouldn't have do in your application
    Frank

  • Creating a java file in the project.

    Hi
    I am using jdev 11.1.2,
    And i have created a table type in database navigator in my hr schema.Now i want to create a java file for this table type.
    In jdev 11.1.1.3 i guess i can do it by just right clicking on the type and selecting the 'Generate to java' option, but i cant find the same here in 11.1.2,
    How can fulfill my requirement now.
    Help needed .Thanks/.

    Since you have not specified the technology, i will take a dig and assue you are wanting to create a JPA/EJB project
    http://xmlandmore.blogspot.com/2011/01/create-jpa-entities-from-tables-with.html

  • Access generated JAVA files in JDev10g

    Is there a way to access the JAVA files that are generated when a view object or an entity object are created? For example, the file ARandomViewViewImpl.java.
    It was very easy in JDev 9i, but know a can't find the way to do it. Is there a way to do it, if not, will there be a way to do it in the production version?
    Thanks
    J�r�

    Click on the ViewObject in the Navigator, then in the structure pane you'll see the java files associated with it. You may then open it from the structure pane.
    Hope this helps,
    Rob
    Team JDev

  • How to compile a Java file

    Hi All,
    I am extending a seeded CO and when I try to compile it in JDev , it asks for many class files the seeded CO imports.
    I have copied all those imported files to my local system and when I try to compile , it still throws an error that some class files used by the classes imported in seeded CO are missing. Now this goes on and on. ( Seems entire server needs to be on my local system).
    Now I decided to port the custom CO to server and compile it there. Even this seems to be a hard task for me as the javac command is not working on the server. It throws following exception
    Exception in thread "main" java.lang.ClassFormatError: com.sun.tools.javac.main. Main (erroneous method access flags)......................................
    Pls suggest how to compile a java file , as downloading entire server classes is a herculean task for me.
    Thanks,
    Srikanth

    Hi Avajain & D.Ram ,
    Thanks for the reply.
    I have downloaded around 70 dependent class files to local system. Now the CO is getting compiled correctly.
    I am extending a region level controller in Payroll page where in I have to default the salary to a predefined value.
    This field is having a VO attribute to it. Now can I go ahead and set a value to the MessageTextInput or should I extend the VO to replace the desired value in the place of already queried value.
    Thanks,
    Srikanth

  • OA Framework Out of box Java File Availability

    Hello,
    Is there any way to get the java files of the out of box code of oa frame of a particular module? I am working on IProcurement.

    You can go through this article on my blog, it typically helps u how to start with a new module setup on ur jdev:
    http://mukx.blogspot.com/2007/06/extensions-in-oa-framework-by-mukul.html
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                               

  • Obtaining a *.java file from Oracle Apps 11i

    Hi,
    I am working on customizing an existing Oracle Apps page. For this purpose I would need some of the seeded java files (not class files) provided by Oracle Apps. Is there any place on the application server or some other place from where I can get these?
    Thanks,
    Sangita

    Avoid modifying the std code, extend std.
    If you still want to modify std, do it thru' JDeveloper, Open the Business component, double click on the component to open the Object Editor, navigate to Java, check generate Java File options and then click OK , JDeveloper will automatically create it for you. This will save you the step of adding the new file onto JDev. You can then simply decompile the standard class file, copy the code onto the JDev-created java files and start modifying.

  • Error while compiling VO  java files

    I am getting following error while compiling VO java class in my instance
    Exception in thread "main" java.lang.ClassFormatError: com.sun.tools.javac.main.Main (erroneous method access flags)
    at JvClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.read_methods() (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.parse() (/usr/lib/libgcj.so.5.0.0)
    at JvDefineClass(java.lang.Class, byte[], int, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.defineClass(java.lang.ClassLoader, java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) (/usr/lib/libgcj.so.5.0.0)
    at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
    at JvFindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at JvBytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
    at JvVerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __libc_start_main (/lib/tls/libc-2.3.4.so)
    Please advise me to get rid of this one.
    -- Manoj
    Edited by: 856261 on May 4, 2011 12:55 AM

    I created custom VO and files in my local JDev and it is working properly.
    I wanna migrate it to actual instance.So my question is is it mandatory to compile custom java file in application server or i can use same which i used in my local machine(windows)?
    -- Manoj

  • Folding accelerators and pop-up menu for non-Java files?

    For Java files, 11g honors the expand/collapse accelerators and displays an expand/collapse menu when right-clicking in the gutter for the +/- folding handles. For other files (HTML, CSS, JavaScript, etc.), the folding handles are present, but neither the accelerators nor the menu are available. Is there a way to config JDev to make that work? Thanks.

    Thanks for reporting - I filed bug 7719290 for this

  • Associating .java files with JDeveloper in Windows

    Is there some mechanism via by which I can load a .java file in a currently instance of JDeveloper (905p) on Windows (2K) from the command line?
    I want to be able to associate .java files with JDeveloper with appropriate actions defined, so that when I double-click on a .java file in Windows Explorer, it gets opened up in the currently running JDeveloper instance ... rather than opening a new instance of JDeveloper?
    Thanks

    Hi,
    There's no easy way to do this at the moment. However, in the 10g production release, functionality has been added to associate .java files (and other artefacts e.g. .jpr files) with JDeveloper.
    Thanks,
    Brian
    JDev Team

Maybe you are looking for