LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Running Java Application with no desktop environment. (https://www.linuxquestions.org/questions/linux-general-1/running-java-application-with-no-desktop-environment-831409/)

cslucsm 09-10-2010 11:12 AM

Running Java Application with no desktop environment.
 
Hello Everybody,

I am trying to develop video streaming application that use VLC media player and VLCJ (Java Binding for VLC). The only reason I choose Linux platform for this application is its customizable feature.

Is it possible to support Java (JVM) in Linux without user interface (no desktop environment)?
Java application can contain user interfaces (swing) but java has its own look and feel. I am not sure it is possible to run java application with no desktop environment.

If anyone have an answer, let me know.

I want a Linux OS that run my Java application as soon as it start without showing other graphical interface (even desktop). Is it possible?

If you have a solution, let me know.

Guttorm 09-10-2010 11:32 AM

Hi

I've used many Java programs on headless Linux servers with not problem. As long as there is no awt/swing in the programs they work fine.

You can even compile the java program to a native binary. I have used pdftk on headless servers for years. When I looked at the source one day, I was really surprised it was java. Maybe take a look at the build system of pdftk?

cslucsm 09-10-2010 12:16 PM

Quote:

Originally Posted by Guttorm
I've used many Java programs on headless Linux servers with not problem. As long as there is no awt/swing in the programs they work fine.
My java program must include awt/swing because it must display movie. So certain display device is required. But users may interact with the computer by using Infrared Remote Control instead of keyboard and mouse. User is expected to use only my application by remote control since the system started. So other GUI components of OS such as administration tools, text editor, even desktop background is not essential.

Is it possible to do so?

Thanks.

Guttorm 09-10-2010 12:45 PM

Sorry I misunderstood. Is it going to be like a live cd or usb stick you just boot? Then sure it can run java programs, you just have to include a JVM. You could for example make a slax module?


All times are GMT -5. The time now is 08:23 AM.