NeoTechni Well-Known Member Licensed User Longtime User Aug 25, 2018 #1 cpi@clockworkpi:~$ java /home/cpi/java/GraphicsFirstSteps.jar Error: Could not find or load main class .home.cpi.java.GraphicsFirstSteps.jar I'm trying to run this on the GameShell which runs Clockwork Pi. I got java installed, but I can't run a jar file. No idea what I'm doing wrong
cpi@clockworkpi:~$ java /home/cpi/java/GraphicsFirstSteps.jar Error: Could not find or load main class .home.cpi.java.GraphicsFirstSteps.jar I'm trying to run this on the GameShell which runs Clockwork Pi. I got java installed, but I can't run a jar file. No idea what I'm doing wrong
OliverA Expert Licensed User Longtime User Aug 26, 2018 #2 Are you sure you posted the complete command line? I think there is a -jar command line option missing. Upvote 0
Are you sure you posted the complete command line? I think there is a -jar command line option missing.
EnriqueGonzalez Expert Licensed User Longtime User Aug 26, 2018 #3 also, are you on a linux enviroment? most of the times, javafx is not installed aside with java. Upvote 0
Cableguy Expert Licensed User Longtime User Aug 26, 2018 #4 Also the "Graphics" part of the command has me thinking... are you trying to run an UI app? The javafx platform has been discontinued a long time ago Upvote 0
Also the "Graphics" part of the command has me thinking... are you trying to run an UI app? The javafx platform has been discontinued a long time ago
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2018 #5 The error in the first post happened because of the missing -jar parameter. Upvote 0
NeoTechni Well-Known Member Licensed User Longtime User Aug 26, 2018 #6 if you posted some code... Click to expand... Well I did say it was a sample, and posted the filename, so I'd imagine it's the sample code for B4J with the same filename. The error in the first post happened because of the missing -jar parameter. Click to expand... Are you sure you posted the complete command line? I think there is a -jar command line option missing. Click to expand... That did it. Also the "Graphics" part of the command has me thinking... are you trying to run an UI app? The javafx platform has been discontinued a long time ago Click to expand... also, are you on a linux enviroment? most of the times, javafx is not installed aside with java. Click to expand... You are correct, it gave me that error now too. All the samples use JFX, can you even make B4J apps without it (that aren't command line apps)? Last edited: Aug 26, 2018 Upvote 0
if you posted some code... Click to expand... Well I did say it was a sample, and posted the filename, so I'd imagine it's the sample code for B4J with the same filename. The error in the first post happened because of the missing -jar parameter. Click to expand... Are you sure you posted the complete command line? I think there is a -jar command line option missing. Click to expand... That did it. Also the "Graphics" part of the command has me thinking... are you trying to run an UI app? The javafx platform has been discontinued a long time ago Click to expand... also, are you on a linux enviroment? most of the times, javafx is not installed aside with java. Click to expand... You are correct, it gave me that error now too. All the samples use JFX, can you even make B4J apps without it (that aren't command line apps)?
EnriqueGonzalez Expert Licensed User Longtime User Aug 26, 2018 #7 NeoTechni said: You are correct, it gave me that error now too. All the samples use JFX, can you even make B4J apps without it (that aren't command line apps)? Click to expand... You have 2 options, command line or javafx, But you can install javafx: https://www.bell-sw.com/java.html https://www.b4x.com/android/forum/threads/raspberry-pi-b4j-ui-applications-with-liberica-jdk.92950/ Upvote 0
NeoTechni said: You are correct, it gave me that error now too. All the samples use JFX, can you even make B4J apps without it (that aren't command line apps)? Click to expand... You have 2 options, command line or javafx, But you can install javafx: https://www.bell-sw.com/java.html https://www.b4x.com/android/forum/threads/raspberry-pi-b4j-ui-applications-with-liberica-jdk.92950/
NeoTechni Well-Known Member Licensed User Longtime User Aug 27, 2018 #8 Got it working. I'd bet Erel never expected his code to run on something like this Upvote 0
NeoTechni Well-Known Member Licensed User Longtime User Aug 27, 2018 #9 Complete instructions are here: https://forum.clockworkpi.com/t/how-would-you-install-java-8u40/1465 For posterity. Upvote 0
Complete instructions are here: https://forum.clockworkpi.com/t/how-would-you-install-java-8u40/1465 For posterity.