Choose style:

Author Topic: [SOLVED] Help with Java app that won't run  (Read 1840 times)

0 Members and 1 Guest are viewing this topic.

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
[SOLVED] Help with Java app that won't run
« on: June 25, 2016, 03:47:56 am »
I'm trying to run an app called Bible Desktop.  It requires Java to run.  I've installed openjdk -- my usual approach when running Java apps.  I'm using the new Peppermint 7, just downloaded and installed.

I can't figure out how to attach the error file, so I've uploaded it to dropbox.  Here's the link:

https://www.dropbox.com/s/ovejjnksd06biet/hs_err_pid3527.log?dl=0

Can someone help me to get beyond this problem?

Thanks.

« Last Edit: June 28, 2016, 02:29:21 am by jeffneedle »

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #1 on: June 25, 2016, 03:53:41 am »
I should add that I've installed java, according to the post in this forum, and also icedtea-plugin, and rebooted.  Same problem.

Thanks.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1996
  • Karma: 526
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Help with Java app that won't run
« Reply #2 on: June 25, 2016, 04:30:50 am »
Hi jeffneedle,

In your error file there are a number of exceptions (simply put, an exception is a Java term for an error) that I have extracted and given below. The ClassNotFoundException indicates that either the openjdk or the icedtea-plugin is unable to find a file that is required for the program to run. This can occur when the class path for Java has not been set properly. There are other reasons as well, such as using a Java version that does not contain the class that is required.

Code: [Select]
Internal exceptions (8 events):
Event: 0.406 Thread 0x00007f8938011800 Exception <a 'java/lang/ClassNotFoundException': sun/awt/resources/awtProvider> (0x00000000c77c7ba8) thrown at [/build/openjdk-9-argm_o/openjdk-9-9~b114/src/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 224]
Event: 0.417 Thread 0x00007f8938011800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c77fd748) thrown at [/build/openjdk-9-argm_o/openjdk-9-9~b114/src/hotspot/src/share/vm/prims/jni.cpp, line 605]
Event: 0.418 Thread 0x00007f8938011800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c7605750) thrown at [/build/openjdk-9-argm_o/openjdk-9-9~b114/src/hotspot/src/share/vm/prims/jni.cpp, line 605]
Event: 0.423 Thread 0x00007f8938011800 Exception <a 'java/io/FileNotFoundException'> (0x00000000c7617650) thrown at [/build/openjdk-9-argm_o/openjdk-9-9~b114/src/hotspot/src/share/vm/prims/jni.cpp, line 605]
Event: 0.560 Thread 0x00007f89383f1800 Exception <a 'java/lang/ClassNotFoundException': com/sun/swing/internal/plaf/metal/resources/metalProvider> (0x00000000c72b3538) thrown at [/build/openjdk-9-argm_o/openjdk-9-9~b114/src/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 224]
Event: 0.564 Thread 0x00007f89383f1800 Exception <a 'java/lang/ClassNotFoundException': com/sun/swing/internal/plaf/basic/resources/basicProvider> (0x00000000c7102bb8) thrown at [/build/openjdk-9-argm_o/openjdk-9-9~b114/src/hotspot/src/share/vm/classfile/systemDictionary.cpp, line 224]
Event: 0.570 Thread 0x00007f89383f1800 Implicit null exception at 0x00007f8929723938 to 0x00007f89297239c6
Event: 0.596 Thread 0x00007f89383f1800 Implicit null exception at 0x00007f892972360f to 0x00007f8929723679

You can try using Oracle's Java or look to see if there is a more up-to-date version of Bible Desktop. At least those are the two options that initially come to mind (in my simple little mind, anyway  :P ).

Also, could you please provide a link to the instructions that you found on the Peppermint forum for installing Java? Also, do other Java programs run properly?

Regards,

-- Slim
« Last Edit: June 25, 2016, 04:33:00 am by Slim.Fatz »
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #3 on: June 25, 2016, 02:25:39 pm »
Here's the link to the instructions:

https://forum.peppermintos.com/index.php/topic,622.msg5132.html#msg5132

I have the latest version of Bible Desktop.  Don't know what to do beyond that.

Thanks.
« Last Edit: June 25, 2016, 02:47:24 pm by AndyInMokum, Reason: Inserting hyperlink »

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #4 on: June 25, 2016, 02:36:34 pm »
Sorry, didn't answer the other part of the question.  I haven't yet tried to run other Java programs.  I'll get a few and give them a try.

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #5 on: June 25, 2016, 02:39:37 pm »
I just downloaded another Java-based app.  Same problem.

Oy.

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1996
  • Karma: 526
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Help with Java app that won't run
« Reply #6 on: June 25, 2016, 04:04:21 pm »
Hi jeffneedle,

Those instructions are not very easy to follow. ??? So did you install OpenJDK or the Oracle-Java? Also, since my hunch is that your Java class path is not set or is incorrect: please open a terminal session with the keyboard shortcut <Control><Alt><t> and then type this into the terminal:

Code: [Select]
gedit /etc/environment
Then copy the contents of the file and post it here in a reply (don't forget to enclose the output in code tags by highlighting the entry in your reply and then clicking on the button above with the # symbol on it).

Regards,

-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Help with Java app that won't run
« Reply #7 on: June 25, 2016, 04:45:57 pm »
Install Oracle Java 9

Open a terminal and run:
Code: [Select]
sudo add-apt-repository ppa:webupd8team/java
then
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get install oracle-java9-installer
when prompted, use the "Tab" key to select "Yes" and hit enter to accept the licence.

when it finishes installing, run:
Code: [Select]
sudo update-alternatives --config java
and make sure
/usr/lib/jvm/java-9-oracle/bin/java
is the one that's selected.

Now try your BibleDesktop.sh file again.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #8 on: June 25, 2016, 05:12:46 pm »
Thanks.  I'll give it  a try.  If it doesn't work, I'll try another bible program that doesn't require Java.  I don't like it as much as I like Bible Desktop, but it will suffice.

I appreciate the help.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Help with Java app that won't run
« Reply #9 on: June 25, 2016, 10:31:20 pm »
It definitely works with Oracle Java 9 .. I tested it with the above instructions ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #10 on: June 25, 2016, 11:33:14 pm »
Great news -- thanks!

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: Help with Java app that won't run
« Reply #11 on: June 28, 2016, 02:28:54 am »
Sorry to be so long getting back on this.  Had a bad fall, been laid up.  Just followed all the instructions, and I'm in business!  Thanks so much for all your good help.  It is truly appreciated.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: [SOLVED] Help with Java app that won't run
« Reply #12 on: June 28, 2016, 07:52:28 am »
You're most welcome :)

Hope you're okay.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jeffneedle

  • Newly Subscribed
  • *
  • Posts: 13
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 6.0
Re: [SOLVED] Help with Java app that won't run
« Reply #13 on: June 28, 2016, 01:53:49 pm »
Thanks so much.  Getting better.  I'm a senior, and falls really take their toll on us.  Thanks again.