Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java application Not working in background process

807578Jan 15 2008 — edited Jan 15 2008
Hi

I don't know it my mistake or the problem with java application. 90% i belive it's the problem with java :) i made a c program that run a jar file using system method is c, i am passing the command line parameter to run jar file to that system method. while i run the my c program java application will start and i can see the result in the linux console, Things are beautiful till the linux console is getting close.
Once i close the console i can grep for the jar file in the linux console, and i am getting the process id so i am able to stop and start the application through a shell script.
finally i understood it's only showing the java process, java application is not working once the application started console is quit.

In windows i am running the same through process in c#, there also same problem.

Is this a bug that java application can't run as a separate process in background of windows or Linux.

Hope so this is a big bug in java, if there any fix or solution for this please tell me.

Thanks in advance
Rajeev
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2008
Added on Jan 15 2008
3 comments
358 views