B4J Question Problem/bug? using B4JBuilder 7.31

Status
Not open for further replies.

JackKirk

Well-Known Member
Licensed User
Longtime User
I have just upgraded to Java 12 and B4j 7.31

I have a series of .bat files that do compilation of various B4J apps

I am getting the following error when the .bat files are run:
D:\XXXX\B4X\AWS EC2\FTPServer\YYYY>call "C:\Program Files (x86)\Anywhere Software\B4J\B4JBuilder" -BaseFolder="D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation" -task=Build -obfuscate=True -configuration=Default
B4JBuilder v7.31
Java version: 12
BaseFolder: D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation
ProjectFile: FTPServer.b4j
System.IO.FileNotFoundException: Could not find file 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'.
File name: 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at cq.p(FileMode A_0, FileAccess A_1)
at a5.k()
at a5.k(String[] A_0)
at a5.n(String[] A_0)
Could not find file 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'.

For some reason the folder \Obfuscation is recognised at the BaseFolder: echo but not when it goes to execute.

I have made absolutely no changes to the .bat file or B4J source - I have merely upgraded the Java and B4J environments.

I'm assuming this is some B4JBuilder bug but hesitate to say so - I've been wrong before!
 

JackKirk

Well-Known Member
Licensed User
Longtime User
Update: went back to B4J 7.0 (which I never used) - same problem.
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
Update: went back to B4J 6.51 (my prior working release).

B4JBuilder works but Java 12 is hiccupping:

D:\XXXX\B4X\AWS EC2\FTPServer\YYYY>call "C:\Program Files (x86)\Anywhere Software\B4J\B4JBuilder" -BaseFolder="D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation" -task=Build -obfuscate=True -configuration=Default
B4JBuilder v6.51
BaseFolder: D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation
ProjectFile: FTPServer.b4j
BuildConfiguration: Default,b4j.example
Parsing code.
Compiling code.

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.
Organizing libraries.
Compiling generated Java code.
System.Exception: Error: src\b4j\example\main.java:7: error: package javafx.application does not exist
public class main extends javafx.application.Application{
^
Note: src\b4j\example\main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

javac 12

at eh.a(a A_0)
at a2.j(String[] A_0)
at a2.m(String[] A_0)
Error: src\b4j\example\main.java:7: error: package javafx.application does not exist
public class main extends javafx.application.Application{
^
Note: src\b4j\example\main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

javac 12
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
Update: went back to Java 10.0.1 (my prior working release) - everything working.
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
Current version of B4J is compatible with Java 8, 9, 10 and 11. I recommend to use either 8 or 11. These are the long term supported versions.
Erel, I tried running B4J 7.31 with Java 10.0.1 and got:
D:\XXXX\B4X\AWS EC2\FTPServer\YYYY>call "C:\Program Files (x86)\Anywhere Software\B4J\B4JBuilder" -BaseFolder="D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation" -task=Build -obfuscate=True -configuration=Default
B4JBuilder v7.31
Java version: 10
BaseFolder: D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation
ProjectFile: FTPServer.b4j
System.IO.FileNotFoundException: Could not find file 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'.
File name: 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at cq.p(FileMode A_0, FileAccess A_1)
at a5.k()
at a5.k(String[] A_0)
at a5.n(String[] A_0)
Could not find file 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'.
Note is reporting:

BaseFolder: D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\Obfuscation

but then

Could not find file 'D:\XXXX\B4X\AWS EC2\FTPServer\YYYY\FTPServer.b4j'.

B4JBuilder is somehow losing the last folder (\Obfuscation).

With Java 10.0.1 this also happens with B4J 7.0 but not B4J 6.51.
 
Upvote 0
Status
Not open for further replies.
Top