What's the Java equivalent of a .dll file?

If any?

Actually, DLL for Windows. Where as in java,
It's doesn't dynamically link.
It's some what like Reflection classes.

Similar Messages

  • What is the Java equivalent to Windows SystemMetrics?

    Hello,
    I would like to retrieve component metrics on items such as titlebar height, horizontal scrollbar height, default font etc.
    Unfortunately, I want to know the information without neccessarily having an instance of the control type visible (ie I want to know how high my forms titlebar will be before I create the form).
    The reason I need this is to feed information back to a third party product that requires the type of details that you could query from the SystemMetrics available in Windows.
    The tricky part is that the windows app needs to know these details before the Java app has created its first form.
    Any help would be much appreciated,
    thankyou, Sean.

    thankyou camickr,
    that link was very useful - please have the dukes.
    one thing that the link code doesn't give details about is how to find the metrics on the top level containers. Do you have any suggestions?

  • What is the java equivalent to #define

    Hi,
    What would this declaration be in java:
    #define     STRAIGHT_FLUSH     1
    Many thanks, Ron

    There is no direct equivalent. As mentioned, enums can be used to fill one of #define's roles. (enumerated values)
    public static final constant member variables can fulfill another. (named constants)
    And actually, if I understand correctly, #define is not part of the C language per se, but belongs in the realm of the preprocessor, and you can run Java code through a c preprocessor.
    EDIT: Yeah, you can:
    :; cat X.java
    #define blah int
    public class X {
      Y y;
      blah x;
    jeff@shiro:/tmp 14:33:34
    :; cpp -P !$
    cpp -P X.java
    public class X {
      Y y;
      int x;
    }Message was edited by:
    jverd

  • What is the Java equivalent of Visual BAsic ASC() and MID() functions

    Hello all! I just would like to ask if you have any idea on how to convert the VB ASC() and MID() functions into java. Where:
    1. ASC( ) Function - Returns the ANSI value for the leftmost character in a character expression.
    2. MID() Function - The Mid method extracts a substring of length nCount characters from a CHString string, starting at position nFirst (zero-based). The method returns a copy of the extracted substring.
    I would really appreciate your help. Thanx!

    ah yeah! sorry typo error. see, I am converting a VB method that encrypts password:
    Function EncryptText(ByVal stDecryptedText As String)
    Dim stText As String, lngCounter As Long
    Dim iTemp As Integer, lngNumber As Long
    lngCounter = 1
    lngNumber = 8
    Do Until lngCounter = Len(stDecryptedText) + 1
    iTemp = Asc(Mid(stDecryptedText, lngCounter, 1))
    If lngCounter Mod 2 = 0 Then
    iTemp = iTemp - lngNumber
    Else
    iTemp = iTemp + lngNumber
    End If
    iTemp = iTemp Xor (10 - lngNumber)
    stText = stText & Chr$(iTemp)
    lngCounter = lngCounter + 1
    Loop
    EncryptText = stText
    End Function
    I converted this function into this:
    public static String encryptPass(String password) {
    String encpwd = "";
    int iTemp = 0;
    final int lngNumber = 8;
    String stText = "";
    for ( int i = 0; i < password.length() ; i++ ) {
         iTemp = Character.getNumericValue(password.charAt(i));
         if ( i % 2 == 0 ) {
         iTemp = iTemp - lngNumber;
         } else {
         iTemp = iTemp + lngNumber;
         iTemp = iTemp ^ (10 - lngNumber);
         char c = Character.forDigit(iTemp,Character.MAX_RADIX);
         encpwd = encpwd + String.valueOf(c);
         return encpwd;
    But I'm having trouble with the encryption because it returns a different set of characters. Did I convert it right? thanx.

  • What is the Java equivalent to sapcpe

    After upgrading to ECC6 EHP5 I find none of my dialog servers have the updated jar files or bootstrap.properties file in the j2ee\cluster\bootstrap folder.
    How do jar files get copied from from server to another

    Hi,
    Please refer this link for more information on how sapcpe works.
    http://help.sap.com/saphelp_nwpi711/helpdata/en/27/44f17a26a74a8abfd202c4f5dc9a0f/content.htm
    Also refer this link
    http://al-infotech.com/news/2006/12/30/use-sapcpe-for-kernel-update-on-netweaver-2004-as-java-by-yu-nong-zhang-sap/
    I hope this clarifies.
    Regards,
    Naveen.

  • What is the Java Library Path?

    Hi,
    I have a Java package that I need to add to my computer. The instillation information that I received with this package is as follows:
    * For this package to function, you must modify your java library path
    (the "java.library.path" property) or you must copy <WInterface.dll> to
    a directory that is already on that path.
    My questions are
    1). What is the java.library.path?
    2). How do I determine what the path is for my computer,
    3). And finally how do I modify this path?
    Thanks for your assistance.

    1) It is the list of paths to search when loading libraries.
    2) That can be found out with this program:public class PrintLibraryPath {
        public static void main(String[] args) {
            System.out.println(System.getProperty("java.library.path"));
    }3) By giving the java launcher the command line argument "-Djava.library.path=yourpath".

  • What are the java components?

    hi iam new to this it field. this is the question asked by interviewer. so please help me.
    what are the java components you can use in a webproject? how you use those components in your project?

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/

  • What is the Oracle equivalent of the Microsoft Access FIRST function?

    Using: Oracle 10gR2 RAC on SUSE Linux 9 (10.2.0.3)
    In the process of converting a Microsoft Access database to Oracle, an Access query is using the FIRST function.
    What is the Oracle equivalent of the Microsoft Access FIRST function?
    In the attempt to convert, the Oracle FIRST_VALUE function was used. However, the same results was not achieved.
    Thanks,
    (BLL)
    Query:
    h2. ACCESS:
    SELECT
         TRE.GCUSNO,
         UCASE([DCUSNO]) AS DCUSNO_STD,
         *FIRST(UCASE([DNAME])) AS DNAME_STD*,
         *FIRST(UCASE([DADDR])) AS DADDR_STD*,
         *FIRST(UCASE([DCITY])) AS DCITY_STD*,
         TRE.DSTATE,
         FIRST(TRE.DZIP) AS DZIP,
         TRE.DREGN,
         TRE.DDIST,
         TRE.DSLSMN,
         TRE.DCHAIN,
         TRE.MARKET,
         TRE.MKTPGM,
         TRE.EUMKT
    FROM
         TRE
    GROUP BY
         TRE.GCUSNO,
         UCASE([DCUSNO]),
         TRE.DSTATE,
         TRE.DREGN,
         TRE.DDIST,
         TRE.DSLSMN,
         TRE.DCHAIN,
         TRE.MARKET,
         TRE.MKTPGM,
         TRE.EUMKT;
    h2. ORACLE:
    SELECT DISTINCT
    TRE.GCUSNO,
    UPPER(TRIM(TRE.DCUSNO)) AS DCUSNO_STD,
    UPPER(TRIM(TRE.DNAME)) AS DNAME_STD,
    UPPER(TRIM(TRE.DADDR)) AS DADDR_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DNAME)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DNAME_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DADDR)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DADDR_STD,
         FIRST_VALUE(UPPER(TRIM(TRE.DCITY)) IGNORE NULLS) OVER (ORDER BY TRE.GCUSNO) AS DCITY_STD,
    TRE.DSTATE,
    TRE.DZIP,
    FIRST_VALUE(UPPER(TRIM(TRE.DZIP)) IGNORE NULLS) OVER (ORDER BY TRE.DZIP ASC) AS DZIP,
    TRE.DREGN,
    TRE.DDIST,
    TRE.DSLSMN,
    TRE.DCHAIN,
    TRE.MARKET,
    TRE.MKTPGM,
    TRE.EUMKT
    FROM CRM.TREUP100R TRE
    GROUP BY
    TRE.GCUSNO,
    UPPER(TRIM(TRE.DCUSNO)),
    TRE.DNAME,
    TRE.DADDR,
    TRE.DCITY,
    TRE.DSTATE,
    TRE.DZIP,
    TRE.DREGN,
    TRE.DDIST,
    TRE.DSLSMN,
    TRE.DCHAIN,
    TRE.MARKET,
    TRE.MKTPGM,
    TRE.EUMKT;

    A slight correction to odie's post. I think you want min not max to replicate the Access first function, but see below to be sure. So:
    min(upper(trim(tre.dname))) keep (dense_rank first order by tre.gcusno) as dname_std
    user10860953 wrote:How does one ignore null values?The min and max functions will ignore nulls automatically, so if there is a null value in tre.dname, it will not be be returned, unless all of the values are null. For example:
    SQL> WITH t AS (
      2     SELECT 65 id, 'ABCD' col FROM dual UNION ALL
      3     SELECT 37, 'DEFG' FROM dual UNION ALL
      4     SELECT 65, 'DEFG' FROM dual UNION ALL
      5     SELECT 65, null FROM dual UNION ALL
      6     SELECT 70, null FROM dual UNION ALL
      7     SELECT 70, null FROM dual UNION ALL
      8     SELECT 37, 'ABC' from dual)
      9  SELECT id,
    10         MIN(col) keep (DENSE_RANK FIRST ORDER BY id) min_dname_std,
    11         MAX(col) keep (DENSE_RANK FIRST ORDER BY id) max_dname_std
    12  FROM t
    13  GROUP BY id;
            ID MIN_ MAX_
            37 ABC  DEFG
            65 ABCD DEFG
            70John

  • What is the mac equivalent to adobe acrobat?

    what is the mac equivalent to adobe acrobat?

    Adobe Acrobat. http://www.adobe.com/products/acrobatpro/tech-specs.html
    Stedman

  • OT: What's the Mac equivalent of Microsoft Paint?

    What's the Mac equivalent of Microsoft Paint?
    It used to be MacPaint, but isn't that long gone?
    Is it iLife? If so, in the specs I don't see any mention of
    basic paint functions although maybe it has them.
    Obviously I don't have a current Mac or I'd know the answer
    to this.
    Thanks.

    http://en.wikipedia.org/wiki/MacPaint
    http://en.wikipedia.org/wiki/QuickDraw
    http://www.pixelpoppin.com/dorena/
    http://sarwat.net/painting/

  • What is the mac equivalent to a right clic on a windows machine

    What is the Mac equivalent to a right click?  I installed Office for Mac 2011 on my macbook pro and I need to right click over a file from an ealier version of Office to make Office 2011 the default version of office.  This is all in preparation to install Lion (Lion won't support Office 2004 and I can't afford to lose access to these files).

    CTRL+click
    CTRL=control (in between the fn and alt/option keys).
    You can also go into System Preferences --> Trackpad and ensure "Secondary Click" is checked so that a two finger tap will act as a "right-click."

  • I'm on a  Mac and I need to know how to go one step back in Lightroom 5.   In other words, what is the Lightroom equivalent of Command Z in Photoshop?

    I'm on a  Mac and I need to know how to go one step back in Lightroom 5.   In other words, what is the Lightroom equivalent of Command Z in Photoshop?

    Command Z works for me on Lightroom - always has.
    Edit>Undo is the Menu command

  • What is the WinRT equivalent of MediaPlayerLauncher

    WP8 has MediaPlayerLauncher, so what is the WinRT equivalent of MediaPlayerLauncher for WP8.1?
    Hong

    Thanks, Rob. That is what I was looking for. This is a universal apps project. I tested this with the Windows version and it launched the default video player as expected.
    Hong

  • What is the Mac equivalent of the command "ctrl shift  I"  for a PC

    HI
    what is the Mac equivalent of the command "ctrl+shift + I"  for a PC to get to the cookies and delete them

    It varies depending on which browser you're using. In Safari, choose Preferences from the Safari menu, click on the Privacy tab, and then on Details.
    (101212)

  • HT2486 What is the Apple equivalent of an address label L7160 ? (21 PER SHEET)

    What is the Apple equivalent of an address label sheet L7160 (21 PER SHEET) ?

    Many thanks for your reply but my problem is that I have sheets of labels already  ........... however on the Apple address Book there seems to be no equivalent of a 3 column x 7rows sheet.
    Any ideas?
    Alan

Maybe you are looking for