• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Java application bundled within launch4j closes right after opening

 
Ranch Hand
Posts: 76
IntelliJ IDE Spring BSD
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I posted this here as it's not really a specific subsection of Java, but utilizes a few different techs, and it's IMO a bit more advanced for the beginner section.

I've created a java application, utilizing JavaFX, FXML, DigestUtils for the app itself, and using launch4j to convert it to an executable format. Now on my system it works as intended, a splash screen that I specified appears, then the app loads.

However, we tried this on a machine that doesnt' have admin rights set on it, and when the application is executed, the splash screen appears....and then thats it. When processes are viewed, the application process is closed after the splash screen disappears.

Is there anything that could prevent the application from opening that would require admin level privileges? To my knowledge nothing in my codebase needs anything admin level like network or file I/O access, and no errors appeared to assist in debugging (that I know of). The operating system that this application would be utilized for is Windows Xp and Windows 7.
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need to provide more information. First, don't try to make uneducated guesses as to the cause - it usually ends up running you down dead-end rabbit holes. That means don't consider the Admin rights as meaningful until there is something which points you that way. Just as likely, your application has some dependency which your computer has installed or available but which the target computer does not.

What you need to do is collect data. Launch the application from the command line. Does anything print to the command window when the application fails? If not, then you need to do more work. Add in a logging system, and log all your exceptions and a bunch of simple trace statements to the log files so you know where things get, what step fails, and where the error occurs. Once you know that then you can solve the problem, but until then all you can do is guess.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic