Didn't make any difference. The net came up with other possibilities (swing?), but so far I haven't hit on one that makes any difference. The window size is also a bit too big, but my attempts there have also failed.
Michael Ewan <michaelewa...@gmail.com> dijo: >Try removing the -Dsun.java2d.uiScale=3 option and let the JVM choose. >On Fri, Oct 6, 2023 at 1:57 AM John Jason Jordan <joh...@gmx.com> >wrote: > >> SUCCESS!! >> >> This command did the job: >> >> PATH=/usr/java/jre1.8.0_381/bin/ >> >> followed by the launch script. >> >> The above path is for Oracle Java 8 which I downloaded and installed >> manually myself. I could probably just as easily have used openjdk17 >> or Oracle 17, both of which are also installed, but with Oracle 8 >> JRE I knew where it was and with the other two I'd have to figure it >> out. >> >> Now my only question is, does that PATH command create a permanent >> path, or will it go away, like after a reboot. Never mind. I just >> added it to the launch script, which now says: >> >> #!/bin/bash >> cd /home/jjj/Software/TreeForm103/TreeForm/ >> PATH=/usr/java/jre1.8.0_381/bin/ >> java -Dsun.java2d.uiScale=3 -Xmx256m -Xms64m -jar >> TreeForm.jar >> >> The program runs perfectly, except that the fonts are about 1mm. I >> can still use the program because I know what the text says, even if >> I can no longer really read it. I added the >> '-Dsun.java2d.uiScale=3,' which was suggested to me as a way to >> increase the size of fonts, but in this case it had no effect. The >> two -Xm... comments were in the original launch scrip written by the >> developer. I don't know what they do, but leaving them out makes no >> difference. >> >> If anyone can suggest alternatives for the -Dsun... option to >> increase font sizes in Java applications, I'd be happy to do some >> experimenting. >> >> >> On Mon, 2 Oct 2023 13:35:05 -0700 >> John Jason Jordan <joh...@gmx.com> dijo: >> >> > Exception in thread "main" java.lang.NoClassDefFoundError: >> > sun.misc.Launcher at >> > userInterface.Start.<clinit>(Start.java:54) >> > >> >I get the same error message whether I run from the launch script >> >with its two options or straight from the command line without them. >> > >> >The only way I know how to tell what versions of Java are installed >> >is to launch LibreOffice Writer and go to Tools > Options > >> >Advanced, where it displays the versions of Java that LO found. It >> >now lists Oracle 8, Oracle 17, and Debian 17, where it used to >> >include Oracle 21 as well. There's probably a faster, simpler way >> >to get a list of installed Javas from the command line, but I don't >> >know it. For testing it might also be useful if I could specify >> >which of the installed Javas the app is supposed to use. As it is, >> >it just picks one based on who knows what criteria. >> > >> >In Xubuntu it appears that the installed Javas include >> >JB-Java-jdk8.d. On that the net leads me to openjdk8, and more >> >links. The TreeForm app there just runs, and I can't tell what Java >> >it's actually using. >> > >> > >> >On Sun, 1 Oct 2023 10:32:59 -0700 >> >Michael Ewan <michaelewa...@gmail.com> dijo: >> > >> >>Unfortunately it sounds like there is a static string in the Java >> >>source or possibly in the jar file. >> >>You can disassemble the jar file with the "jar" command from the >> >>Java runtime. >> >> >> >> >> >>On Sat, Sep 30, 2023 at 6:31 PM John Jason Jordan <joh...@gmx.com> >> >>wrote: >> >> >> >>> I opened the launch script in a text editor and all it says is >> >>> >> >>> cd /home/jjj/Software/TreeForm103/TreeForm/ >> >>> java -Xmx256m -Xms64m -jar TreeForm.jar >> >>> >> >>> With the command line in ~/Software/TreeForm103/TreeForm I just >> >>> copied the above line and ran it, and I got the same error >> >>> message. Then I deleted the -Xm... options and ran it bare, and >> >>> again I got the same error message. It might be useful to know >> >>> what those options do. Window size, maybe? In any event, they >> >>> don't seem related to the error message. >> >>> >> >>> Checking in Synaptic I have had OpenJDK installed the whole >> >>> time. Is there a way to tell the java -jar command which java to >> >>> use? As for paths, do you mean the path to the java? I know >> >>> where the Oracle Java 8 is located, because there were 'install' >> >>> instructions telling me to put it in /usr/java/jre1.8.0_381, so >> >>> that's where I put it. It must be correct because LibreOffice >> >>> found it and listed it as available. I don't know where the >> >>> others are. >> >>> >> >>> There is a Help file with TreeForm, which says at the top: >> >>> >> >>> To install this software in your computer, unzip the >> >>> folder in any folder of your choosing. >> >>> This software requires Java 1.4.2 or higher to run. The >> >>> Java runtime can be downloaded from the <link>Java >> >>> Website.</link> >> >>> >> >>> Michael Ewan <michaelewa...@gmail.com> dijo: >> >>> >Your start script may be calling for a specific path rather >> >>> >than a relative path in your JRE. >> >>> >Also try using OpenJDK instead of Oracle Java. Do a text search >> >>> >in your source code for that path. >> >>> >> >>> >> $ ./TreeForm_launch_script >> >>> >> Error: could not open >> >>> >> `/usr/lib/jvm/jdk-21-oracle-x64/lib/jvm.cfg' >> >>> >> >>> >>