• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to bundle a JRE with my application.  RSS feed

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, I am chaitanya, I have developed an application, and now I want to distribute it to my clients, So I want to create an installer, I was searching the net, in sun forums I got this.

They said, instead of creating an installer, bundle a JRE with your application. What is that exactly, how can I do that? Can anybody please tell me?

I referred this

Thank you all in advance.
 
Marshal
Posts: 56605
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a "beginning" question. Moving thread.
 
krishna Karthikk
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, I have created a java application which is zipped in to a jar file. This application is used to send messages to mobiles from a computer. Same like a bulk SMS sender. For this I have used rxtxcomm.jar, jxl.jar and rxtxserial.dll.

As a part of deploying my application i have to place these jar files in jre/lib/extn and the rxtxserial.dll in jre/bin directory. I have written a bath file which does all these. But these is a possibility that the clients may edit the batch file. So then I thought to write a c program and create an executable file which copies the files to specified directories. But the system() function over there is not working as expected.

While I was surfing the internet I came across a web page which suggested why don't you create a bundled jre. I did not understand how to do that. Can anybody tell m how to do this.

Thank you all in advance, have a nice day.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bundle JRE means you send your own java runtime with your application paste that onto the clients computer and make sure your application uses this java.
It will work even if the client machine does not have java installed while your earlier approach won't work in that case.
 
krishna Karthikk
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manish, still I did not get how to bundle? I am thinking that I have to place the files in the jre in respective directories, then copy the jre folder to a removable storage medium and transport it.

Am I right?
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Somehow you should place the JRE content on the clients machine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!