Author Topic: [Solved] Question about .jar files and building  (Read 518 times)

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
[Solved] Question about .jar files and building
« on: July 23, 2011, 05:22:41 PM »
G'day packagers,

I requested a package here > http://www.pclinuxos.com/forum/index.php/topic,94440.0.html

...but I don't know if anyone will have the time to do it so I thought it's a good time to get into packaging properly and do it myself.

I know we're supposed to get an SRPM to begin with and I can't find one online anywhere but I do have the source files in the form of a .jar file. I'm following the manual and just wanted to ask some questions along the way. Does this following course of action sound correct?

Unzip the .jar file and put the source files into ~/src/rpm/SOURCES

Put the spec file (which I haven't made yet) into ~src/rpm/SPECS

Then I can build it?
« Last Edit: July 24, 2011, 03:51:22 AM by timeth »
宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3786
Re: Question about .jar compression and building
« Reply #1 on: July 23, 2011, 07:14:50 PM »
Java programs are difficult to build. Tex has even put pre-built java binaries in a few packages. The problem as I understand it is that java programmers don't all use the same build tools. They don't usually worry about making it easier for packagers, because the binaries work on multi-platforms. Ideally, the actual compiling instructions should be in the spec file, but unless you have a working spec file to start with it's not easy.

Galen

Offline timeth

  • Hero Member
  • *****
  • Posts: 829
  • G'day mate-Link for big GIF^ http://db.tt/SUIL4CtK
Re: Question about .jar compression and building
« Reply #2 on: July 24, 2011, 03:50:43 AM »
Thanks for the response Galen.

I didn't realize it was difficult to build java programs.
I just decided to run it directly with a shell script and execute it from the menu. Seems an easy way to get around the problem.
宜しくお願いします > Yoroshiku Onegaishimasu > I humbly and respectfully ask for your kindness.  |   My graphics blog