B4J Question JAR file is OK on WIN7(64bit) but NOK on WIN7(32bit)

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

please help me.

I have b4j installed on my win7-64bit and my app (JAR file) I can run on this system,
but I can't run it on win7-32bit.

Please I have read forum but I have not found the clear solution.

I am trying b4j with this version of JDK:
:\Program Files (x86)\Java\jdk1.7.0_11\bin\javac.exe
:\Program Files (x86)\Java\jdk1.7.0_65\bin\javac.exe

Everything is OK on 64 bit but not on 32bit
Which version of JDK is correct for both version of system = 64bit and 32bit?
Thank you very much
p4ppc
 

billzhan

Active Member
Licensed User
Longtime User
I had similar issues before, jar apps crashed when started on an old laptop. It turned out that RAM was broken(tested by Memtest86+)
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear Bilizhan - thank you for your reply

Dear Erel - the error message is:

B4X:
dbutils._executetableview (java line: 368)
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such tab
le: files)
        at org.sqlite.DB.newSQLException(DB.java:383)
        at org.sqlite.DB.newSQLException(DB.java:387)
        at org.sqlite.DB.throwex(DB.java:374)
        at org.sqlite.NativeDB.prepare(Native Method)
        at org.sqlite.DB.prepare(DB.java:123)
        at org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
        at org.sqlite.Conn.prepareStatement(Conn.java:404)
        at org.sqlite.Conn.prepareStatement(Conn.java:399)
        at org.sqlite.Conn.prepareStatement(Conn.java:383)
        at anywheresoftware.b4j.objects.SQL.ExecQuery2(SQL.java:243)
        at b4j.example.dbutils._executetableview(dbutils.java:368)
        at b4j.example.main._formatfiles(main.java:1736)
        at b4j.example.main._appstart(main.java:244)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
        at b4j.example.main.start(main.java:35)
        at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl$5.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl$4$1.run(Unknown Source)
        at com.sun.javafx.application.PlatformImpl$4$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
        at com.sun.glass.ui.win.WinApplication$3$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

I took the file *.jar from PC with 64 bit and I am trying run this file on pc with 32 bit...
I get this message

Thank you very much
Best regards
p4ppc
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
Thank you Erel and friends,

I am doing something wrong. I have read on forum, that I can take the compiled file *.jar from OBJECTS folder and I can use this file on other computers. If I run myapp.jar on another comupter, then I see only new created DATA folder, but BIN and SRC folder is not created.

But it looks, that I must take all data from OBJECTS folder=
- BIN folder with files
- DATA folder with files
- SRC folder with files
- and files in OBJECTS folder with myapp.jar

This everything I need for running my app on other computers? It is true?
It does it mean that I cant use only myapp.jar.

Thank you very much
Best regards
p4ppc
 
Upvote 0

billzhan

Active Member
Licensed User
Longtime User
It depends on your project, the resources(DB,img,text) accessed by your jar should also be copied to the right directories.

B4X:
SQLmainlogin.InitializeSQLite("f://, "mydb.db",False)
contmap = File.ReadMap(File.DirApp, "cont.txt")

mydb.db (F disk) and cont.txt(File.DirApp->OBJECTS folder) should be copied to right directories


dbutils._executetableview
This will help you to find out which resource is missing or if there is any bug (Line: xxx).
 
Last edited:
Upvote 0
Top