Jump to content
Excelsior Forums

mavr

Members
  • Content count

    0
  • Joined

  • Last visited

    Never

Everything posted by mavr

  1. get handle of a window

    Creating a windows is very complex task, and it is impossible to do it with xFunction. The possible (but still complex) way is to find a handle of AWT window of the Java application. For example, ome may search for a window with a specified title (FindWindow(NULL, title)), or enumerate all windows in the system (EnumWindows). Please refer to MSDN library for details of using these functions.
  2. More examples?

    No, only the samples located in 'samples' folder. And they are intended to illustrate xFunction API, not Windows API
  3. I think no. Have no idea how to export 'new' and class constructor from DLL.
  4. JET 3.6, SWT and AWT

    Then probably XAWT component is used from somewhere else. To find the exact class that imports this DLL, you may look for its name in the body of .obj files (an easy task with FAR ). You may contact us at java@excelsior-usa.com for further help. The only way to manage adding of required DLLs is modification of the compilation set. In case if some small part of XAWT is really needed, while the rest is useless, it is recommended to use PERFECT compilation mode (although it is much harder and error-prone)
  5. JET 3.6, SWT and AWT

    As far as I can remember, there is something like SWT-AWT bridge classes, that should be removed from the compilation set. Please refer to the article HOWTO: Compile and deploy an SWT-based Java application for details.
  6. Hmm, that's strange. Is the 'working directory' in trial run properties the same?
  7. Need help, at my wits end on this

    DLLs are not resources, so they can not be jared and bound to the executable. You have 2 options how to force your executable to find these DLLs 1) As you have done, copy the DLLs to the application directory 2) Leave them in any directory and add that directory to %PATH% variable - either in run.bat file or globally to the system during the installation (using custom callback DLLs in case of Excelsior Installer).
  8. The error means that some of JMF DLLs are not found. Probably in normal runs these DLLs are found via PATH environment variable. As trial run mimics the behaviour on the target machine where JMF may be not installed, the PATH for it is empty. So, you have to copy the used DLLs from <jmf>/lib to the folder where the executable is located.
  9. JRE-less operation mode is available only for Java 1.3 and 1.4, but not 1.5.
  10. Runtime Loading And Resources

    Binding resources to such DLLs won't work (all bound resources are listed during the runtime initialization). As I said before, please bind all resources to the executable.
  11. Runtime Loading And Resources

    The resources should be bound to the executable, not to DLL. BTW, what do you mean by "runtime loaded dll's"? Do you use class-to-dll mapping or what?
  12. error in apply mp2 patch !!

    We had another similar report some time before, but the reason of the problem is not found yet. At this time you should use the workaround described below. The MP2 is already installed after the first error message (but not applied). To apply it, one should directly use jetsetup program. Due to the error, additional option -ignore-jetini should be used with jetsetup. 1) Execute "jetsetup -ignore-jetini -show-profiles" 2) Choose one of displayed profiles (let it be profile 0) and run "jetsetup -ignore-jetini -repair-profile 0" 3) If there is no installed profiles yet, or you wish to create a new one, use command "jetsetup -ignore-jetini -jre /usr/java/j2sdk1.5.0_03"
  13. How can I pass 6 Arguments in xFuntion ?

    Pass them in an array of Arguments.
  14. Things will change in forthcoming JET 4.0. Stay tuned! Subscribe to announcements
  15. Due to the Sun license, partial redistribution of JRE is prohibited
  16. java Obfuscator

    Unfortunately, for application servers the situation differ. The server and applications still can be compiled with JET (see this Knowledge Base article, but the applications classes (.war etc.) still have to be deployed, because custom clasloaders are used. So, there is no protection of applications classes in this case. You may consider moving your applications to 'shared' part of the server, in this case it is safe to remove the classes from the deployment package.
  17. java Obfuscator

    http://www.excelsior-usa.com/jetprotection.html
  18. For the original problem (charles) the advice is simple - never ignore Trial Run in JetPackII. The trial run includes all JET RT components required by the application automatically. The 2nd problem (bh) is not related to the original one. The syntax of the project files is described in JET User's Guide. But, I cannot understand why not use GUI tools?
  19. You have to use 3rd-party installers that provide this functionality (if any). Or you can create "CD-Image" package and just copy it to your users.
  20. Duplicated message, please remove.
  21. INVALID_ACCESS_VIOLATION

    The second argument to GetUserName function should be not a size, but a pointer to variable which holds size. BTW, there is no need in complex StringBuffer creation in your code. Use CompName = new Argument("", Argument.CSTRING, 1024); instead.
  22. The external name of the function exported from DLL depends on the Delphi compiler. Open this DLL in notepad and look for the strings that contain 'sayhello'. Probably, the external name of the function would look like "_sayhello@4".
  23. Version Shareware

    The total size of arguments rounded up to 4 should not be equal 12. I.e., 3 4-byte arguments (char, short, int, etc.), or 1 8-byte (e.g. double) and 1 4-byte are prohibited. Of course, there is no such restrictions in the commercial version.
  24. Selecting Jet Profile at Compile Time

    No, it is impossible. However, jetsetup has batch mode, so you can switch profiles from scripts. To use the batch mode, please do the following (from console): 1) Go to jet/bin folder and execute the command "gui - jetsetup.exe" 2) Run "jetsetup -batch -show-profiles", remember the numbers of requied profiles. 3) Then, you may switch between the profiles by executing "jetsetup -batch -activate-profile <num>", where <num> is the number of the required profile, e.g. "jetsetup -batch -activate-profile 2" You need to perform steps 1 and 2 only one time. Then, you may do step 3 from the scripts of your build server as many times as required.
  25. Call DDL vom Excel VB

    To invoke Java DLLs from other languages you should use Invocation API. See the samples in samples\Invocation\COM for details
×