dcsimg
can java windows application like applet, swing run in pure unix platform like redhat linux ?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, November 22, 2001 11:24 PM

1.can java applet or swing run in non-windows unix platform like redhat linux without windows support. i would like to write a java swing or applet program that run in pure unix command environment, i dont want to allow user access windows like GNOME or KDE. can java applet or java windows program run in pure unix environment or not ? or i able to startup my java program imediately after logon and restrict user from accessing windows. any suggestion ?

2.can java call and run a unix shell script to manage the user account in unix platform ?

Re: can java windows application like applet, swing run in pure unix platform like redhat linux ?

Posted By:   Bart_Lamot  
Posted On:   Friday, November 23, 2001 12:10 AM

Make a swing (or awt) application (not a applet) and start X (not a desktop manager).
If I remembered correctly, in the console:

export DISPLAY=2.0
X&
java mypackage.SwingApplication


Tip:
During the init of your application get the size of the screen and set your application to that size, now you will cover the X.

That should do the trick, nothing to it.
I have done it a cpl of years ago and it worked.

Re: can java windows application like applet, swing run in pure unix platform like redhat linux ?

Posted By:   Ivo_Limmen  
Posted On:   Thursday, November 22, 2001 11:38 PM

1) Java needs an xserver to proform anything graphic. So it is not possible to run a Java application from the command line. It might be possible to start X (not a window manager) and only run a Java application. (I am not a *nix specialist).
2) Yes but by doing so you must realize that the application is not 100% pure Java. You can use the Process class to do this.
About | Sitemap | Contact