Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: system call to a java program

by lachoy (Parson)
on Oct 22, 2002 at 11:56 UTC ( [id://207042]=note: print w/replies, xml ) Need Help??


in reply to system call to a java program

Actually if the file is called getseq.java, you need to compile it first. (Generally you do this with:

javac getseq.java

although if it uses extra libraries you'll have to add those to the classpath:

javac -classpath foo.jar getseq.jar

Then, assuming that the java binary is in your PATH and the getseq.class file is in /path/to/getseq, you can run:

system "java -classpath /path/to/getseq getseq dir1 dir2"

But this is getting OT for Perlmonks :-)

Chris
M-x auto-bs-mode

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://207042]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found