Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion jvpn.pl
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,19 @@ sub tncc_start {
print "Unable to find correct start class in the tncc.jar, please report problem to developer\n";
exit 1;
}
my @pluginjars = ("/usr/share/icedtea-web/plugin.jar", "/usr/lib/jvm/jdk-7-oracle-i586/jre/lib/plugin.jar");
my $pluginjar = '';
foreach my $jar (@pluginjars) {
if (-f $jar) {
$pluginjar = $jar . ':';
last;
}
};
my $pid = fork();

if ($pid == 0) {
my @cmd = ("java");
push @cmd, "-classpath", "./tncc.jar";
push @cmd, "-classpath", "$pluginjar./tncc.jar";
push @cmd, $found; # class name, could be different
if($debug) {
push @cmd, "log_level", 10;
Expand Down