LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-10-2010, 11:12 AM   #1
cslucsm
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Rep: Reputation: 0
Question 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.
 
Old 09-10-2010, 11:32 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
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?
 
Old 09-10-2010, 12:16 PM   #3
cslucsm
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 09-10-2010, 12:45 PM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Java Application with no desktop environment. cslucsm Linux - Newbie 4 09-14-2010 08:45 AM
How can I change my present desktop environment to Java DE on Solaris 10? quantify Solaris / OpenSolaris 1 11-07-2008 01:30 AM
Solaris 10 Java Desktop Environment Problems austinramsay Solaris / OpenSolaris 6 05-22-2008 08:28 PM
Integrate Java with desktop environment xeon123 Programming 2 09-06-2007 08:48 PM
Running more than 2 desktop environment? johnleeryan Linux - Newbie 5 02-17-2005 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration