B4J Question Wrapper B4J

RAFA BRAVO

Active Member
Licensed User
Longtime User
Hello, good afternoon. Some time ago they made me a wrapper of this library:
https://github.com/libplctag/libplctag4j
everything has worked fine for me, but now i need to use it on a 32bit pc, with java 8 i get this error:
log:
src\b4j\example\b4xmainpage.java:60: error: no se puede acceder a LibPlcWrapper
public com.tillekesoft.libplcb4j.LibPlcWrapper _presionwsplc = null;
^
archivo de clase incorrecto: C:\Program Files (x86)\Anywhere Software\B4J\libraries\libplcb4j.jar(com/tillekesoft/libplcb4j/LibPlcWrapper.class) el archivo de clase tiene una versión incorrecta 55.0, debería ser 52.0 Eliminar
o
asegúrese de aparecer en el subdirectorio correcto del classpath.

I tried to contact the person who created the B4J library for me, without success. can someone help me thanks.
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
The Library was compiled with java 11, that's why you can't use it on java 8.
If you have the source code, you should compile it with java 8 and hopefully you will not have more problems.
 
Upvote 0

RAFA BRAVO

Active Member
Licensed User
Longtime User
I only have the files .jar and xml, to work with the library.
I'm looking for someone who can wrap it up again, but ready for java 8. not necessarily free.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

moster67

Expert
Licensed User
Longtime User
Hello, good afternoon. Some time ago they made me a wrapper of this library:
https://github.com/libplctag/libplctag4j
everything has worked fine for me, but now i need to use it on a 32bit pc, with java 8 i get this error:
log:
src\b4j\example\b4xmainpage.java:60: error: no se puede acceder a LibPlcWrapper
public com.tillekesoft.libplcb4j.LibPlcWrapper _presionwsplc = null;
^
archivo de clase incorrecto: C:\Program Files (x86)\Anywhere Software\B4J\libraries\libplcb4j.jar(com/tillekesoft/libplcb4j/LibPlcWrapper.class) el archivo de clase tiene una versión incorrecta 55.0, debería ser 52.0 Eliminar
o
asegúrese de aparecer en el subdirectorio correcto del classpath.

I tried to contact the person who created the B4J library for me, without success. can someone help me thanks.
I am not at home now but I will take a look if I can compile it with Java 8.
I don't recall if the original Github code required Java 11 or not.
I will let you know.
 
Upvote 0
Top