B4J Question Error starting b4j project

hookshy

Well-Known Member
Licensed User
Longtime User
I have problems starting a project , if I start it from the b4j console it starts ok if I click on the result.jar file it encounters a problem with some of the lib.
I have java7 sdk 64 bit for b4j
java 8 sdk 32 bit for b4a


One of my libs works only with java 7 sdk

Is there a way to explicity tell the project what java sdk to use ?

Thank you
 

DonManfred

Expert
Licensed User
Longtime User
I guess you need to use a batchfile. Inside the batch you can use whichever java you want to start the jar
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
I guess you need to use a batchfile. Inside the batch you can use whichever java you want to start the jar

Thanks ,
today I have tried to start the app from another pc with java 7 sdk installed ..another strange behaviour is present
I create new projects and copy new files to a certain folder but windows does not see or read the folder at all ....the files are only availlable when I click file open from the current jar aplication ?? How come ?
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
Maybe your old app are still running (taskmanager)?
I have restarted pc ... the jar app see folder and files that windows does not see ....
the folders are not hiden ... and i have already test it on my laptop

I guess you need to use a batchfile. Inside the batch you can use whichever java you want to start the jar
still searching the forum for the solution
 
Upvote 0

hookshy

Well-Known Member
Licensed User
Longtime User
I think you can do that with Launch4J https://www.b4x.com/android/forum/threads/create-windows-native-executables-exe-files.35863/ and tell what max JRE you support and if you need x64

Files and folders not visible in windows
The problems are solved after coverting the .jar project to .exe ...

I will do this as it is very usefull ..for now I have compatibility issues because the app have libs that are supported only by java 7 and the javapackager is only availlable from java 8 , I have stoped at some point and will try again
 
Upvote 0
Top