How to run Java program in F96-CE4?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

How to run Java program in F96-CE4?

Post by vtpup »

Beginner class question here.... I'm trying to run this:

https://sourceforge.net/projects/imaget ... converter/

What I tried so far in F96 CE-4 (computer in sig):

1.) Download that ImagetoGerberConverter .jar

2.) Install Java: PPM>Install Applications>Choose an SFS File>Java-8U251-x64.sfs

3.) Load the SFS

4.) Click on the program -- nothing

5.) Open terminal, type javaiftest

"which java: Java is not installed."

(I did also try making the image to gerber .jar executable, but no difference...)

Thanks fo any help.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
bigpup
Moderator
Posts: 7512
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1021 times
Been thanked: 1682 times

Re: How to run Java program in F96-CE4?

Post by bigpup »

I loaded the java SFS you talk about. Got the one offered in Quickpet fossa->Net (it is the same java sfs you say you got loaded)
After it loaded it asked if I wanted to run it.
Clicked on run.
A setup opened with a lot of options for java, I just clicked on OK to close it. So it is using settings that were already set.

After you download the program file ImageToGerberLite.jar (this is what the download on that web site link offered to me)

You need to give it exec permission.

then left click on it to run it.

Maybe you need to run that setup for java to get it working :idea:

Maybe that java sfs is not really loaded. :idea:
I did those two terminal commands for java and got all kinds of return info.
.

Screenshot(1).jpg
Screenshot(1).jpg (45.33 KiB) Viewed 1412 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

Re: How to run Java program in F96-CE4?

Post by vtpup »

Thanks BigPup. If I follow your steps in F96-CE4, I get the Java SFS downloaded, and the question do I want to RUN it, I click run, but then I don't get a Setup running with options. Nothing happens.

So I don't think Java is actually installed, even though the SFS seems to have loaded.

I'm wondering if it is a F96-CE4 problem. Unfortunately this new laptop doesn't function well with regular Fossapup.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

Re: How to run Java program in F96-CE4?

Post by vtpup »

I was able to run regular Fossapup64 (not F96-CE4) by adding a USB mouse and a USB Wifi dongle to my laptop. I could then install java (which went well, and DID present the setup screen) and then run the Image to Gerber Converter without a problem.

So installing Java seems to be a problem specific to my instance of F96-CE4.

I'm going to bring this up on the F96 CE rev 4 forum thread, since it might be a bug.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: How to run Java program in F96-CE4?

Post by rockedge »

@vtpup I looked back at how I installed openjdk-21 and openjre-21 (and openjdk-11) on F96-CE_4 which I have installed to run Vassal

I used the PPM. Searched for openjdk and installed:

  • openjdk-21-jdk_21.0.4+7

  • openjdk-21-jdk-headless_21.0.4+7

  • openjdk-21-jre_21.0.4+7

  • openjdk-21-jre-headless_21.0.4+7

Not sure that the headless versions are needed, I'll have to look back in time to see why I did install them unless it was throw the noodles against the wall and see what sticks methodology.

Vassal running:

Screenshot(78).jpg
Screenshot(78).jpg (21.54 KiB) Viewed 1361 times
Screenshot(79).jpg
Screenshot(79).jpg (44.62 KiB) Viewed 1361 times
User avatar
mikewalsh
Moderator
Posts: 6518
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 993 times
Been thanked: 2170 times

Re: How to run Java program in F96-CE4?

Post by mikewalsh »

@vtpup :-

Hiya, Steve.

I can't speak for open-jre/jdk. Never had any success with it, so I gave up on it long ago......and have always used Java itself. (BTW: that Java SFS package is at least 20 releases behind. Just sayin'.)

Java is one of those rare beasts. Just installing it ain't enough. That won't cut the mustard; nothing less than an OS re-boot will persuade it to admit it's actually installed, on your system, and ready & available for use.

I use rerwin's oldJavaInfo utility package. I load - or otherwise install - Java itself. I then install the JavaInfo utility.....which also installs the Control Panel.

Once those are done & dusted, I click on the MenuEntry (under Utility) for 'Java Control Panel'. This will tell you the installed version, and allow adjusting some settings for it. However; on a 'first run' after installing/loading it, it always comes up with summat like "A version of Java is partly installed on your system. Please re-start your OS to complete the installation...", or similar.

I have to assume that a re-boot sets up a bunch of sym-links, or allows a config file to be updated, or.....well; you get the drift. After a re-boot - even here in Linux, where such things aren't usually needed - everything is "tickety-boo".

That's always been my experience.

===================================

If you visit my Google Drive a/c, here:-

https://drive.google.com/drive/folders/ ... sp=sharing

....you'll always find a fairly up-to-date pair of Java builds for both 32- and 64-bit. You will also find Richard Erwin's 'javaif' utility package. No 'arches' here; it's just a script. I mirrored it to make sure there was always a copy available to the community, since it's never failed to work for me.

'Javaif' loads the 'Control Panel' as a by-product of whatever else it does.

Mike. ;)

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: How to run Java program in F96-CE4?

Post by rockedge »

Yes definitely reboot before you use it when installed from the PPM!!!

I forgot to mention that important step.

User avatar
bigpup
Moderator
Posts: 7512
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1021 times
Been thanked: 1682 times

Re: How to run Java program in F96-CE4?

Post by bigpup »

vtpup wrote: Mon Jan 13, 2025 3:50 pm

Thanks BigPup. If I follow your steps in F96-CE4, I get the Java SFS downloaded, and the question do I want to RUN it, I click run, but then I don't get a Setup running with options. Nothing happens.

So I don't think Java is actually installed, even though the SFS seems to have loaded.

I'm wondering if it is a F96-CE4 problem. Unfortunately this new laptop doesn't function well with regular Fossapup.

What I posted about getting the program to work for me was doing it in my install F96-CE_4

Is the java sfs located in /mnt/home/?

Did you load it by using SFS load?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

Re: How to run Java program in F96-CE4?

Post by vtpup »

rockedge wrote: Mon Jan 13, 2025 6:50 pm

@vtpup I looked back at how I installed openjdk-21 and openjre-21 (and openjdk-11) on F96-CE_4 which I have installed to run Vassal

I used the PPM. Searched for openjdk and installed:

  • openjdk-21-jdk_21.0.4+7

  • openjdk-21-jdk-headless_21.0.4+7

  • openjdk-21-jre_21.0.4+7

  • openjdk-21-jre-headless_21.0.4+7

Not sure that the headless versions are needed, I'll have to look back in time to see why I did install them unless it was throw the noodles against the wall and see what sticks methodology.

Vassal running:
Screenshot(78).jpg
Screenshot(79).jpg

Thanks Kindly, Rockedge. This worked for me!

FYI the JRE and headless versions all get automatically installed when you choose the first openjdk-21 file and install it.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

Re: How to run Java program in F96-CE4?

Post by vtpup »

mikewalsh wrote: Mon Jan 13, 2025 9:39 pm

@vtpup :-

Hiya, Steve.

I can't speak for open-jre/jdk. Never had any success with it, so I gave up on it long ago......and have always used Java itself. (BTW: that Java SFS package is at least 20 releases behind. Just sayin'.)

Java is one of those rare beasts. Just installing it ain't enough. That won't cut the mustard; nothing less than an OS re-boot will persuade it to admit it's actually installed, on your system, and ready & available for use.

I use rerwin's oldJavaInfo utility package. I load - or otherwise install - Java itself. I then install the JavaInfo utility.....which also installs the Control Panel.

Once those are done & dusted, I click on the MenuEntry (under Utility) for 'Java Control Panel'. This will tell you the installed version, and allow adjusting some settings for it. However; on a 'first run' after installing/loading it, it always comes up with summat like "A version of Java is partly installed on your system. Please re-start your OS to complete the installation...", or similar.

I have to assume that a re-boot sets up a bunch of sym-links, or allows a config file to be updated, or.....well; you get the drift. After a re-boot - even here in Linux, where such things aren't usually needed - everything is "tickety-boo".

That's always been my experience.

===================================

If you visit my Google Drive a/c, here:-

https://drive.google.com/drive/folders/ ... sp=sharing

....you'll always find a fairly up-to-date pair of Java builds for both 32- and 64-bit. You will also find Richard Erwin's 'javaif' utility package. No 'arches' here; it's just a script. I mirrored it to make sure there was always a copy available to the community, since it's never failed to work for me.

'Javaif' loads the 'Control Panel' as a by-product of whatever else it does.

Mike. ;)

Wow thanks Mike. That sounds complicated to me. Since Rockedge's suggestion above worked, I guess that's enough for what I needed it (temporarily) for. I do appreciate your always informative solutions! Still using a lot of your portables, day to day....

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

Re: How to run Java program in F96-CE4?

Post by vtpup »

bigpup wrote: Tue Jan 14, 2025 3:47 am
vtpup wrote: Mon Jan 13, 2025 3:50 pm

Thanks BigPup. If I follow your steps in F96-CE4, I get the Java SFS downloaded, and the question do I want to RUN it, I click run, but then I don't get a Setup running with options. Nothing happens.

So I don't think Java is actually installed, even though the SFS seems to have loaded.

I'm wondering if it is a F96-CE4 problem. Unfortunately this new laptop doesn't function well with regular Fossapup.

What I posted about getting the program to work for me was doing it in my install F96-CE_4

Is the java sfs located in /mnt/home/?

Did you load it by using SFS load?

Yes, thanks Bigpup, I did have the .sfs located in /mnt/home. I originally installed it by the exact steps I gave, and that automatically puts it in /mnt/home, and also sets it up in Boot manager as an automatically booted sfs, and finally also asks you if you want to load it right now. Which I answered yes to. When that failed to start Java, I did also check the boot manager and /mnt/home to verify, then rebooted and tried to run the Gerber application again. No go. I then tried in terminal

Code: Select all

javaiftest

which told me java wasn't present. So I feel like I exhausted all possibilities re the .sfs.

As also mentioned, a reboot into regular Fossapup64 and load of the same java.sfs went via BootManager without a hitch and I was easily able to open the Gerber app.

I can try again to get it going in F96-CE4, just to absolutely be sure, since yo got it going in the same OS. I don't like mysteries!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 765
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 206 times
Been thanked: 174 times
Contact:

Re: How to run Java program in F96-CE4?

Post by vtpup »

Bigpup, see above. Just to try it again, I removed Rockedge's PPM installed Java. Rebooted. Went through the whole process of trying to install the Java sfs again. No go.

Yup it was in /mnt/home
Yup it was listed in the BootManager as loaded.
Yup I rebooted again and tried running a java program again and also checked for it via "javaiftest" in terminal again, with same negative result. I'm pretty much ready to give up on it.

Back to the PPM installed Java from Ubuntu repo. Thanks for trying to help!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

mow9902
Posts: 205
Joined: Fri Jul 24, 2020 11:57 pm
Has thanked: 17 times
Been thanked: 69 times

Re: How to run Java program in F96-CE4?

Post by mow9902 »

I'm not entirely sure what this issue is about - but I happily run java apps using F96-CE4

(a) In /mnt/home I currently have a folder jre1.8.0_431 containing the most recent JRE environment.
(b) I also have this symlinked as java in /mnt/home
(c) In ~/root/my-applications I have a folder named /bin and inside the ~/root/my-applications/bin folder I have a symlink pointing to /mnt/home/java/bin/java
(d) The default 'run action' for a .jar file is set as java -jar "$@"

So, when I click on a java app (jar file) it simply loads the JRE pointed to by the symlink. So, I can actually run different versions of JRE by swapping the symlink as required.

Not sure if this helps - but I have been using this successfully for quite some time.

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: How to run Java program in F96-CE4?

Post by rockedge »

@mow9902 Wow...I like your method to run Java!

mow9902
Posts: 205
Joined: Fri Jul 24, 2020 11:57 pm
Has thanked: 17 times
Been thanked: 69 times

Re: How to run Java program in F96-CE4?

Post by mow9902 »

I'd be interested to see if it works the same for other users of F96-CE4. Did you try it?

User avatar
mikewalsh
Moderator
Posts: 6518
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 993 times
Been thanked: 2170 times

Re: How to run Java program in F96-CE4?

Post by mikewalsh »

@mow9902 / @rockedge :-

I'm kinda partway there. I have a pair of external "current" builds of Java, sym-linked into every Pup's /opt (depending on arch). Hadn't thought of the other thing you mentioned, about the link to /java/bin/java.

I'll have to give that a try; I'm ALL for automation wherever possible, 'cos that's what computers are about, aren't they?

Do I take it you keep all your Java apps in ~/my-applications/bin?

Mike. :thumbup:

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: How to run Java program in F96-CE4?

Post by rockedge »

Do I take it you keep all your Java apps in ~/my-applications/bin?

Yes I tend to use ~/my-applications for the Java applications themselves. :thumbup:

User avatar
mikewalsh
Moderator
Posts: 6518
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 993 times
Been thanked: 2170 times

Re: How to run Java program in F96-CE4?

Post by mikewalsh »

rockedge wrote: Thu Jan 16, 2025 12:42 pm

Do I take it you keep all your Java apps in ~/my-applications/bin?

Yes I tend to use ~/my-applications/bin for the Java applications themselves. :thumbup:

@rockedge :-

Mm. That's the difference between us, y'see. I prefer slightly more manual control over things..! :)

I just 'install' Java apps in the normal way, though from time to time intermediate scripts are needed for 'cd'-ing into the app directory. That's always been a fact of life with Java; summat to do with the way the apps are coded to function, I guess......and where they tend to look for stuff.

I have external set-ups for YAD, ffmpeg, Fred's rshift tray utility AND Java. Each has scripts set-up to give me a Menu entry for a wee 'linker' GUI that lets me link OR unlink any of these from the system at any time. Like this:-

Image

Just personal choice. I like my GUIs; what can I say? :D :D

Mike. ;)

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: How to run Java program in F96-CE4?

Post by rockedge »

I'd be interested to see if it works the same for other users of F96-CE4. Did you try it?

Yes!! I did as you described but only symlinked from /mnt/sdc1/jdk-23.0.1/bin/java location to /root/my-applications/bin/java and it works well.

mow9902
Posts: 205
Joined: Fri Jul 24, 2020 11:57 pm
Has thanked: 17 times
Been thanked: 69 times

Re: How to run Java program in F96-CE4?

Post by mow9902 »

@rockedge
Glad to hear it works for others as well. Makes it real simple to upgrade JRE when required, and keeps JRE programs wherever you want.

@mikewalsh
No - actually, I keep all of my applications (including java apps) in the ~/my-applications directory. In the ~/my-applications/bin directory I only keep extra executables which aren't already provided for some reason, or if I want to 'replace/ the provided version with a different version by replacing the provided version with a symlink to my version in ~/my-applications/bin

User avatar
rockedge
Site Admin
Posts: 7021
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3147 times
Been thanked: 2933 times
Contact:

Re: How to run Java program in F96-CE4?

Post by rockedge »

@mikewalsh
I meant also ~/my-applications not the /bin for the java applications themselves.

I updated the previous post to reflect that

User avatar
Jasper
Posts: 1821
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 895 times
Been thanked: 384 times

Re: How to run Java program in F96-CE4?

Post by Jasper »

@vtpup

Have you resolved your issue?

Post Reply

Return to “Beginners Help”