I have developed an application in javafx. It works very well on my laptop even when I deploy it and run on my computer, but when I install it on another pc the application starts normally, but does not display any interface (the task bar it is present). When I run the .jar with java -jar monapp.jar command I have an error in console
error shown in the console
Please help.
Related
I have a maven/java project i am trying to make a windows service. I have a .exe which is used to distribute the program, and now I need to make it a windows service.
The executable works fine by itself and shows the GUI.
I have ran everything in elevated cmd & powershell terminals.
When i install the service: NSSM_TEST: INSTALL: The operation completed successfully.
When i start the service: NSSM_TEST: START: The operation completed successfully.
When i run status: nssm.exe status NSSM_TEST SERVICE_RUNNING
The program also shows up under the running processes, but shows no gui or system tray symbol (which is implemented through java).
Parameters in mssn GUI:
Application path: C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\bin\dynagrow.exe
Startup Directory: C:\Users\skakk\sweat-tek\DynaGrow\DynaGrow-app\target\dynagrow\bin
No arguments.
Log on config:
Any help would be very much appreciated.
I am trying to run the xtend Server (ServerLaucher.xtend) as a Java Application. It works if I execute it in eclipse. If I open the Run Configuration, click on Show Command Line, copy the code from it (which looks like this one)
/usr/lib/jvm/java-8-openjdk-amd64/bin/java
...
mydsl.web.ServerLauncher
and run it in a normal terminal, the server starts as normal and says that it is available under localhost:8080. The problem, however, is that, in contrast to running it in Eclipse, the website doesn't work and I got the error website:
HTTP ERROR 503
Problem accessing /. Reason:
Service Unavailable
Powered by Jetty://...
I got stuck in the steps to deploy the play-java application to standalone server. I am using Ubuntu instance running onEc2 machine. After reading the official documentation I followed these steps:
Install typesafe activator to $Home/activator
Copy my project folder to $Home/activator/projects using Jenkins
Run cd $Home/activator/projects/project
Run dist command. It generate the project sh file
Run cd $HOME/activator/projects/sample/target/universal. It shows me three things i.e. sample-1.0.zip , tmp.
Run unzip sample-1.0.zip
Run cd $Home/activator/sample/target/universal/sample-1.0/bin. It shows me two scripts i.e. sample (for mac and linux) and smaple.bat (for windows).
Now, I tried to run this command as documentation says: sample-1.0/bin/sample -Dplay.crypto.secret="abcdefghijk" but it got stuck and shows nothing except a prompt on terminal.
What next steps are required to run the application in daemon mode. So that server will continue to run always?
Another question is why do I need to follow these steps because just after copying the project I can easily run activator run command to sample folder to run the server.
EDIT-1
Now I am getting Error: Could not find or load main class play.core.server.ProdServerStart while running sample -Dplay.crypto.secret="abcdefghijk" command
Play Framework modes
Play like other frameworks can run in different modes because we are usually like to run our program in different situation and these situations need their configuration. Production is one of play modes. In this mode as the name suggested we are ready to deploy our application where user can use.As a result requirements are different.
Some common configuration in Production mode :
We are confining https
Using production data base not testing one
Play doesn't show errors
Play framework run as long term process and if you are log out of your server your application will run
If your app fails Play will clone another application and run that so your app run forever except you turn it off.
and so on (it is based on your Production config file)
Your answer :
If you just want to test your app in remote server and see what happened, it's okay to use activator run this command runes Play app in development mode and application will killed if you exit or log off (error will shows up and so on). But if you want to use your app for Production it is necessary to run all of these steps.
I recently developed a runnable jar file (JDK 1.8.31).
Then I used launch4j to convert it into an exe file and at last I used nssm to register the exe as service.
Both the jar and the exe executed well.
I set an administrator mode for the exe file before registering it as a service.
Also, in the properties of the service I set the "Log On As" to .\administrator
But, when I tried to start the service from the Services Window I got the following error message:
"Could not start the --service name-- on Local Computer. The service
did not return an error. This could be an internal Windows error or an
internal service error. If the problem persists, contact your system
administrator"
How can I understand what is wrong?
Thank you.
I have a swing application which works fine as the desktop application but the same application when started using a jnlp, not starting without showing any errors
I have compiled using the classes using Java7 and created a jar and then after creating a jnlp file, started with javaws command as
javaws d:\jnlp1\val.jnlp
Then "Java 7" logo appears showing that the jnlp loading... after some 10 seconds, the javaws exits without any logs or errors
Can somebody let me know how to resolve this....
Thanks in advance
The issue was with the missing jar and when the jar was added, the app works.