B4J Question Javapackager does not work on Windows XP

red30

Well-Known Member
Licensed User
Longtime User
I have Windows 7 x64. I installed Java JDK x86: C:\Program Files (x86)\Java\jdk1.8.0_12. In the "Tools", "Configure Paths": C:\Program Files (x86)\Java\jdk1.8.0_121\bin\javac.exe and pressed "Run".I downloaded B4JPackager, uncommented
B4X:
args.Add("-Bruntime=" & GetSystemProperty("java.home", ""))
Here setting B4JPackager: View attachment 53369. The programm doesnt work on Windows XP. I tried to comment the line
B4X:
'args.Add("-Bruntime=" & GetSystemProperty("java.home", ""))"
Still does not work on Windows XP(( Why? Any help!! Inno Setup Compiler installed.
 
Last edited:

Harris

Expert
Licensed User
Longtime User
Not surprising... XP no longer supported, which is too bad.

I was (3 years ago) happily developing under XP with B4A when my app compilation suddenly STOPPED!

I fought this for weeks until I got a new laptop with Win 8.1 and everything worked as expected.

You are fighting a losing battle with XP. Like DOS, XP is dead. RIP XP.
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
The installer doesnt work on XP. I built the app with the help of B4J Packager (.exe). I run it on Windows XP - get an error that it is incompatible with x86 system.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
This means that B4J UI applications are also not compatible with Windows XP

Sorry Erel but that is not true. I am using B4J to build UI and non-UI applications on a Win XP Pro system. I am using Java 1.8.0_65 b17, with no problems.

I have also used Launch4j to create .exe files without any problem. The thread is here.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Windows XP is not supported by anyone unfortunately :(.

I have managed to install a packaged app which I have created on a few computers, without any problems. The GoogleMapsExample I can install but it will not run, as it gives the error "not a valid 32 bit application".
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I have managed to install a packaged app which I have created on a few computers, without any problems. The GoogleMapsExample I can install but it will not run, as it gives the error "not a valid 32 bit application".
This is actually a different issue. The installer was made with a 64 bit Java so it will not be compatible on a 32 bit computer.
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
I thought as much. I have no 64 bit system to test. Sorry.
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
There is no javapackager in java JDK 7.80. I can somehow run the application on Windows XP? Any option please ...
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
If you install Java 8.121 on Windows XP. Run the Jar file (Executable Jar File). It will start and it will work fine.
If you compile into a B4JPackager and install on Windows XP, there will be an error. Why is that?
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
Here is the video where I collect the package:
The program (Java 8.121) is installed, after the package is unpacked the program does not work, but if I just run the file, everything works:
Can B4JPaskager wrongly pack?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4JPackager doesn't do any packing. It calls JavaPackager which is a tool created by Oracke. As written 10 times in this thread and in other threads, Oracle no longer supports Windows XP and as we see, the installer doesn't work with Windows XP.

Why doesn't it work? I don't know. I'm not familiar with JavaPackager source code.
 
Upvote 0

Mickster

Active Member
Licensed User
Longtime User
This is really frustrating. I wish that there had been a notification that it wasn't possible to run the latest B4A on XP before I made the purchase. I am stuck with an XP machine, just upgraded my B4A and now I can't compile...grrr!
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
XP is dead, and sadly soon will be Windows 7.

With Windows XP, the longer you use it and let it go unsupported the worse things will be for you in the long run. Go back to Windows 98 and see how that works, then report back. XP will end up there eventually.
 
Upvote 0
Top