JavaDoc HTML link of  classes in Java class diagram not correct

Hi,
I created a Java class diagram in a certain package (e.g. com.mycompany.p1) and placed some classes on this diagram from the same package and from other packages. Then I created JavaDocs. When I click on the classes in the created JavaDoc diagram, only the links of the classes in the same package as the diagram (com.mycompany.p1) wor correctly. When I click on a class outside this package I get an error message that the file is not found. It looks for the class documentation in the package of the diagram and this is obviousely wrong!
Is there a property I missed to set or is it a bug?
Thanks for help
Thomas

Hi Thomas,
I don't use the diagrammers much, so I cannot comment on this directly; however, based on your description, it does sound like a defect. Do you have access to Oracle Support to file an SR?
John

Similar Messages

  • Audit and Standard Javadoc applied to all Jdeveloper project java classes

    Hi,
    I want to apply standard Javadoc to all the java classes I have written. Is there a quick way of doing it in 11.1.1.3
    I have already done the following but the code editor rules are not getting enforced.
    1) Go to 'Tools' and then choose 'Preferences
    2) Go to the 'Code Editor' and under it 'Java' and then 'Javadoc'
    3) Select all the tags like @author @version @param etc and modify the Tag properties to be required and then click OK
    4) Next I create a new Java class but the code editor rules are not enforced.
    Questions:
    a) How to enforce the code editor preferences?
    b) How to automatically generate the missing javadocs in the existing classes in Jdeveloper?
    c) How to audit and setup a coding standard, so that it's easier to monitor what everybody in the project does and adheres to the coding guidelines.
    Bottomline - Are these possible in JDeveloper 11.1.1.3
    Thanks

    Have a look at the JDeveloper code audit feature.
    Under tools->preferences->audit->profiles
    You can either modify or add a new profile and check the JavaDoc Comments rules.
    You can switch the Missing Comment rule to have a more serious severity.
    Then you can audit your file (or the complete project).
    In the audit window you'll see an option to automatically fix error that the Audit flagged - this can include adding the missing Javadoc.

  • Is it possible to have an html link in a pure java application ???

    can you put click me in a java component, say, a dialog?
    i tried and the link appeared blue and underlined but it didn't respond to clicks (nothing happened when clicked).
    thanks.

    You could use a JEditorPane. It supports HTML 3.2. There you have to register a HyperlinkListener. I think you have to set the editable property to false, too.
    -Puce

  • Mapping Generated JAXB Classes to JAVA Classes

    Hi,
    i�m writing a framework to allow building swing components from xml files. So i use JAXB to generate the stubs and then in
    my JAVA app i do an unmarshal process to get the jaxb elements. Then i process all the elements in the jaxb tree and
    i create the corresponding swing components (i.e. JPanel, GridLayout, JButton, JTextField, etc). This is very annoying,
    since each component has different properties and this leads to many if statements which just make my code messy
    and not reusable.
    Could someone give me an advice of how i could make this solution more elegant?
    Thanks for any ideas,
    Chris

    Hi,
    Can you please let me know if you found a solution? I have the same exact problem. I have pretty solid collection of similar questions in the NET, but not a single answer yet... Keep searching...
    Thanks!
    Rouben.
    P.S can you please CC your answer to [email protected]?

  • Tool for Reversing (.class to .java classes)

    Can somebody tell me about an open soft tool for reverting code.
    Thanks.
    FS

    java decompiler. Try google. There are dozens of them.

  • HTML links from Full Check Accessibility report do not open the corresponding PDF links

    I regularly generate full Check accessibility reports for the PDF user guides I create in MSWord. However, when I click the links in the HTML file/report generated, they are supposed to link/highlight the corresponding errors in the PDf file. Instead, I get an error message that "There was an error opening this document. Bad parameters."
    How can I get the links to work so I know which section in my PDF has the error (inaccessible items).
    Thanks

    I understand you are creating HTML reports and then using them to find errors/view the PDFs. 
    Is this a new problem or  have you always had problems with the links?  If it's a new problem, what has changed on your system?
    Can you view other PDFs in your browser? 
    Have you moved any of the files since you created the report -- as you may know the HTML report references a specific lcoation on your hard drive and if you moved the PDF after creating the report, it may not be able to find the file.

  • Javadoc --giving link to other classes

    Hi.
    I am trying to generate javadoc for my application..But When I see the docs.It doesnt have the links for String and other used classes.
    What should I do to give the links
    Thanks in advance,
    A.
    Umar

    Use the -link or -linkoffline option:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/solaris/javadoc.html#link
    For example:
    javadoc -link http://java.sun.com/j2se/1.4/docs/api com.mypackage
    -Doug Kramer
    Javadoc team

  • NetBean - java class add to JFrame form?

    i have already type my own class using 'java class type' . The problem is, now i wanted to add a new class using the GUI in netbeans, so i create a JFrame using GUI in netbean, how do i connect the 'java class type' with the 'JFrame Form type' in netbean?
    I'll be able to call a frame to another frame if i using both JFrame form type. The problem came in when i try to link the java class i just mention above. Please help.

    karhong,
    Sorry mate, your question is impossible to interpret. Try asking your question again in different words... and include your code, and error any message(s)...
    ... and read the Formatting tips before you post.
    ... and this is a Java coding forum... so you might have better luck posting this one on a netbeans specific forum like JGuru's Netbeans Forum.

  • Is there any method which reflects the names of classes of java?

    is there any method with which dynamically we can get all the packages's name along with their classes of java(specially core classes of java)?if not how can we do that?

    The resource from which the Java VM loads the classes is considered to be implementation dependent. It may be class files or jar files contained in a file system hierarchy, or some kind of remote database. The now defunct Microsoft VM used a database repository that was able to reside on a remote class server within a network domain.
    Unfortunately, Sun did not design a class resource service interface with a "list resources" function, only a "get resource" function. You can get the class resource for any named class, but you cannot list packages or classes within a package or at the root level.
    This is further complicated by the fact that there is no such thing as an "installed package" as Java does not define any package installation system. The packages available to any runtime instance of the JVM is defined by the classpath properties passed from the OS. Different JVM instances can have completely different sets of available packages because they were passed different classpath values by the OS.
    If you know the class resource of the runtime environment, then you could create a subclass of the sun.misc.URLClassPath class and add to it methods that will list packages and classes found within a package using the interface of that known class resource.
    Most runtime environments use a standard hierarchical file system to hold jar and class files. A subclass of sun.misc.URLClassPath could use the java.io.File class to traverse the file system classpath paths in search of package directories and class files (Watch out for recursive directory links).
    The root packages can be obtained from the three levels of classpath paths in the System properties used by the JVM:     "sun.boot.class.path"
         "java.ext.dirs"
         "java.class.path"The collection of file system paths obtained from these properties would be searched for the names of the root level package directory names. Just remember that this will only work in a runtime environment that only uses this kind of class resource. If you run this where some other resource is also used, you will not see all of the packages available to that JVM.
    One note of caution: A single directory can hold package directories, jar files, and class files that belong to a specific package, but the package may include other package directories, jar files, and class files that are contained in other directories. Pieces of a single package may be strewn throughout the file system. The only way to find them all is to scan all of the classpath paths for that same package name. The directory does not define the package, it only provides more content for that package.
    I hope you find this of some use.

  • How can I either move or view the source of a JAVA CLASS user object?

    I am using Oracle 8i and I have the following JAVA CLASS objects in my database. I need to move some of these objects to a different database.
    1) How can I do this?
    2) How can I view the JAVA source code since these are classes?
    My knowledge of Oracle is limited. I have searched and searched and I can't find the answer. Any help would be greatly appreciated
    SELECT object_name, object_type
    FROM user_objects
    WHERE object_type IN ('JAVA SOURCE', 'JAVA CLASS', 'JAVA RESOURCE')
    ORDER BY object_type, object_name;
    OBJECT_NAME OBJECT_TYPE
    /d082321a_DpsJarStaticFilename JAVA CLASS
    DirHelperStatic JAVA CLASS
    DirHelperStatic$1 JAVA CLASS
    DpsJar JAVA CLASS
    DpsJarException JAVA CLASS
    DpsJarStatic JAVA CLASS
    FilenameFilterImpl JAVA CLASS
    FtpClient JAVA CLASS
    FtpClient$InputStreamProxy JAVA CLASS
    FtpClient$OutputStreamProxy JAVA CLASS
    FtpClientStatic JAVA CLASS
    FtpException JAVA CLASS
    FtpReply JAVA CLASS
    FtpTest JAVA CLASS
    LoadXml JAVA CLASS
    LoadXmlStatic JAVA CLASS
    UrlFileUtils JAVA CLASS
    Utils JAVA CLASS
    dir JAVA CLASS
    Thanks,
    Brian

    The source far java class objects that are not derived from java source objects
    (which is the case here, and is typically the case, such as when one loads
    classes into the database using loadjava on a jar that contains only .class
    files) does not exist in the database (just as it does not exist in a jar which
    contains only .class files). So there is essentially no way to view the source, short of extracting the bytecodes and using some decompiling tool. I don't recall what methodologies exist for extracting bytecodes in 8i. As for transferring
    the classes to another database, the standard Oracle import/export tool can do this.

  • Java Mapping Error - Unable to instantiate the Java class

    Hi,
    I am trying out a Java Mapping scenario.
    The code worked fine in eclipse.i could get the desired output.
    but when i tried it out in XI ....i got the following error in moni:
    *Unable to instantiate the Java class*
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">CANNOT_INSTANCIATE_CLASS</SAP:Code>
      <SAP:P1>JavaMapping</SAP:P1>
      <SAP:P2>http://www.sdsdsd.com/XI/Sales/T~</SAP:P2>
      <SAP:P3>3bd13b30-6300-11dc-b9f1-f0050aa5c91a</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to instantiate the Java class JavaMapping (http://www.sdsdsd.com/XI/Sales/T~, 3bd13b30-6300-11dc-b9f1-f0050aa5c91a, -1)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please help me out with this error.

    Hi Anu,
    Currently I am also facing the same Unable to instantiate the Java class  same java class is working fine in eclipse .
    Could you please confirm Is this because of version mismatch that in Eclipse JAVA and SAP JAVA ?
    Thanks in Advance.
    Best,
    Srinivas

  • Call Bean from normal java class

    Dear Friends,
    Is it ok to call an entity bean or session bean frm normal Java class.
    (Java class is in the same application as the beans).
    Is there a special way to lookup the beans from normal java classes.
    Thanking You,
    Chamal.

    it is ok and very commonly done.
    Note that the simple java program must be running in the same local network. You cannot have the java program and EJBs distributed over internet. (I m not certain of it, but mostly I shoudl be correct. If you have the resources, try it out and let me know)
    In most of the cases, EJBs are called by
    1. A servlet
    2. Another EJB
    3. a simple java program.
    In the first 2 cases, you can go for Local Interfaces (more so in the second case than the first). The reason being that the the client and server will be in the same JVM (typically the Application server). Thus, in the first case, if the Web container and the ejb container are in the same app server, EJBs can be local.
    However, in the third case, it is unlikey that you will have the client runnng and the same jvm as the server, because the app server has its own jvm.
    sample code (this method is being called from the main method of a simple java program. it is self explanatory):
    public  void processRequestForSessionBean()
             System.out.println("REQUEST RECEIVED");
             try
                   Hashtable nameHashtable = new Hashtable();
                   nameHashtable.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
                   nameHashtable.put( Context.PROVIDER_URL, "t3://localhost:7001" );
                   InitialContext context = new InitialContext(nameHashtable);
                   System.out.println("created initial context");
                   Object lookupObject = context.lookup("CustomerBean");
                   System.out.println("Got the lookup object");
                   CustomerDataHome home = (CustomerDataHome) PortableRemoteObject.narrow(lookupObject,
                             Class.forName("com.shiv.business.CustomerDataHome"));
                   System.out.println("Home interface");
                   customerData = home.create();
                   System.out.println("Remote Interface");
                   addDataToSB(customerData);
                   ArrayList namesList = customerData.getNames();
                   System.out.println(namesList.toString());
                   //customerData.remove();             
              catch (Exception exception)
                   System.out.println("FATAL ERRORS");
                   exception.printStackTrace();
              }

  • LOADJAVA이용시 JAVA CLASS OBJECT의 권한 문제

    제품 : SQL*NET
    작성날짜 : 2004-01-14
    LOADJAVA이용시 JAVA CLASS OBJECT의 권한 문제
    ====================================
    PURPOSE
    Java Stored Procedure를 이용하기 위해 java class를 DB로 load할 때 loadjava를
    이용할 수 있다. 이때 loadjava 수행시 권한 오류나, java stored procedure(JSP)의
    owner와 다른 owner로 java class를 load하고 JSP에서 사용하는 경우의 권한
    부여 방법 등을 확인해 본다.
    Explanation & Example
    1. loadjava와 dropjava의 간단한 실행 방법 및 관계된 objects들
    loadjava command는 가장 간단하게 다음과 같이 지정할 수 있다.
    -r option은 db에 load하고서 load된 java object를 compile하는 것이다.
    os> loadjava -user scott/tiger -r LJTeset.class
    이 문장을 수행하고 나면 다음과 같은 object가 생성된다.
    즉, load되는 java class외에도 2개의 테이블과 2개의 index, 그리고 한개의
    table이 생성된다.
    loadjava를 수행하는 user는 이러한 object를 생성할 수 있는 권한이 있어야한다.
    SQL> select object_name, object_type from user_objects;
    OBJECT_NAME OBJECT_TYPE
    CREATE$JAVA$LOB$TABLE TABLE
    LJTest JAVA CLASS
    JAVA$CLASS$MD5$TABLE TABLE
    SYS_C002172 INDEX
    SYS_C002173 INDEX
    SYS_LOB0000029869C00002$$ LOB
    loadjava후, 다시 dropjava문장을 다음과 같이 수행하는 경우, 이렇게 생성된
    6개의 object가 모두 사라지는 것이 아니고 LJTest만 지워지고 나머지는
    모두 그래도 남는다.
    os>dropjava -user scott/tiger LJTest.class
    즉, 일단 한번 loadjava를 수행하면 위에서 LJTest를 제외한 나머지 object는
    항상 존재하게 된다.
    2. loadjava시 다른 user가 java class이용할 수 있도록 하는 방법
    loadjava시 load된 java class를 이용하여 JSP를 생성한 owner에게 다음과 같은
    방법으로 권한을 부여할 수 있다.
    os>loadjava -user scott/tiger -g public -s -r LJTest.class
    os>loadjava -user scott/tiger -g eykim -s -r LJTest.class
    이때 -g option이 권한을 부여하기 위한 option이며, -s를 지정하면 동일한
    이름의 public synonym이 만들어져서 이 java class를 다른 schema에서도
    이용가능하게 된다.
    (NOTE) 이때, named PL/SQL에서 role을 통해 부여 받은 권한은 인식하지
    못하는 제약사항이 loadjava시에도 그대로 적용된다.
    즉, -g다음에 role명을 주는 경우 그 role을 가지고 있는 다른 user가
    해당 java class를 이용하여 JSP를 만드는 경우 해당 java class를
    인식하지 못하게 된다.
    loadjava외에 직접적으로 SQL문장을 통해 권한을 부여하여도 된다.
    SQL>grant execute on "LJTest" to scott;
    여기서 주의할 점은 반드시 LJTest java class를 지정할 때 큰 따옴표(" ")를
    표시하여야만 인식이 된다.
    이것은 grant뿐 아니고 sql문장에서 java class를 reference할 때 항상 적용된다.
    예를 들어 resolve시에 다음과 같이 하여야 한다.
    SQL>alter java class "DBTrigger" resolve;
    위의 loadjava 문장에서 -s option을 통해 public synonym을 생성하였는데,
    이것은 sql문장을 통해 synonym을 생성하여도 같은 결과이다.
    이때, user는 create public synonym권한을 가지고 있어야 한다.
    이후 dropjava 수행이 필요한 경우, dropjava시 -s option없이 public synonym도
    함께 drop되므로 drop public synonym도 필요하다.
    Reference Documents
    <Note:106753.1> ORA-29521 in Java Stored Procedure referencing Loaded Javax Classes
    Java Stored Procedures Developer's Guide Release 2 (8.1.6)", (A81358-01)

  • Open a JspDynPage from a html link

    I would like to link a jps to the JspDynPage. I think that it would be able to do it through the "pcd". For example:
    - I have the SAP customer login screen (original) and i want to add a "link" (Forgotten PIN) to link with the JspDynPage (Java controller).
    Is it possible to do it? Does anyone know how? Do i go in right way?
    Thanks in advance.

    The code was lightsout.class, not #.class...
    I just want an HTML link to open a JAVA JFrame. Would a button work instead of an HTML link? Here's the beginning/initialization of my JFrame:
    public lightsout() {
              frame = new JFrame("LightsOut");
              frame.setSize(new Dimension(700, 700));
              frame.setTitle("Lights Out!");
              frame.setLocation(50, 50);
              frame.setResizable(false);
              japplet.setFocusable(false);
              frame.setAlwaysOnTop(true);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              int height = screenSize.height;
              int width = screenSize.width;
              frame.setLocationRelativeTo(null);
              frame.setLayout(new BorderLayout());
              centerPanel = new JPanel(new GridLayout(5, 5));

  • Html link to a servlet

    Hello,
    I am new to Java Servlet programming and I need some help with calling a servlet via a HTML link.
    I have a class which generates a html page:
    package HccMembers;
    public class HccMemberServlet
    public StringBuffer buffer;
    public HccMemberServlet(String sHccId, String sHcId)
    buffer = new StringBuffer(4096);
    this.buffer.append("<HTML>\n ");
    this.buffer.append("<HEAD>\n ");
    this.buffer.append("<TITLE>Members</TITLE>\n");
    this.buffer.append("</HEAD> \n");
    this.buffer.append("<BODY> \n");
    this.buffer.append("<p><ahref='http://localhost:8080/transport/HccMembers/servlet/JCSJobOrderServlet'>New Job Order</a></p>");
    this.buffer.append("</BODY></HTML>");
    Basically, when the user clicks the link a servlet should be invoked. (Below)
    package HccMembers;
    //import java Servlet classes
    import javax.servlet.*;
    import javax.servlet.http.*;
    //import java classes
    import java.io.IOException;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    public class JCSJobOrderServlet extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    System.out.println("hello");
    public void service(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    System.out.println("Hey");           
    The problem is that, when I click the link I get a 404 page not found error. Any ideas?
    I really appreciate any help.

    You need to add couples of lines to the configuration file of your application (web.xml) : first you must say that the class CSJobOrderServlet is a servlet that you want to use, second you must map the servlet to a specific url, then you can use this url whenever you like.
    As an advice, don't use absolute URLs on your application, use only URLs relative to your application root.
    Example for web.xml:
        <servlet>
            <servlet-name> MyFirstServlet</servlet-name>
            <servlet-class>JCSJobOrderServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>MyFirstServlet</servlet-name>
            <url-pattern>/custom_url</url-pattern>
        </servlet-mapping>Now, about the servlet implementation: if you are using System.out.println("Hey") you will see the message on the standard output of the server, and not on the browser as you expected.
    here is a small example:
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response)
          throws IOException, ServletException {
            response.setContentType("text/html");
            PrintWriter writer = response.getWriter();
            writer.println("<html>");
            writer.println("<head><title>Hello response</title></head>");
            writer.println("<body>Hello !</body></html>");
       }For more information see the documentation for servlets and / or a book.
    Iulian

Maybe you are looking for