Sitemap

Amicuk Programming Answers

How to let users run your Java application

2015-10-11   Views:0

Advertisement

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?

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 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
Advertisement
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.
Talden

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.http://java.sun.com/j2se/1.3/docs/tooldocs/win32/appletviewer.html 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 directories.it 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]

Hot
When I try to open the bpel console and enter the default password - I get the following error message: Cannot find instances. An attempt to fetch the instances using the where condition " ( ci_state = 1 OR ci_state = 2 OR ci_state = 3 ) order by ci_ [More]
Hi guys, we just upgraded from PI 7.0 to PI 7.11. Now I´m facing a new scenario where an incoming order have to be processed. (HTTP to RFC) Furthermore each item of the order have to be enriched by data looked up in a SAP ERP 6.0 system. the lookup f [More]
Hi, This custom report is related to material document list (MB51). I was trying to retrieve Purchase Order(EBELN),Order number(AUFNR),Sales order(KDAUF) & Ship-to-party( KUNNR) from MSEG & MKPF. Unfortunately It looks like for Sales Orders, it pi [More]
...doing in a code like this: ResultSet friends=...executeQuery... while (friends.next()) log.append(friends.getString("sendergsm")); somewhere in between that loop, or sometimes the loop runs out fine, and sometimes it throws SQLException calle [More]
Hello I activate functional area as an additional account assignment element for the Funds Management. But I don't use functional area in Funds Management any more. So I want to know how to deactivate account assignment of functional area in my syste [More]
Post Author: schilders CA Forum: Data Connectivity and SQL Good Afternoon, We just upgraded to CR XI and I'm now attempting to refresh a report based on our Action Request System.  I received the database connector error 220 out of range and cannot r [More]
Is there an easy way to retrieve item approval status (moderationStatus) inside the edit form? During display of edit form I need to know wheather the currently edited item was approved or not. I see that the information is not reflected in a hidden [More]
When I type in a help topic nothing happens. Also, when I go to the home page it nothing happens when I click the links. This is really annoying becuase I want to ask a question and I can't get the help viewer to work.See my "Troubleshooting Help Vie [More]
I originally synced my Ipad with another computer, now I want to sync with anohter computer, I don't want to erase my Ipad and sync with my Ipod.This is an extract from one of our senior participant; hope he doesn't mind me reproducing it here Syncin [More]
Hello i own a 270x from January 2014, the unit that im using is the 2º, the first one broke in the first 4 days of use. Until now it was working fine, but yesterday when i was playing cs go, the screen freeze in 1 solid color, and i was forced to doa [More]