B4J Question Build Error

regwbr

Member
Licensed User
I have an application that works fine when I do a "compile & run".

Now I want to make a .jar so I can give it to others. However, I get the following error when I do a "compile to library".

B4J version 2.80
Parsing code. 0.05
Compiling code. Error
Error compiling program.
Error description: Cannot access excluded module: main
Occurred on line: 7
CheckArrays(Main.Tenby40_1to1,Main.MaxPossible_1to1)
Word: main

"main" is a code module in my project.

What am I missing? Why does it work with "compile & run" and not "compile to library"? Is there a different way to make the .jar file?

Thanks
 

regwbr

Member
Licensed User
I have an application that works fine when I do a "compile & run".

Now I want to make a .jar so I can give it to others. However, I get the following error when I do a "compile to library".

B4J version 2.80
Parsing code. 0.05
Compiling code. Error
Error compiling program.
Error description: Cannot access excluded module: main
Occurred on line: 7
CheckArrays(Main.Tenby40_1to1,Main.MaxPossible_1to1)
Word: main

"main" is a code module in my project.

What am I missing? Why does it work with "compile & run" and not "compile to library"? Is there a different way to make the .jar file?

Thanks
Never mind. I solved that issue. It would help if I was trying to create the .jar the correct way :-(
 
Top