Skip to main content

How does glassfish.jar work

3 replies [Last post]
avijits
Offline
Joined: 2005-09-10

Hi ,

I am kinda surprised as to how glassfish.jar work. I downloaded the b-23 of glassfish and ran the glassfish.jar using java -jar glassfish.jar. It contained only one class file glassfish.class of size around 70MB. Out of curiosity, when I performed a javap -s -p on this class, I could not believe that it contained only a few methods. So, where do we get the hundreds of dirs and files that this class creates during installation. WHat's the magic? Anyone out there knows? Please do share with me. I am guessing that there might be some kind of obfuscation technique at play here.

Thanks
Avijit

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amyroh
Offline
Joined: 2004-05-06

Instructions are on the download page - https://glassfish.dev.java.net/public/downloadsindex.html/

GlasssFish installation requires JDK 5 and ant 1.62.

1. Download one of the bundles
2. Run: java -Xmx256m -jar filename.jar
3. Run: ant -f setup.xml

I'll add the instructions to the jar file itself for folks who missed it on the website.

kohsuke
Offline
Joined: 2003-06-09

We are using a tool that we made in-house.
I'm in the middle of moving it to http://poormans-installer.dev.java.net/ shortly, so you are welcome to monitor that project.

fabianpeter
Offline
Joined: 2004-07-14

> Hi ,
>
> I am kinda surprised as to how glassfish.jar work. I
> downloaded the b-23 of glassfish and ran the
> glassfish.jar using java -jar glassfish.jar. It
> contained only one class file glassfish.class of size
> around 70MB. Out of curiosity, when I performed a
> javap -s -p on this class, I could not believe that
> it contained only a few methods. So, where do we get
> the hundreds of dirs and files that this class
> creates during installation. WHat's the magic? Anyone
> out there knows? Please do share with me. I am
> guessing that there might be some kind of obfuscation
> technique at play here.
>

after unjaring it, java -Xmx256m glassfish should do the install
Peter