Thread Rambo: JAVA Aufruf in Perl (11 answers)
Opened by Rambo at 2003-09-18 12:59

Rambo
 2003-09-18 14:14
#53637 #53637
User since
2003-08-14
803 Artikel
BenutzerIn

user image
hier der aktuelle code
use strict darf ich nicht verwenden

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#$jre_path = "D:\\WIN32APP\\JAVA_141_01";

$pix_path = "F:\\PIXX_TOOLS\\IA_TEST\\1.5.1.00.27";
$appexecutable = "D:\\WIN32APP\\JAVA_131_04\\BIN\\JAVA.EXE";

#$appexecutable = $jre_path . "\\BIN\\JAVA.EXE";
#@wks_name = qw(R1R2R3);


#for $wks_name (@wks_name) {
       $appparameters = $appexecutable . ' -cp ' .
                         $pix_path . ';'.
                         $pix_path . '\\CLASSES;'.
                         $pix_path . '\\ETC;'.
                         $pix_path . '\\CONFIG;'.
                         $pix_path . '\\LIB\\servertester\\loggingpatch;'.
                         $pix_path . '\\LIB\\servertester\\servertester.jar' .';'.
                         $pix_path . '\\LIB\\appfw.jar' .';'.
                         $pix_path . '\\LIB\\pixx.jar' .';'.
                         $pix_path . '\\LIB\\pixxclient.jar' . ';'.
                         $pix_path . '\\LIB\\pixxcsresources.jar' . ';'.
                         $pix_path . '\\LIB\\orbix2000.jar'.
         ' com.lsy.pixx.server.test.Tester REMO1 servertester/tester.cfg'.
                     
# start pictures...
   Win32::Process::Create($ProcessObj,
                          $appexecutable,
                          $appparameters,
                          0,
                          NORMAL_PRIORITY_CLASS,
                          '.')|| die ErrorReport();

   

als antwort bekomme ich
F:\PIXX_TOOLS\IA_TEST\1.5.1.00.27>Usage: java [-options] class [args...]
          (to execute a class)
  or  java -jar [-options] jarfile [args...]
          (to execute a jar file)

where options include:
   -hotspot      to select the "hotspot" VM
                 If present, the option to select the VM must be first.
                 The default VM is -hotspot.

   -cp -classpath <directories and zip/jar files separated by ;>
                 set search path for application classes and resources
   -D<name>=<value>
                 set a system property
   -verbose[:class|gc|jni]
                 enable verbose output
   -version      print product version and exit
   -showversion  print product version and continue
   -? -help      print this help message
   -X            print help on non-standard options

also kann er hier die classen wohl noch nicht finden.

aber ich bin ein stück näher dran

fürti remo

View full thread Rambo: JAVA Aufruf in Perl