B4J Question Module java.activation not found

BigBoss123

Member
Licensed User
Longtime User
I know this has been asked previously but is did not answer the problem other than perhaps a lib. was incorrect.
I am using Java 11.0.1 and cannot create a standalone package.
Does anyone have an answer to this question.

Thanks for your help
JavaProblem.PNG
 

BigBoss123

Member
Licensed User
Longtime User
Sorry
Here is the text

Thanks

B4JPackager11 Version 1.21
Exe name: Locations.exe
InputJar: K:\WaiStorage(WithPages)\Locations\B4J\Objects\Locations.jar
Running: K:\WAISTO~4\LOCATI~1\B4J\Objects\temp\FindDosPath.exe
Running: C:\Java\bin\jar
Package name: b4j.waistorage
Running: C:\Java\bin\jdeps
Exception in thread "main" java.lang.module.FindException: Module java.activation not found, required by java.xml.bind
at java.base/java.lang.module.Resolver.findFail(Resolver.java:894)
at java.base/java.lang.module.Resolver.resolve(Resolver.java:191)
at java.base/java.lang.module.Resolver.resolve(Resolver.java:140)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:422)
at java.base/java.lang.module.Configuration.resolve(Configuration.java:256)
at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration$Builder.build(JdepsConfiguration.java:564)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.buildConfig(JdepsTask.java:603)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:557)
at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:533)
at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:49)
 
Upvote 0

BigBoss123

Member
Licensed User
Longtime User
unfortunately I haven't got this to work.
Added #AdditionalJar: activation-2.2.1 in the Main Module
The activation-2.2.1.jar added to B4J/AddLibraries
However still getting the same error.

Have you any further help?

Thanks so much
 
Upvote 0

BigBoss123

Member
Licensed User
Longtime User
B4J Main:
#Region Project Attributes
    #MainFormWidth: 600
    #MainFormHeight: 600
    
    ' MS ACCESS ENCRYPTED
#AdditionalJar: ucanaccess-5.0.0
#AdditionalJar: hsqldb-2.5.0
#AdditionalJar: jackcess-3.0.1
#AdditionalJar: jackcess-encrypt-3.0.0
#AdditionalJar: commons-logging-1.2
#AdditionalJar: commons-lang3-3.8.1
#AdditionalJar: bcprov-jdk15on-154.jar
#AdditionalJar: jaxb-api-2.4.0.jar
#AdditionalJar: jaxb-impl-2.1.jar
#AdditionalJar: jackcess-2.1.11

#Additionaljar: sqlite-jdbc-3.7.2
#AdditionalJar: activation-2.2.1
'#IgnoreWarnings: 15
        
#End Region

Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form

Helpful I hope!!
 
Upvote 0

BigBoss123

Member
Licensed User
Longtime User
Sorry list is as follows

Library1=b4xcollections 1.08
Library10=sd_textview 0.09
Library11=xui views 2.44
Library2=b4xpages 1.08
Library3=b4xtable 1.21
Library4=bctoast 1.01
Library5=jcore 7.51
Library6=jfx 8.80
Library7=jokhttputils2 2.95
Library8=jsql 1.61
Library9=jstringutils 1.03

Cheers
 
Upvote 0

BigBoss123

Member
Licensed User
Longtime User
I'm reading and writing to an encrypted MS Access database.
If I compile and run under release if compiles perfectly and I have a jar file.
Its is just when I want to make a stand alone package it doesn't compile.
I tried using B4Jpacker11 and the same problem appears.

I will however take the password off the database and reduce the 'AdditionalJars" as see if it works.

Cheers
 
Upvote 0

BigBoss123

Member
Licensed User
Longtime User
I took away all the 'AdditionalJars' require to read an encrypted database and deleted the
#if Java code on the Main Module
B4X:
#if JAVA
import java.io.File;
import java.io.IOException;
import net.ucanaccess.jdbc.JackcessOpenerInterface;
    import com.healthmarketscience.jackcess.CryptCodecProvider;
    import com.healthmarketscience.jackcess.Database;
    import com.healthmarketscience.jackcess.DatabaseBuilder;
    import java.sql.SQLException;

public static class MyOpener implements net.ucanaccess.jdbc.JackcessOpenerInterface {
public Database open(File fl,String pwd) throws IOException {
   Database db = new DatabaseBuilder(fl).setCodecProvider(new CryptCodecProvider(pwd)).open();
   return db;
        }
    }
#End If

and it runs perfectly.
The #addtionaljars deleted were

Jackcess-encrypt-3.0.0
bcprov-jdk15on-154.jar
jaxb-api-2.4.0.jar
jaxb-impl-2.1.jar

Cheers
 
Upvote 0

BigBoss123

Member
Licensed User
Longtime User
Ok.

Went back to an encrypted database and by deleting these two 'jars'
jaxb-api-2.4.0.jar
jaxb-impl-2.1.jar
The standalone package worked perfectly.

Thanks for your help
 
Upvote 0
Top