How to let users run your Java application
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 :)
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
Similar Messages
-
How can I run a java-application on starting of Windows 2000
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 service.
To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
Regards,
Ivan. -
How do i run a java application in jdk1.3
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
Jesper -
Running a Java application from a Swing GUI
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 then have another Java application, which is in the same package with the same classpaths and stuff, run.
Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
Thanks,
DanI don't know if it is possible to run the main method from another Java app by simply calling it...
But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
How does that sound? Is it possible?
What I'm suggeting is:
Original
public class DBQuery{
public static void methodA(){
public static void doQuery(){
methodA();
public static void main(String[] args){
// Your method calls
//Your initializing
doQuery();
}Revised:
public class DBQuery{
public static void methodA(){
public static void doQuery(){
methodA();
public static void doMyQuery(){
// Your method calls
//Your initializing
doQuery();
// No main needed!!
//public static void main(String[] args){
// Your method calls
//doQuery();
//} -
Is it possible to run a java application within a web browser?
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 application lets users to select spectral lines from a big file based on some criteria and plot those selected lines. Yes, it is a very simple application. Now I want to run this application within a web browser so that users don't need to download the application from the ftp site and thus don't need to install in their machine. Is it possible to run this application within browser? If yes, can we get the same plotting function as we run the application separately and where should I start out?
Thanks in advance!
kuilianPlease see the signed applet discussion group for details of how to avoid the applet security restrictions. You can sign the applet, or use the policy file containing {AllPermission} for testing purposes (though not suitable for widespread deployment).
Regards
Matthew -
How to let user download multi files at the same time in WebDynpro ABAP?
hi all:
As you know, WeyDynpor has provided upload/download UI element, but it seems that it only support one file upload/downlaod at the same time.The following is the API method to download one file in Webdynpro:
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING
i_filename = lv_filename
i_content = lv_content
i_mime_type = lv_mine_type
i_in_new_window = abap_true
i_inplace = abap_false
* EXCEPTIONS
* others = 1
but if when use click one button, we want to provide user a html file plus 2 icons files which are used as this html file's resource file, then how to let user download these 3 files together at the same time?
one simple way is calling the download api (cl_wd_runtime_services=>attach_file_to_response) 3 times,
but it is very ugly that three popup windows are shown to let user select every file's download path, which is unaccepted.
So anyone know more convienient way to handle it?
thanks.Hi,
I suggest you to zip the files and attach it to the response. Do the add file part for each of your files
"References
DATA lr_zip TYPE REF TO cl_abap_zip.
"Variables
DATA lv_zip_xstring TYPE xstring.
DATA lv_zip_name TYPE string.
DATA lv_file_content TYPE xstring.
DATA lv_file_name TYPE string.
"Create instance
CREATE OBJECT lr_zip.
"Add file
lr_zip_attachments->add(
EXPORTING name = lv_file_name
content = lv_file_content ).
lr_zip_attachments->save( RECEIVING zip = lv_zip_xstring ).
"Attach zip file to response
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING i_filename = lv_zip_name
i_mime_type = 'ZIP/APPLICATION'
i_content = lv_zip_xstring ). -
Obiee 11g How to let user change password
obiee 11g How to let user change password ?
i not mean use weblogic console。 normal user how to change password。With 11g, OBIEE essentially uses the 10g notion of external authentication.
By default, this is done by the WLS (Weblogic) LDAP identity store, but it may be done by another supported Authenticator either within WLS, or in the OBIS meta data (i.e. Custom Authenticator or LDAP). As such, OBIEE no longer has any control over user passwords; this is why the steps referenced in note 1102353.1 do not apply to OBIEE 11g, but only to internal/repository-defined users in OBIEE 10g.
So, as with password maintenance in OBIEE 10g when an external authenticator is used, it is within that external authentication system that password is changed, not within OBIEE 11g. There is no option in OBIEE 11g to allow users to change passwords.
There are two work-arounds with which you can change your password:
1) From the Weblogic administration console/WLST.
You need to give such user access into Weblogic console or access to browse through involved MBean hierarchy and other modify permissions. Changing the password using WLST instance is covered here:
Ideally, the console and WLST approaches are used by Administration accounts to manage other users. But the console and WLST can be made to allow other users to change passwords (which will be more or less like carrying out an administrative task by users themselves)
2) Using a programmatic approach.
Here the application that intends to provide password change functionality to its users should implement this functionality on its own (GUI plus call to the relevant Weblogic API). Weblogic provides an MBean that the application can use to accomplish this. See here for more information.
An enhancement request exists for this functionality. This is unpublished bug 11836170 - enable non admin users to change passwords in obiee 11g. -
How to transfer parameters to Webdynpro Java application ?
Hello guys,
I had developed a Webdynpro Java application "ZWD", it's URL is
"http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD".
"ZWD" had 2 input parametere "InputField" and "InputField1" .
Accroding to SAP Online Help document, we can transfer parameter Webdynpro application .
I want to transfer parameters to application "ZWD" via URL
"http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD?InputField=Frankfurt" .
But it failed.
My questions:
1. How to transfer parameter to Webdynpro Java application "ZWD" ?
2. Does it possible that transfer input parameter to Webdynpro application and run the applicaiton via specific URL ?
BR,
LouisHi Louis,
You can refer to the following Bertram's article:
[Inter-Application-Navigation in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface-technology/wd%20java/wdjava%20archive/inter-application-navigation%20in%20web%20dynpro.pdf]
The process of accessing the Application URL parameters is explained for Target Component.
Regards,
Alka. -
Proble regarding running a java application
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 run java program in any folder.You need to add that directory to your PATH. Follow
the installation instructions more completely.Howdy sheriff Warnerja! How's life in the Schmuckville Home of the Ball-less? Any leads regarding the dot flasher case? I see you're on the PATH.
Sheriff Warnerja of Schmuckville sensed an indecency plot.
Here was someone exposing her private dot.
He went on the trail,
but of no avail:
He didn't know where to find that intimate spot! -
Running a Java Application in Windows
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 fine INSIDE VisualAge and I've exported my compiled class files and so on, to run it stand-alone in Windows. I'm using some custom objects and inner classes, could these be the problem?
YES! SUCCESS! I exported my class files from VAJ and along with the manifest file that it adds automatically. I opened up the jar with Winrar, extracted the manifest file and added the Main-class: header pointing to my executable and then put it back in the jar with winrar. And PRESTO! I can now run it with javaw! Thanks for your help peeps...
-
I want to run a java application once only.Pl help.
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 question then your requirement is to run the application when the system is on.If this is the case then you can configure your OS schdular to do the job an let the OS do it.You can
write the java code for this but that will require to run on the OS layer,so better to configure the schedular setting.....But then for some other requirement it cannot be useful....
think...
regards vicky -
Running a java application from a java application
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 you are using?
-
Running a java application in command prompt
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 class, right? What else do I need to do, since I have some other non-GUI classes that I need, inside the class folder ?
Thanks for your time.You need to import those classes. And you need to make packages.
In classes 1, 2 and 3 put:
package class;
In class 4 put;
package class.GUI;
Then you need to make the connection:
In classes 1,2 and 3 put:
import class.GUI.*;
In class 4 put:
import class.*;
Compile each directory separately while in the respective directory. javac *.java
Then go back to the directory above the directory "class" and run
java class/GUI/name_of_file_containing_main_method -
How do i open browser in java application
hi....
please help me!!!!!!!!!!!!!!!!!!!!!!!!!!
how do i open browser in java application ? ( for show javascript in java application)
thank you.......You can run any program from java by doing
Runtime.getRuntime().exec("mybrowser myjavascriptfile.js");
The real question is why would you want to.
I would suggest you rethink whether running Javascript from Java is a good idea. -
How do i show javascript in java application?
hi.......
how do i show javascript in java application? ( run javascript in java application )
thank you...
( i love java developer)From java you can run any program. You can run javascript in a browser.
So you need to open a browser in java to run the javascript.
This is unlikely to have the desired effect however. Why do you want to this?
Maybe you are looking for
-
Verizon, Nobody.. and I mean NOBODY is buying your crap. You don't update to the latest software in a timely manner. The entire planet has the KitKat update for Android and you don't under the guise of better experience. That is crap, everyone else c
-
INVOICE PRINTING IN DIFFERENT LANGUAGE
Hello friends, We have offices in different countries so every countries generate there invoices in their language. Now how to print the invoices depending upon the logon language? should i create invoices in smart forms or sapscript which one is bet
-
Phone doesn't show up after new software update
After dowloading the new software I am unable to see my phone when connected to the computer. I'd like to transfer music and pictures but now I can't. Any idea how to get my phone to show back up in iTunes?
-
recently, i was forced to update my firefox. after that, problems began. my pop-up blocker is ON with only one exception (my bank website). but i keep getting pop-up ADs (not pop-ups needed for the webpage to work, but actual junk ads that have nothi
-
제품 : SQL*NET 작성날짜 : 1998-11-26 WINDOWS NT 와 FIREWALL 관련 =========================== (일반적으로 SQL*NET listener 가 1521 Port 를 사용한다고 가정) Windows NT 에서 Firewall 이 설치된 경우 1521 Port 를 열어주었다고 하더라도 클라이언트에서 접속시 ORA-12203 error 가 발생하게 된다. 이유는 아래의 그림과 같다. 1. 클라이언