You are not logged in.

#1 2004-05-13 22:00:32

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Java programms as pkgs? how?

what would be the best way to make a java application a pkg for archlinux?

e.g. i want to make a pkg for jemboss (frontend to emboss - http://www.rfcgr.mrc.ac.uk/Software/EMB … index.html )
but made as pkg (so that if installed, you can just type java jemboss and run it)

or Kandid ( http://kandid.sourceforge.net/ )

or other java apps

would it be enough just to copy the jar-files to /opt/j2re/lib/ext ? any experts? what would Dusty say?


The impossible missions are the only ones which succeed.

Offline

#2 2004-05-13 22:52:16

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: Java programms as pkgs? how?

also azureus!!! (bittorrent client)


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#3 2004-05-13 23:30:31

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: Java programms as pkgs? how?

dp wrote:

what would be the best way to make a java application a pkg for archlinux?

e.g. i want to make a pkg for jemboss (frontend to emboss - http://www.rfcgr.mrc.ac.uk/Software/EMB … index.html )
but made as pkg (so that if installed, you can just type java jemboss and run it)

or Kandid ( http://kandid.sourceforge.net/ )

or other java apps

would it be enough just to copy the jar-files to /opt/j2re/lib/ext ? any experts? what would Dusty say?

I don't think the jars would best be put in /opt/j2re/lib/ext. This muddles the jdsdk package in my opinion and leads to package version conflicts amoung different packages. Perhaps it would best be put in something like /usr/lib/java1.4/site-packages or something like python.

You would have to be sure that gets put on the path, but I don't think it would be good to put them in a system wide classpath, so that seperate projects with differnet jar versions don't conflict (very hard to debug).

Perhaps a java-run script or something? Used like: java-run jemboss and it would look for jemboss.jar in the site packages or something.

Just some ideas,
-wd


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

#4 2004-05-14 00:30:10

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Java programms as pkgs? how?

Check out cgoban2.  It's a simple program, but that's how I did it.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2004-05-14 08:09:47

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 787

Re: Java programms as pkgs? how?

It seems to me the best way would simply be to write a script that does it all - puts the jars on the calsspath and then runs the main class...

Put that script on the path and you're away...

Offline

#6 2004-05-14 08:42:11

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Java programms as pkgs? how?

Xentac wrote:

Check out cgoban2.  It's a simple program, but that's how I did it.

i had a look ...

mainly it's a script in /usr/bin that runs /usr/share/$pkgname/$pkg.jar

sounds really logical to me


The impossible missions are the only ones which succeed.

Offline

#7 2004-05-17 18:19:23

yak8998
Member
Registered: 2004-03-01
Posts: 143

Re: Java programms as pkgs? how?

cgoban2 is a good idea, I don't think theres a really logical way to have actual java packages without doing a bunch of fancy stuff...


"Ignorance is bliss, for stupid people."
"open-source is [...] programming Darwinism."
Vaughan-Nichols

Offline

Board footer

Powered by FluxBB