LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 0
Running Java Application with no desktop environment.


Hello Everybody,

I can't determine this thread is suitable for this forum. But I am a Newbie.

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, 02:45 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Since the application you mention is a streaming application, then presumably it will be running as a server. All linux distros support running servers, and you only need to boot to run level 3 so no desktop environment either.

The clients on the other hand ...
 
Old 09-10-2010, 03:34 PM   #3
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
Sure, you can run java all day long with no desktop ie xwindows running. But you can't use the javax.swing or java.awt components that generate frames, buttons, pulldowns, etc. You have to stay in a command line environment.

Last edited by suprstar; 09-10-2010 at 03:36 PM.
 
Old 09-10-2010, 07:43 PM   #4
cslucsm
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Hi

Thanks for your replies.
How can I configure a Linux with x window system to meet the following criteria.

At first, I want the system to run my application every time it start running.
I want to reduce start up time. Other software and Linux components such as administration tools (even text editor)are never run on that system. The user will interact only with my application. So I don't want to install software packages that are not concerned with my application. In this case VLC medial player and Java Virtual Machine.

How can I do?
Which distribution is suitable to do so?
Can I build my own Linux box to meet above specifications?

Welcome any suggestion.

Thanks.
 
Old 09-14-2010, 08:45 AM   #5
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 22
Ubuntu is a really small distro with a nice x desktop environment, it fits on a single cdr, so not a lot of bloat to that one. There is a media player that plays music and videos, and will automatically download any codecs if it doesn't have the one it needs for a specific media file.

Turn off all the services you don't need at startup, that will make your boot time a lot faster. I wouldn't go so far as to uninstall it all.

Go to http://java.com/en/download/manual.jsp and download a linux java jre, install it, and you're there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Determine which X desktop environment is running/default) pgrimes Programming 1 06-12-2006 05:14 PM
Running more than 2 desktop environment? johnleeryan Linux - Newbie 5 02-17-2005 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration