python - java.lang.Exception: Class A not found -


Help!

I am trying to create a custom square using Jpype. I'm running 64 bit dragon and 64 bit JDK on the Mac. This am I get an error:

`jpype._jexception.ExceptionPyRaisable: java.lang.Exception: Class A not found

`
I have seen other questions on the stack overflow for this question.

Below is .py code, the commented lines show what I have tried to do:

  # jpype.startJVM ("/ system / library / frameworks / Jawawaikfremvrk / Jawaval "," -ia "," -jijav class .path =% s "% os.path.abspath (" / users / hujen / desktop / currResearch / pythonScript / class / ")) jpype .startJVM ( "/ system / Library / Frameworks / Jawawaikfremvrk / Jawawaim", "-ia", "-Djava.class.path = C: / Users / hujen / Desktop / currResearch / pythonScript / class /") # jpype .startJVM ("/ System / Library / Framework / JavaAccess. Remvrk / Jawaval ") # Jpype.startJVM (jpype.getDefaultJVMPath ()) jpype.java.lang.System.out.println (" Hello World! ") Jpype.java.lang.System.out.println (" This program originally parse Python will implement code Jvp.java.lang.System.out.println (jpype.JString ( "H")) using = jpype.JPackage ( "java.util") al = util.ArrayList () al.add ( 1) Al.add (2) print al.size () a = jpype.jClass ("a") a = a () printed a.sayi () print A.add (3,4) A.main ((" First "]) Jpype.shutdownJVM ()  

This is a class file. I saved him as a Ezawa. I took part in it by using

   

javac -g ejava

for the public class. A {public A () {super (); } Public string () (return ("hello");} public static zero main (string [] argv) {System.out.println ("hello" + argv [0]);} public static plus add (int A, int b) {return (a + b);}}

thanks!


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -