B4J Question My JAR is OK with win 7, win 8, but NOT in win 10

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

please help me. I run my JAR file on many computers, but now I cant run it on windows 10.
Please see screenshot in attachement where are infos from console.

Please very much, what can I do with this error?

Thank you
p4ppc
 

Attachments

  • javaerrorrun.jpg
    javaerrorrun.jpg
    89.5 KB · Views: 431

petr4ppc

Well-Known Member
Licensed User
Longtime User
STEVE,
thank you,

Something is wrong with running java file.

It is possible to run java file another way? For example, right click to JAR file and choose RUN AS?
If I try RUN AS with java.exe file in JDK folder then I see only black window. Which file I must choose with RUN AS for running JAR file?

Best regards
p4ppc
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
You can open a powershell window and type java -jar try.jar

change directory to the path of try.jar first, or include the full path in the argument.

It probably will give the same result.

If it was my system, I would now uninstall Java (all versions), download a new version and re-install it.
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
STEVEL05

everything is OK with using POWERSHELL, my JAR program is RUNNING :)

I cant run my JAR program with standard double click on file in windows...

It is possible to do some autorunnig file via powershell for this moment?
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
You can create a batch file that contains the java -jar command and run that from the desk top or file manager.
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
STEVE, please
I have in my BAT file this:
B4X:
@echo off
Powershell.exe C:\test\pc.jar
pause

but I get this message:
'Powershell.exe' is not recognized as an internal or external command,
operable program or batch file.


Can you give me advice please?
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
STEVE
for this moment I have what I need.

Thank you very, very much for your support. Now I will work on standard running of JAR file.

For this moment thank you very much
Best regards
p4ppc
 
Upvote 0
Top