B4J Question Running Jar file on Windows 7 computer

Pelky

Active Member
Licensed User
Longtime User
I posted previously about this and have tried compiling in release which created a .jar extension app:-

C:\DevX\Legals\LegalVisits\B4J\Objects\LegalVisits.jar

As I understand it this will only run on windows 7 and I cannot test it on a windows 11 computer

I used Java 8 when compiling.

I want to be able to install the app on a network shared drive which is all windows 7

Is there anything else I need when distributing it - Folders etc. or just put the .jar on the shared drive and create a link on the desktop?

I thank you all for your assistance.
 

aeric

Expert
Licensed User
Longtime User
Check this:
 
Upvote 0

Pelky

Active Member
Licensed User
Longtime User
that posting is somewhat meaningless... it states 2 ways to run it but only shows one... states create a json file = is that a text file with an extention or not?

I was told I had to go with java 8 as that is what is required for windows 7 but the posting b4jpackager11 does not say anything about java 8

will that packager do a java 8 version?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
states create a json file
If you don’t understand or clear about the json file, you are welcome to ask. It is just a config file. Please try to understand first before drawing any conclusion.

I was told I had to go with java 8
Not sure how you were told. You are not forced to use Java 8. Java 11 can work in Windows 7 too.

I used Java 8 when compiling
What’s the reason to use Java 8? You want it to create an executable Jar file? If you create a package using B4JPackager11, you can create an installation exe (with Innosetup) and distribute your app. After installed, user can run the app using an exe executable.
 
Upvote 0

Pelky

Active Member
Licensed User
Longtime User
thank you for your response. If I caused some offence with my previous response I apologise as that was not my intension - perhaps just letting the frustration get to me.

Having to use java 8 was a response that I got from a previous request for the same information. Maybe I read it wrong
Thank you for your response - If I caused some offence please accept my apologies, that was not my intension. Perhaps my frustrations coming out.

I received a response in a previous posting -
"No. Run the app in Release mode and it will create a jar file that you can distribute with two important nuances:-"

1. You need to compile with Java 8 (11+ will not work).
2. Java 8 needs to be installed on the user computer.


Perhaps I was just confused and took this response as the final say..... Once again my apologies

The installation is for a windows 7 computer on a shared drive using windows 7. I would like the best and simplest way to load this application allowing multiple users on the network to access and run it. I thought a standalone exe with associated folders was the easiest way.

so if I create an installation exe (with Innosetup) this will create an area/folder with everything I need to distribute this application? Also I can continue developing with java 11?
So just to get it right - I run b4jpackager11 and then Innosetup (found on the forum?)

I am sorry but I am just this side of 70 and all these new ways and naming conventions confuses me. I come from an historic mainframe environment where you just compiled the code (cobol) and copied the cob into where you want and you were off and running. I am a bit of a dinosaur.

Once again thank you for your assistance.


just out of interest - 'It is just a config file' - does that file have an extension or just a plain xxx.txt?

regards
Malcolm
 
Upvote 0

Pelky

Active Member
Licensed User
Longtime User
Sorry, my mistake, I always take the older post. It has a link to the newer tutorial. I will take note in the future.
I would like to let you know that I found out what the b4jpackager11 was and then found the Innosetup application on the internet
and ran it ..... it looks good and is running..
I havent tried it on the windows 7 computer yet but just wanted to let you know that the setup and installation was just
what I was looking for and it all just seems so much more simple .....

Thank you so much for your assistance it is much appreciated
 
Upvote 0