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
Hi, We need to add a custom field to FD31/FD32/FD33 transaction that is going to be feed by another develpment that we have. I searched in customizing but no luck. I found some info that i need to do one (or both) steps: 1) Add a screen field to the  [More]
i clicked the update next to the firmware upgrade 1.6 option in app store, it is now stuck on "checking for new updates", i can't shutdown or anything, it says you must wait for os updates to complete before shutting down.  the message has been [More]
As subject.What you're asking doesn't make sense. WebLogic runs fine on Windows. When on Windows, use the Windows-based interfaces for WebLogic. I've consistently been using Cygwin for many years, but it's important to understand that it is NOT an op [More]
I have been trying to get HD movies I bought from apple to play on my projector via VGA. When I try to play all I get is a gray-box on my mac and the projector. When the projector is unplugged everything of course works fine. When I called apple supp [More]
itunes will not let me ' authorise this computer' which i need to do to transfer apps from my mac to iphone. plse HELPMake sure you are signed in to your iTunes Store account when you try to authorise.  Otherwise. look in these support documents for [More]
I have a question that is related to views. When a view is joined with another table, how does Oracle internally handle it? Does it create a temporary table that contains the resultant rows of the view and join that temorary table to the other table [More]
I have a 250MB movie file that is an MPEG-1. I've tried exporting it to MPEG-4 but I get an error, and when I export it to various other formats there is no audio, just video. Is this because the a/v tracks are muxed; is there anyway I can export thi [More]
This is a file transfer server where I want to send 1) A file CV.docx from Client to server 2)The Server recieves this file as plaintext.docx 3) Server now sends back the plaintext.docx back to the client I am able to successfully send the file from [More]
I would like to disable the respond with text option, several times while taking the phone out of my pocket I responded to call I wanted to answerTry this: Go to Settings/General/Passcode lock/ Allow access when locked/disable Reply with messageRead [More]
Flash is just a free utility. I don't want McAfee Security Scan Plus near my PC, now or ever, so why is it installed by default for the too quick, or the ignorant, every time they update Flash. At least make MASSP opt-in rather than the default. Ther [More]