Blake Swadling wrote: > On Tue, 2004-09-28 at 17:14, Wim De Smet wrote: >> > And how do I get .jar files to work by doubleklickind under kde 3.2.3? >> > Are there maybe some security problems? >> >> There's probably some sort of configuration dialog in KDE to establish >> a relationship between filetypes and programs. Find it and add jar to >> it. The command to be executed should probably be "java -jar" > Note that this will only work for jars that are "executable" (ie have a > Main-Class entry in their manifest). It will not be spectacularly > successful for those jar files that are missing this entry in their > manifest > > I wrap it in a script like this ... > > <snip> > #!/usr/bin/perl -w > > #check that we have a jar file on the command line > $jar_file="$ARGV[0]"; > if ( "$jar_file" eq "" ) { > &usage; > } else { > system("java -jar $jar_file") && system("gdialog --msgbox \"Jar file > \"$jar_file\" is not executable\n\" 100 100"); > } > > #report usage info > sub usage > { > system("gdialog --msgbox \"usage: run-jar.pl foo.jar\" 100 100"); > } > </snip> > Thanks. I try that if I got java to work.
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]