cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Java in ACL : [A30135] No definition of the class Hello could be found.

ChristopheLefeb
2-Explorer

Java in ACL : [A30135] No definition of the class Hello could be found.

Hi Adepters,

I'm having a problem calling Java from ACL with the java_* functions.
I guess it must be my environnement that is faulty as I can't even run a very simple sample.

I went to C:\Program Files\Epic\src\java and did all the README file says.

My Java version is 1.6.0_17 and the OS is Windows Server 2003 Service Pack 2

I open a DOS command window.
Go to the C:\Program Files\Epic\src\java directory.
Type the following command :
"C:\Program Files\Java\jdk1.6.0_17\bin\javac" -classpath "C:\program files\epic\lib\classes\aom.jar" *.java


Copy the Hello.class file in C:\Program Files\Epic\custom\classes

Then I launch Epic 4.3 and type this line in the editor's command line :
eval java_static('Hello','sayHello')
And get this error : [A30135] No definition of the class Hello could be found.


I've tried to see if any post on this mailing list did cover that issue, but found none relevant to my case.

Any idea on what is wrong ?

Thanks and regards

Christophe Lefebvre
LexisNexis France

3 REPLIES 3

My first guess is that you're using Epic 4.3, which has been out of support for almost a decade now, and whose embedded JVM was either 1.4 or 1.5, so your Java class files compiled with JDK 1.6 won't work. Try

path\to\javac -source 1.4 -target 1.4 -classpath path-to-aom.jar *.java

Chris

Also, if you're using Windows 7, Epic 4.3 probably won't work very well in that environment either.

In Reply to Christopher Nitchie:


My first guess is that you're using Epic 4.3, which has been out of support for almost a decade now, and whose embedded JVM was either 1.4 or 1.5, so your Java class files compiled with JDK 1.6 won't work. Try

path\to\javac -source 1.4 -target 1.4 -classpath path-to-aom.jar *.java

Chris

It didn't work with 1.4... but did well with 1.3 (the embeeded java version is 1.3.1)


And with that in mind I could use the java 1.6 compiler by using the set javavmpath="C:\Program Files\Java\jre6\bin\client\jvm.dll" command too.


Thank you for your help



Christophe Lefebvre


LexisNexis France

Announcements

Top Tags