setting up a .jar for install as in double click this icon??

Discussions Regarding Software

Moderator: Moderators

setting up a .jar for install as in double click this icon??

Postby mikey0000 » Tue Oct 16, 2007 12:40

hello

Im wondering how i could set up a .jar file (Drjava) to be an executable in the KDE menu
so i dont have to type java -jar to the file and i can move it to somewhere better than my desktop
i also have to tell it where tools.java is everytime i open it.

so im guessing ill stick it in the same directory as tools.jar and make some sort of shortcut to it launching it.
How do i do this? so it would work the same as Azureus, double click an icon.

cheers
also if i have failed to find obvious help files a sorry in advance but i dont know how to search for this kind of problem.
triple Booting Mac-osx 10.6, Sabayon Linux and Windows 7

2.5 athlon dual core
DFI infinity mobo
2 gb of DDR2 800 G skill ram 3.3.3.12
nvidia 9600gt
housed in a thermaltake taser III case with 7 fans - all turned off lol
User avatar
mikey0000
Growing Hen
 
Posts: 159
Joined: Fri Aug 10, 2007 0:33
Location: Dunedin New Zealand

Re: setting up a .jar for install as in double click this icon??

Postby rand.a » Tue Oct 16, 2007 14:28

right click, open with, "java -jar"

if that doesnt work, just create a script that has "java -jar $1" and open the file with that.
User avatar
rand.a
Growing Hen
 
Posts: 163
Joined: Fri Mar 23, 2007 20:08
Location: Shelton, WA

Re: setting up a .jar for install as in double click this icon??

Postby mikey0000 » Tue Oct 16, 2007 21:09

ive tried to make the script file so it looks to where ive placed the drjava app but it just opens in kwrite? what have i done or not done??

so its named Drjava.sh which i assume is a script file
and ive put in it

java -jar $/opt/sun-jdk-1.5.0.11/lib/drjava-stable-20061025-1556.jar

is that right??
triple Booting Mac-osx 10.6, Sabayon Linux and Windows 7

2.5 athlon dual core
DFI infinity mobo
2 gb of DDR2 800 G skill ram 3.3.3.12
nvidia 9600gt
housed in a thermaltake taser III case with 7 fans - all turned off lol
User avatar
mikey0000
Growing Hen
 
Posts: 159
Joined: Fri Aug 10, 2007 0:33
Location: Dunedin New Zealand


Return to Software in General

Who is online

Users browsing this forum: No registered users and 2 guests