Skip to content

about using the jar in Windows #3

@liuxthu

Description

@liuxthu

dear sir, i am very appreciate for you work, now i am trying use it for Windows.
i my python application, i use JPype to execute the .jar file you provide. the problem i met is how to give the parameters.
the code is like follows. so in order to use it , i may be need for information about the class name and its method used in the .jar. i mean, can i use it conveniently just as you use in shell?(pass accessKey, secretKey, region, video_stream_name, fileName and get the response)
can you give some help.
Best regards,
Andy from Beijing

from jpype import *  
startJVM("*****/jvm.dll","-ea", "-Djava.class.path=%s" % ('kinesisvideo-java-demo-1.0-SNAPSHOT.jar'))  

JDClass = JClass(<the class name for putmedia>)  
jd = JDClass()  
jd.<the name for putmedia and so on>(<the parameters>)
shutdownJVM()  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions