Jump to content
Excelsior Forums


  • Content count

  • Joined

  • Last visited

Everything posted by Xray

  1. I have an application that can run as a typical desktop application or as service. Today I have to create 2 executables (1 for the service and 1 for the service). I understand that in Jet 7.0 I can create a single executable that can run as either. I tried to follow the directions from the on how to do this but when I went to Jet Pack I could not see that it detected the the mult-app capability of my executable. Is there a step missing after step 4 below? Should I merely create another project or make another project and then compile again? Has anyone had success with this and possibly know of a missing step? The following was taken from the Jet 7.0 documentation Windows services You may build a multi-app executable runnable as both plain application and Windows service. The recommended procedure is as follows: 1. create a new project as Plain Java SE application (see Starting Excelsior JET Control Panel) 2. compile the application with the multi-app executable option enabled 3. convert the type of the project to Windows service by selecting the Project/Convert to... item of the main menu. 4. make the necessary settings for Windows service as described in Chapter Windows services. Actually, you may first create the Windows service project and then convert it to Plain Java SE application in the same manner. However
  2. Hello, We have a Windows Service that we have built and deployed using Excelsior Jet 6.5. It is working great for the most part, but we have an issue reported that the service does not come up automatically after a system reboot (even though it is configured to do so). However, an administrator can start the service up manually without any problem and it continues to run fine until the next time the system is rebooted. I asked the user to check the system event log and the following errors were reported: "Timeout (30000 milliseconds) waiting for the My Service to connect." and also: "The My Service service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion." The interesting thing is that my init() method in WinService subclass does not do anything, so it should not be any a timeout issue from this code. We were also thinking that perhaps this service had an unknown dependency. The service is long running and will open up a TCP server socket and export a couple of RMI objects. However, this is all initiated from the run() method. I also added some log output to see if I could trace where it might be getting hung up, but it appears not to even get to my code because the log file does not even get created (using Log4J). Finally, this issue is not effecting most customers. As I am not familiar with the internals of Windows Services, I was just curious if anyone else had this issue or could provide some insight. Many thanks, Ned
  3. I should mention that the host system which is having this issue is Windows XP
  4. Hello, I have successfully used Jet to build and deploy as Windows service. One minor issue I have is that the service does not automatically after installation. Instead, you have to go to the Services applet to start it up. I believe I can get around this by one of the following two methods: 1) Force the user to restart Windows after installation 2) Create an After-Runnable that will execute the net start MyService command However, I just wanted to check to see if anyone knew of a better way before I wrote any code or force a reboot (which would be otherwise unnecessary). Thanks, Ned
  5. Xray

    Console Output

    That's a good idea- I'll investigate this. Ned
  6. Xray

    Console Output

    Hello, I have an application that is compiled with JET that can run in both a GUI mode and a command line mode from the same main class. If the application is invoked with no command line arguments, then the GUI is launched. Otherwise, the specified command line arguments run the application in the command shell. The command line mode uses the standard output console to communicate status to the user (e.g. using System.out.println). My problem is that if I select Hide Console in the Jet Control Panel, this command line output is suppressed and not shown to the user. On the other hand, if don't check Hide Console, then users complain the command line window that also launches along with the GUI. My workaround for now is to create two executables: MyApp.exe and MyAppWindow.exe. MyApp.exe will not check Hide Console and MyAppWindow.exe will. This workaround does the trick, but it somewhat inconvenient because there are now two Jet projects to manage and it increase the size of the installation package. Is there any better way to solve this? Thanks in advance. Ned
  7. Xray

    Compatibility with JDK 1.6

    We too will soon require JDK 1.6 compatability. Since we are drawing nearer to the middle of 07 is there an updated release date for this feature?
  8. I am new so excuse the naivety of this question..... I wrote a class in Java and built a DLL from it using JET I want to use this DLL from other languages but also from Java. When I try to use my new DLL I get the usual "java.lang.UnsatisfiedLinkError". I reviewd the examples in /samples/invocation and understand them (I believe) But there were no examples of how to call the DLL from a java application. Any help here would be greatly appreciated. my java which was used to make the dll looks like: public class MyDLL { public static String getId(String aParam) { return aParam; } } my java which calls the dll is: public class TestDLL { public native static String getId(String aParam); public static void main(String[] args) { String lib = "C:/bin/MyDll.dll"; System.load(lib); System.out.println("done loading library"); getId("XXXX"); } }