Skip to main content

How to run Java Swing/AWT app on Linux without XWindows

3 replies [Last post]
videoguy
Offline
Joined: 2008-06-03

Hi
I am wondering whether it is possible to run Java GUI app (Swing application) on UBuntu (X86 with OpenGL backend) without XWindows. This is for an embedded application.
I read Chris Cambell, Chet and Romaine's blogs. Looks like it is possible to run JDK 6 VM directly on OpenGL backend (or SDL+GL) without XServer.
Just wondering whether any one tried it.

Please note that I am neither looking for Java headless mode nor JVM showing UI on remote XServer. This is embedded solution using Java for GUI and other stuff.

I appreciate any help.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
videoguy
Offline
Joined: 2008-06-03

Sorry about the cross posting.
I am looking for something that depends on swing, may be Java ME and Java2d opengl pipeline.
Java ME (i.e Java for embedded systems) is available in so many flavors. Couple of those flavors support AWT and subset of Swing. My guess is that they don't expect embedded device to run an xserver. It is not clear on Java ME docs whether it has dependency on X Server or not.
I am looking for Swing (even a subset of it is fine) with OpenGL optimizations that can run on embedded box running Linux.

I appreciate any pointers in that direction.

Thanks

Dmitri Trembovetski

Ok, I see now.

I think your best bet would be to check what the ME community has
in the phoneme advanced project -
https://phoneme.dev.java.net/content/phoneme_platforms.html#phonemeadvanced
http://forums.java.net/jive/forum.jspa?forumID=100

I'm sure they have a configuration w/o the x server.

Alternatively, Sun provides porting services
http://java.sun.com/javase/downloads/embedded.jsp

Thanks,
Dmitri

java2d@JAVADESKTOP.ORG wrote:
> Sorry about the cross posting.
> I am looking for something that depends on swing, may be Java ME and Java2d opengl pipeline.
> Java ME (i.e Java for embedded systems) is available in so many flavors. Couple of those flavors support AWT and subset of Swing. My guess is that they don't expect embedded device to run an xserver. It is not clear on Java ME docs whether it has dependency on X Server or not.
> I am looking for Swing (even a subset of it is fine) with OpenGL optimizations that can run on embedded box running Linux.
>
> I appreciate any pointers in that direction.
>
> Thanks
> [Message sent by forum member 'videoguy' (videoguy)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279512
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

trembovetski
Offline
Joined: 2003-12-31

First, cross posting is not nice.

Unfortunately I don't believe what you want is currently possible.

You probably misinterpreted what Chris, Chet and Romain said. The opengl pipeline currently still depends on the AWT toolkit which in turn depends on X server connection.

Dmitri