Amicuk Programming Answers

How to let users run your Java application

2015-10-11   Views:0


Hello, I'm writing an application using JBuilder7 and it's wonderful designer: so far it is composed by only 2 class and imports java.awt.* and javax.swing.* (SDK 1.4) Now, I've yet to finish it but I was wondering: "how will users be able to use it?

I'm writing an application using JBuilder7 and it's wonderful designer: so far it is composed by only 2 class and imports java.awt.* and javax.swing.* (SDK 1.4)
Now, I've yet to finish it but I was wondering: "how will users be able to use it?"
I don't want them to install 30+ Mb of SDK so I've looked into the forums and elsewhere and come up with several answers:
1) Let them install JRE: but it's 10+ Mb and they would need to download it separately from my program.
2) Let them use somehow their browser's JVM..(should I turn my application into applet for this? I guess so)
3) Make an .exe: I know there are many programs to make .exe from java but they would make a one-platform-based file.
Also there were many hints about using .jar files to get things easier.
Is there a 4th option in which users have to download only a few mbs to use the application?
And about .jar, how should I use it?
Thank you very much for all your help :)

The replay answer
Simply put - the users must download or be supplied the JRE. This must be installed before they can execute your java application.
As to distributing the application itself - You can jar (Java Archive) your classes into a single file.
You could as has been suggested create an EXE, but these generally are very large and tend to severely restrict the range of java technologies able to be used (EG Serialization, RMI, Reflection, class loading, ...)
Java is not intended for little tools that get installed separately - It is intended for larger applications or small applets in which case the download of the JRE is a minor concern.
Note that applets targeting Java 1.1.7 functionality work fine with most old browsers inbuilt JVMs - Your customers browser may not however have an inbuilt JVM and the user will still need to download the JRE to execute a SWING based applets.

Go to See the other 5 answers

How do i run a java application in jdk1.3

Category:DefaultRelease time:2015-10-11Views:130

im trying to run a java application in jdk 1.3. I created it in jbuilder and i was trying to use the applet viewer. JesperRead other 3 answers[More]

How can I run a java-application on starting of Windows 2000

Category:DefaultRelease time:2015-10-11Views:130

How can I run a java-application without any user on starting of Windows 2000? For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway. How can I do that?Hi, you have to put it in a Windows servic[More]

Running a java application from a java application

Category:DefaultRelease time:2015-10-11Views:130

hello , please who knows how i can run a java application 'B' from inside another java application 'A' and get the error messages (if any) from the application 'B'how are you executing application B from application A? Please explain the java code yo[More]

Running a Java application from a Swing GUI

Category:DefaultRelease time:2015-10-11Views:130

Hi, I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically. So, I want a user to click a button on my GUI, and th[More]

Running a java application in command prompt

Category:DefaultRelease time:2015-10-11Views:130

hi, I'm new to this forum. I would like to know what exactly needs to be specified to run a java application in a normal DOS command prompt. I know it is something like: javaw -classpath .\class GUI.applicationGUI where applicationGUI is the main cla[More]

Is it possible to run a java application within a web browser?

Category:DefaultRelease time:2015-10-11Views:130

Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers. I have a standalone java application written with AWT. Basically this free appli[More]

Can we run a java application using Runtime.exec()?

Category:DefaultRelease time:2015-10-11Views:130

Can we run a java application using Runtime.exec()? If yes what should i use "java" or "javaw", and which way? r.exec("java","xyz.class");The best way to run the java application would be to dynamiically load it wit[More]

Proble regarding running a java application

Category:DefaultRelease time:-0001-11-30Views:130

hi guys i'm new to java environment . when i'm running a java application in a console , it is not able to give output in other is working only in c:\j2sdk\bin. i think its the problem of setting classpath. can any one help me hw to ru[More]

Running a Java Application in Windows

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Can anyone tell me how to run a Java Application in Windows? I've tried to run it using TextPad 4.5 but it gives me an exception saying it can't find a class defenition. I'm actually using IBM VisualAge for Java to develop the app and it runs fin[More]

I want to run a java application once only.Pl help.

Category:DefaultRelease time:-0001-11-30Views:130

i want to run a java application once only. i.e. if some application is running on Win NT OS then that particular appliaction again should not run,but other java application can run. Pl help with some sample code. Thanx.Hi, I if understood your quest[More]

Running a Java Application on a Novell Netware Server

Category:DefaultRelease time:2015-10-11Views:130

I know this is a strange question but I was hopeing someone could help me or point me in the right direction. I have a java application that backs up files. I would like to run it automatically at night on our Novell server. Can Java run on a Novell[More]

I install Palm Desktop 6.2 and HotSync Manager (Windows) in my palm Tx ( I working with windows vista in my pc), after when it is working and I want to enter to the applications this one resetting mi system operation. please help me.Palm Desktop 6.2 [More]
Hi, I updated to iOS 6.0.2 and my iphone 5 had troubles connecting to the home wifi. So I reset network and now it won't accept the password. I have done the same to the old iphone 3G (reset network) and used same password and it was accepted, though [More]
Folks, Currently my client is using traditional Branch Accounting functionality in their bespoke legacy system. Where there are transfers between branches, e.g. transfers of funds or payment of expenses on behalf of another branch, an intermediate/cl [More]
I made a form in FormsCentral which was saved as a pdf. I got a filled in form from my colleague and the text in the fields does not show. Only when you mark a specific field the text in that filed appears but dissapears again when you select somethi [More]
Hi, When i transfer a resource from R/3 to APO the data is transferred to APO but not to the active version. Instead it sits in APO as model independent version i.e without a version number. Please let me know how this happens and how to overcome thi [More]
I am making text in imovie to make a short title intro I use the built in text tool to render a fade in and out of a title when i export, i can export in the highest quality possible but the resulting movie still looks EXTREMELY bad like, all fuzzed [More]
Firefox used to block images on websites, I can't figure how to set that up now. Is this still possible? I am tired of my sons being bombarded with advertisements with inappropriate images. Please help me fix this. I switched from Chrome because I wa [More]
hi my compuetr shows me available updates, yet after trying to install I'm receiving error message it's about adobe reader and iTunes any clues?got it: version: 10.6.8 more info: Model Name:          iMac   Model Identifier:          iMac9,1   Proces [More]
Does anyone know of anyway to get Adobe Reader to work with 64-bit versions of Internet Explorer?  ThanksAdobe Reader and the browser add-on are 32-bit; there is no way it will run on a 64-bit browser.Read other 2 answers [More]
I just installed 10.5.2 and NOW PS hangs at open. The other apps had a problem but dragging out the plist for them corrected them. I tried opening PS with another and with that user it crashed and gave a box to notify Adobe. I also ran the CS3 update [More]