B4J Question library reference or the code module.

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

I have one common used code module "b4jlib.bas".

1. Now,I build a library jMcNetwork.jar including it. My WebApp have b4jlib.bas and jMcNetwork.jar. So,I always get a message " Error description: b4jlib is declared twice. You should either remove the library reference or the code module."
How could i solve this error ? o_O

2. I try to compile "b4jlib.bas" to "b4jlib.jar". I including "b4jlib.bas" and using is ok. it give me following message when i include "b4jlib.jar" and use it. Why ... ? :(

B4X:
B4J version: 4.20 (1)
Parsing code.    (0.08s)
Compiling code.    (0.20s)
Compiling layouts code.    (0.00s)
Compiling generated Java code.    Error
B4J line: 298
If b4jlib.IntOfBit(dog,XBYDAY) Then
javac 1.8.0_92
src\b4j\iogate\main.java:792: error: cannot find symbol
if (_b4jlib._intofbit(_dog,_xbyday)) {
           ^
  symbol:   method _intofbit(int,int)
  location: variable _b4jlib of type b4jlib
 

Attachments

  • b4alib.bas
    5.2 KB · Views: 215
Last edited:
Top