Java GUI application

Hi,

If you've created a Java GUI using Swing or AWT. How do you deploy it so "selected" users that use the application.

So you have compiled your java file and now have a test.class file.

Can they access it via a URL or how do you give them access and deploy it to a prodcution environment?

Thanks,

[332 byte] By [hot_pasha] at [2007-10-3 3:08:36]
# 1
http://java.sun.com/docs/books/tutorial/deployment/jar/index.html
Michael_Dunna at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi Micheal,

Cheers for that. So I create a jar file to bundle an application. That's fine,

however I wouldn't expect a user to run

java -jar myfile.jar

If I have my code on an UNIX box - how do I get a "group" of users to run the application - without going into a command line.

Surely there must be a way to deploy a simple application to a group of users?

hot_pasha at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...
# 3
don't know about unix, but for windows you just double-click the .jar file
Michael_Dunna at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...
# 4

OK - I want to deploy to a Windows 2000 environment. Are you saying you have to individually deploy to a group of users - what happens if you have a 100 users?

So, if I create a Swing GUI application - each user has to recieve an individual copy of the jar file.

There must be a way?

Thanks in advance - I hate JSP, esp. Javascript for validation of fields!

hot_pasha at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...
# 5
Your problem is just a matter of defining permissions on a .jar file in a Windows 2000 system. Nothing more to do with Java I think.
Franck_Lefevrea at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...
# 6

Hiya,

OK - that makes more sense! So I just want to understand this correctly - if I create a Java Application (GUI) using Swing, AWT etc,

the way to deploy it would be by creating a jar file and defining the permissions on the file.

Is there any way a Java Application can be downloaded into a Browser - apart from creating an Applet?

e.g. A Java application with a main() function?

hot_pasha at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...
# 7
Yes... search for Java Web Start functionnality.
Franck_Lefevrea at 2007-7-14 20:59:07 > top of Java-index,Desktop,Core GUI APIs...