Re: [PLUG] Java errors

2023-10-06 Thread John Jason Jordan
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  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 
>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  dijo:
>>  
>> >   Exception in thread "main" java.lang.NoClassDefFoundError:
>> >   sun.misc.Launcher at
>> >   userInterface.Start.(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  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 
>> >>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 Java
>> >>> Website.
>> >>>
>> >>> Michael Ewan  dijo:  
>> >>> >Your start script may be calling for a specific path rather
>> >>> >than a relative path in your 

Re: [PLUG] Java errors

2023-10-06 Thread Michael Ewan
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  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  dijo:
>
> >   Exception in thread "main" java.lang.NoClassDefFoundError:
> >   sun.misc.Launcher at
> >   userInterface.Start.(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  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 
> >>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 Java
> >>> Website.
> >>>
> >>> Michael Ewan  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'
> >>>
> >>>
>


Re: [PLUG] Java errors

2023-10-06 Thread John Jason Jordan
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  dijo:

>   Exception in thread "main" java.lang.NoClassDefFoundError:
>   sun.misc.Launcher at
>   userInterface.Start.(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  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 
>>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 Java
>>> Website.
>>>
>>> Michael Ewan  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'
>>>
>>>


Re: [PLUG] Java errors

2023-10-02 Thread John Jason Jordan
This little app is currently running fine on Xubuntu 22.04.3, as it
always has, but the Java versions installed there are somewhat
different. I decided to experiment, and for my fist venture I
uninstalled Oracle JDK 21. Afterwards the error message changed:

Exception in thread "main" java.lang.NoClassDefFoundError:
sun.misc.Launcher at userInterface.Start.(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  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 
>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 Java Website.
>>
>> Michael Ewan  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'  
>>
>>  


Re: [PLUG] Java errors

2023-10-01 Thread Michael Ewan
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  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 Java Website.
>
> Michael Ewan  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'
>
>


Re: [PLUG] Java errors

2023-09-30 Thread John Jason Jordan
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 Java Website.

Michael Ewan  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'



Re: [PLUG] Java errors

2023-09-30 Thread Michael Ewan
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.

On Sat, Sep 30, 2023 at 2:13 PM John Jason Jordan  wrote:

> I have a little application for drawing phrase structure trees that was
> written in Java, in roughly 2013. The author included a launch script,
> and it runs fine on Xubuntu 22.04.3, but on Sparky Linux I get:
>
>$ ./TreeForm_launch_script
>Error: could not open `/usr/lib/jvm/jdk-21-oracle-x64/lib/jvm.cfg'
>
> There is a document, also written in 2013, stating that it needed JRE
> 1.42 or later. Such is not available for SparkyLinux, but it wasn't
> available in Xubuntu either. The default in SparkyLinux is Debian 17,
> and I installed jre-8u381-linux-x64 and both jdk17 and jdk21, all
> downloaded from Oracle. I assume they are 'installed' correctly,
> because LibreOffice needs a JRE for some functions, and it has a
> utility to choose which java it is supposed to use; and all four appear
> in the list of available javas.
>
> I have no idea what the above error message means, and less than that
> about how to fix it. I know zero about such matters. Can someone hit me
> over the head with a clue?
>