B4J Question Main form won't open

oldeast

Active Member
Licensed User
Longtime User
Hi..debug and the .jar runs ok but the packaged product won't open.
appreciate any help..
 

oldeast

Active Member
Licensed User
Longtime User
I reread the tutorial and changed the appstart, but I must be still on the wrong track..
runs in debug and the jar file.. thanks
B4X:
Region  Project Attributes
    #MainFormWidth: 1200
    #MainFormHeight: 650
    #AdditionalJar: lib/sqlite-jdbc-3.8.11.2
    #AdditionalJar: jfxtras-labs-2.2-r5.jar
#End Region


Sub Process_Globals
    Private fx As JFX
   etc..
              
End Sub

Sub AppStart (Form1 As Form, args() As String)
        MainForm=Form1
        MainForm.RootPane.LoadLayout("Main")
        MainForm.SetFormStyle("DECORATED")
        MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "TabPane.css"))
        TabPane1.StyleClasses.Add("tab-pane")
        TabPane1.LoadLayout("ObjDetailsTab", "Details")
        TabPane1.LoadLayout("ObjProvTab", "History/Provenance")
        TabPane1.LoadLayout("ObjSignTab", "Significance")
        TabPane1.LoadLayout("ObjImageTab", "Image")
 
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
No errors, the debug and .jar file run ok...but the jar only runs when its in the same folder as the database
I have the database in the objects folder, but I think it should be in the data folder.
When I debug File.DirApp it shows ...\DOWNLO~1\SOURCE~1\B4J\SCM\Objects so that's what I used for the database
SQL1.InitializeSQLite(File.DirApp, "SCM.db3",False)
 
Upvote 0

oldeast

Active Member
Licensed User
Longtime User
Thanks, I misunderstood the location of the data folder..just another dumb question from me.
 
Upvote 0
Top