new to java

58 views
Skip to first unread message

rebel881

unread,
Feb 15, 2012, 1:01:59 AM2/15/12
to java-libpst-discuss
Hi..
I an new to java as I work in PERL. I downloaded the source code of
java libpst but could not execute it.
I installed the latest jdk and executed it but it shows some error.
Basically I want to read data in a pst file and I cannot execute this
script. I ran the Test.java file and i wanted to know how to pass
value to filename string which i think should contain the path of
the .pst file? Please help me..

kevin slote

unread,
Jul 20, 2013, 11:34:23 AM7/20/13
to java-libp...@googlegroups.com

I strongly second this.  I Primarily work in python.  I assumed Test.Java was taking a command line argument and tried to run the command (from linux) java -jar Test.Java "filename".  I also tried "file directory."  If someone could clear up how to run this program for me, I would appreciate it.

kevin slote

unread,
Jul 22, 2013, 12:47:07 PM7/22/13
to java-libp...@googlegroups.com

Ok, I got it.
run from the command line.

javac -cp /directory_where_the_.jar_file_is/java-libpst.X.Y.jar Test.java (it should be in the example director and is available on github)

This outputs a file Test.class.  The program takes a command line argument so put a .pst file in the same directory.

again from the command line

java -classpath /directory_where_the_.jar_file_is/java-libpst.X.Y.jar Test somePstFile.pst


Reply all
Reply to author
Forward
0 new messages