I'm pleased to announce the release of new project: JLaunchPad, version 1.0.0.
This program (Java launcher) is the set of Java classes and shell scripts (Windows and Unix) for simplifying installation/launching of Java applications. Once the launcher is installed, it can be reused for starting different Java applications.
For your application you have to specify required dependencies on other Java libraries (in maven-like fashion). When application is getting executed first time, all dependencies will be downloaded and installed automatically into your local repository. For all consequent executions of the application download process is not required and the only one responsibility of the launcher is to build correct "classpath" and launch the application.
How it works? It could be explained in the following steps:
1. On the dedicated server we have Central Repository (sponsored, non-profit, for everybody in the community/ IT industry) of Java components represented in binary format. It could be a separate Java library, some convenient tool or even GUI program.
2. Each component is provided with the group name, artifact name and the version. Classifier also could be used for specifying Java version of the component (e.g. jdk15, jdk16 etc.).
3. Each component has binary artifact and could also contain (optional) sources, javadocs or other artifacts.
4. Each component describes dependencies to other components in the form of Dependencies File. As the result, we have Dependencies Tree (or Transitive Dependencies).
5. Launcher program connects to the remote Central Repositories and downloads required components to the client's computer. Then the launcher builds correct CLASSPATH and then starts up the programs.
6. All downloaded components are stored in the Local Repository - it is the mirror of
Central Repositories and it contains only required components with their dependencies.
7. If somebody wants to introduce new program, s(he) describes it in the form of dependencies,then s(he) writes the code. As the result, it is required to distribute new code only - all dependencies will be downloaded later and only "on-demand" - when it is really required.
8. "Smart" start-up program reads Dependencies File, installs all the required dependencies and then starts the original program.
This is real separation of new code from related dependencies. If your application
is, say, dependent on "jdom" library, your distribution does not have to include this file. Instead, you provide dependencies for the project and they will be downloaded automatically.
For the implementation the following projects were reused:
- classworlds project (http://dist.codehaus.org/classworlds)
- bootstrap-mini project (http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.7/bootstrap)
- Java App Launcher (https://java-app-launcher.dev.java.net)
The project has plenty of examples that explain how to use this launcher for existing applications. The benefit is that all application deliveries will be built by same
unified scenario and do not contain dependencies - they will be downloaded/reused automatically. Among examples you can see such programs as Ant, Maven 2, Tomcat, JRuby, Groovy, Intellij IDEA, Glean and some other.
Initially this idea was implemented in another project. During last few moths I was able to separate the code and represent it as standalone project.
-
17 comments:
Hi Alexander,
i really tried to get this running, but i get only "
main.class.name property should be specified.".
Is there any special i have to set in repos-home? I downloaded the Ant-Example, put it into a folder, did go to luancher.bat and said:
launcher.bat ant
but... well.. class not found? Any help on this is appreciated. I am also available at cy __AT_ possessed DOT_ de Thanks!
Hi !.
You may , perhaps very interested to know how one can manage to receive high yields .
There is no need to invest much at first. You may begin earning with as small sum of money as 20-100 dollars.
AimTrust is what you need
AimTrust incorporates an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.
It is based in Panama with offices around the world.
Do you want to become a happy investor?
That`s your choice That`s what you really need!
I`m happy and lucky, I started to get income with the help of this company,
and I invite you to do the same. If it gets down to choose a correct companion utilizes your funds in a right way - that`s the AimTrust!.
I earn US$2,000 per day, and my first deposit was 1 grand only!
It`s easy to start , just click this link http://eduzydesal.wtcsites.com/ucacydi.html
and go! Let`s take our chance together to get rid of nastiness of the life
Good day, sun shines!
There have were times of troubles when I felt unhappy missing knowledge about opportunities of getting high yields on investments. I was a dump and downright stupid person.
I have never imagined that there weren't any need in big starting capital.
Now, I feel good, I started take up real income.
It's all about how to choose a proper partner who uses your money in a right way - that is incorporate it in real business, parts and divides the income with me.
You may get interested, if there are such firms? I'm obliged to tell the truth, YES, there are. Please get to know about one of them:
http://theblogmoney.com
Good day, sun shines!
There have been times of troubles when I felt unhappy missing knowledge about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never thought that there weren't any need in big initial investment.
Nowadays, I feel good, I begin to get real income.
It gets down to select a proper partner who utilizes your funds in a right way - that is incorporate it in real deals, and shares the income with me.
You may get interested, if there are such firms? I'm obliged to tell the truth, YES, there are. Please be informed of one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]
Nur wenn man dran glaubt..
good evening people. I'm honestly into shoes and I have been looking allowing for regarding that meticulous model. The prices as regards the boots were all over 350 bucks everwhere. But finally I base this location selling them as a remedy for half price. I in reality want these [url=http://www.shoesempire.com]prada sneakers[/url]. I will probably buy those. what can you say about it?
hi ppl. I'm really into shoes and I have been digging allowing for regarding that exact brand. The prices seeking the sneakers were about 180 bucks on every page. But definitively I found this location selling them as a remedy for half price. I in reality love these [url=http://www.shoesempire.com]prada sneakers[/url]. I will absolutely buy these. what do you think?
good afternoon everyone. I'm honestly into shoes and I had been looking allowing for regarding that exact brand. The prices seeking the sneakers were all over 210 dollars everwhere. But definitively I set this locate selling them for the benefit of half price. I absolutely love those [url=http://www.shoesempire.com]gucci sneakers[/url]. I will absolutely purchase them. what is your opinion?
good evening fellas. I'm really into shoes and I had been digging for that meticulous model. The prices for the sneakers were around 170 dollars on every page. But finally I base this site selling them for the benefit of half price. I really like these [url=http://www.shoesempire.com]gucci sneakers[/url]. I will definetly purchase these. what do you think?
Hello All!
i have been trying to figure out a place to begin with the acai berry free trial an was just wondering if anybody had some opinions on whether or not it works to lose weight? So far this is the 1 [url=http://acaiberries.zoomblog.com/]article[/url] I have been able to read online that seemed real for the goals I have. Opinions?
All pizza places of USA http://pizza-us.com/virginia/Virginia%20Beach/Bella%20Pizza/23455/
Find your best pizza.
It’s first time for me landing on your blog. I’ve reading your post recently and I’m so enjoying it.
I liked the posts and cool layout you have here! I would like to thank you for sharing your experience and the time it took to post!! Two Thumbs up!
One of the more impressive blogs Ive seen. Thanks so much for keeping the internet classy for a change. You've got style, class, bravado. I mean it. Please keep it up because without the internet is definitely lacking in intelligence.
I eveгу tіmе spent my hаlf an hour tο reaԁ thіs websіte's articles daily along with a mug of coffee.
Have a look at my webpage: reputation management
cheap finasteride propecia monthly cost - buy genuine propecia online
I think that is among the suсh a lοt
vital info for me. And i'm happy reading your article. But should remark on few basic things, The website taste is perfect, the articles is in reality great : D. Good task, cheers
Feel free to surf to my weblog :: lloyd irvin
Post a Comment