PDA

View Full Version : Making a deb package for JDownloader



infestor
November 7th, 2009, 06:54 PM
first off, i have no experience in writing/making deb packages. i use jdownloader as my favorite download manager. but it is written in java and sucks in performance (tried on couple of PCs). so i was wondering if making a deb package for jdownloader makes sense at all in order to improve the performance?

Frak
November 7th, 2009, 07:06 PM
If it's poor now, it'll be poor later. DPMS doesn't affect performance, thankfully.

FuturePilot
November 7th, 2009, 07:13 PM
Packaging it into a deb isn't going to do anything for performance. deb packages are just a way to distribute software, nothing more.

Xbehave
November 7th, 2009, 07:44 PM
It will not help, however look into speeding up your java, if jDownloader is java based.

Frak
November 7th, 2009, 07:49 PM
It will not help, however look into speeding up your java, if jDownloader is java based.
Nothing that a rewrite couldn't fix.

infestor
November 7th, 2009, 08:52 PM
Nothing that a rewrite couldn't fix.

a rewrite? what do u mean by that?

Frak
November 7th, 2009, 09:03 PM
a rewrite? what do u mean by that?
Take the source and rewrite it from scratch so it doesn't run so terribly.

infestor
November 8th, 2009, 12:26 AM
Take the source and rewrite it from scratch so it doesn't run so terribly.

wish i had sufficient java & c skills to rewrite the application :(

for now i guess i will have to bear its clumsiness

Frak
November 8th, 2009, 12:58 AM
wish i had sufficient java & c skills to rewrite the application :(

for now i guess i will have to bear its clumsiness
http://www.headfirstlabs.com/books/hfjava/

Very easy to read. Takes advanced concepts and gives them to you in easy to understand pictures.

Xbehave
November 8th, 2009, 01:02 AM
wish i had sufficient java & c skills to rewrite the application :(

for now i guess i will have to bear its clumsiness
I'd look into your java setup perhaps installing the latest sun provided java will speed things up

vexorian
November 8th, 2009, 01:06 AM
a deb package would help in a regard, usually Java apps start with a very small memory limit, if I remember correctly, jDownloader needs -xms512 to work in its command line arguments, and making a deb package for it so that it calls it with this argument automatically would be a good idea.

Xbehave
November 8th, 2009, 01:24 AM
a deb package would help in a regard, usually Java apps start with a very small memory limit, if I remember correctly, jDownloader needs -xms512 to work in its command line arguments, and making a deb package for it so that it calls it with this argument automatically would be a good idea.
how would you make a deb pacakge do that?
It'd be easier to just alias it.


echo 'alias jDownloader="jDownloader -xms512"' >> .bashrc

vexorian
November 8th, 2009, 01:28 AM
Easier for you and me. A .deb package would bother setting that stuff up for normal users.

infestor
November 8th, 2009, 01:47 AM
how would you make a deb pacakge do that?
It'd be easier to just alias it.


echo 'alias jDownloader="jDownloader -xms512"' >> .bashrc

i checked jd.sh and it seems that it already does -xms512 (or not?):


#!/bin/bash
#JD Installer/Starter Version 0.2
#by Jiaz(JD-Team), jiaz@jdownloader.org
#You need at least:
#1.) bash (its a bash script ;) )
#2.) wget
#3.) Java Version >= 1.5 (OpenJDK works also in latest Version)

#How to use this?
#1.) chmod +x jd.sh
#2.) Place it anywhere you want
#3.) Running jd.sh for the first time will install and setup JD into JDDIR folder
#4.) Running jd.sh after the first time will start JDownloader directly

#Parameters
# update (will perform an update)

#JD Installation folder (adjust to your needs)
JDDIR=~/.jd
#default path to our install/update tool (DO NOT Change this)
JDINSTALLER=http://update0.jdownloader.org/jdupdate.jar

if [ -e $JDDIR ]
then
if [ "$1" = "update" ]
then
if [ -e $JDDIR/jdupdate.jar ]
then
cd $JDDIR
echo "Start JD-Updater"
java -Xmx512m -jar jdupdate.jar
exit
else
echo "Cannot start JD-Updater: Download/Start JD-Installer"
cd $JDDIR
wget $JDINSTALLER
java -Xmx512m -jar jdupdate.jar
exit
fi
fi
if [ -e $JDDIR/JDownloader.jar ]
then
echo "JD Installation found: Starting JD now"
cd $JDDIR
#java -Xmx512m -jar JDownloader.jar --add-links $1 $2 $3 $4 $5 $6 $7 $8 $9
java -Xmx512m -jar JDownloader.jar
exit
else
echo "JD Installation found: No valid JDownloader.jar exist!"
fi
if [ -e $JDDIR/jdupdate.jar ]
then
cd $JDDIR
echo "Start JD-Updater"
java -Xmx512m -jar jdupdate.jar
else
echo "Cannot start JD-Updater: Download/Start JD-Installer"
cd $JDDIR
wget $JDINSTALLER
java -Xmx512m -jar jdupdate.jar
exit
fi
else
echo "Download/Start JD-Installer"
mkdir $JDDIR
cd $JDDIR
wget $JDINSTALLER
java -Xmx512m -jar jdupdate.jar
exit
fi

www.rzr.online.fr
March 21st, 2010, 10:42 AM
hi
so did anyone try to package it ? any url of tracker or dsc ?
--
http://rzr.online.fr/q/itp