Python call Java causes Error: Could not find or load main class

121 views
Skip to first unread message

Ronaldo Bahia

unread,
Nov 8, 2016, 5:58:51 PM11/8/16
to Django users

Hi,

I am having issues to use the java program https://github.com/antonydeepak/ResumeParser/ in Django project in a localserver in MAC OS.

I have installed ResumeParser in the Django Project like:

-- Django Project

   -- app1

   -- app2

   -- ResumerParser

Here is my code but it says "Could not find or load main class".

if form.is_valid():
    f = form.save(commit=False)

    resume = form.cleaned_data['resume']

    cmd = ['java', '-cp', 'bin/:../GATEFiles/lib/:../GATEFiles/bin/gate.jar:lib/*', 'code4goal.antony.resumeparser.ResumeParserProgram %s textOutput.json' % resume]

    subprocess.Popen(cmd)

Any clues of how to solve this? I've tried every post related to this theme in StackOverflow no success.

Thanks in advance

Thread: http://stackoverflow.com/questions/40497841/python-call-java-causes-error-could-not-find-or-load-main-class


Reply all
Reply to author
Forward
0 new messages