B4J Question Trying to run a sample program

NeoTechni

Well-Known Member
Licensed User
Longtime User
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
Are you sure you posted the complete command line? I think there is a -jar command line option missing.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
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

NeoTechni

Well-Known Member
Licensed User
Longtime User
if you posted some code...

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.

Are you sure you posted the complete command line? I think there is a -jar command line option missing.

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

also, are you on a linux enviroment? most of the times, javafx is not installed aside with java.

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:
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
Upvote 0

NeoTechni

Well-Known Member
Licensed User
Longtime User
3adc51c28b1cb19c8e475d610eb2e8357297015a.jpeg

Got it working. I'd bet Erel never expected his code to run on something like this
 
Upvote 0
Top