LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-10-2012, 12:31 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
java and "app inventor" vs. Linux Mint-12 (Ubuntu 11.10)


Neither "java" nor "app inventor" are specific to any distro or even linux. Regardless, I cannot get "java" running in ways that satisfy the "app inventor" pages.
Can anyone help me sort this out?

I'm running Linux Mint-12 (Ubuntu 11.10) and have all of the various java packages installed. I'm trying to use the Chromium browser with MIT's "App Inventor" tools for building Android apps. I need something really trivial on my 'droid, and App Inventor seems a light weight approach to doing a prototype.

Thanks in advance,
~~~ 0;-Dan
 
Old 09-12-2012, 12:54 PM   #2
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Is there someone out there who can help me understand why I cannot get my browsers to pass the java tests presented by App Inventor's web pages?

I have installed the several JRE and JDK packages available in the Mint and Ubuntu repositories.
I don't get DSL Reports Tests to run java either. Since I'm running Chromium v18.0.1025.168, is there some magic to getting java to run there?

More Follow-up:
I spent some time searching Synaptic for variations on 'java' and 'plugin' and 'chromium'. I didn't find anything interesting or remotely like the file mentioned previously. Is this some new feature that demands a newer java than is available from the Mint-12 (Ubuntu 11.10) repositories?
Follow-up:
Mucking around I found a reference to chromium-javaplugin.so. I cannot find this file anywhere on my workstation. I've installed everything java from the repositories. Can anyone explain why I don't have this file? Is there a separate package that I'm missing?
Thanks in advance,
~~~ 0;-Dan

Last edited by SaintDanBert; 09-12-2012 at 01:22 PM.
 
Old 09-12-2012, 01:40 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
A Partial Solution
There is a folder /etc/alternatives that lists which programs to run under various situations when more than one program might apply. For example, it tells which music player application you want to use when you launch an MP3 file. The "lists" are actually file links to whichever library or executable runs.

It also has file:
Code:
firefox-javaplugin.so --> /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
...
mozilla-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
...
xulrunner-javaplugin.so -> /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
...
I created a sim link as follows, borrowing the target used for the other 'javaplugin' alternates:
Code:
prompt$  cd  /etc/alternatives

prompt$  sudo  ln -sf  /usr/.../libnpjp2.so  chromium-javaplugin.so
Make sure that you fill in the full path name that I was too lazy to type or paste.

After a restart for the chromium browser, I get the warning:
Java Plugin Out of Date and the browser blocks running of the stale plug-in.
I'm given the choice to run-once or update the plugin. Using run-once, the tests pass and all looks as expected.

Now I've got to discover how to update my java without breaking Mint-12. There are several postings about how the move from Java-6 to Java-7 breaks Nautilus and other parts of Mint and Ubuntu.


Follow-up:
Now I'm confused. I asked java which edition I'm running:
Code:
prompt$ java -version

java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
and it looks to be current. However, the plugin appears to be a v6 edition.

Since I get v7 to a simple java command, v7 should be the default edition, so why is the plug-in other than current? I get the following:
Code:
prompt$ locate libnpjp2.so

/usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
The only plugin I have seems to be the v6 edition. Nothing v7.


More when I solve that one.
~~~ 0;-Dan

Last edited by SaintDanBert; 09-12-2012 at 01:56 PM.
 
Old 09-12-2012, 02:33 PM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
It seemed counter intuitive, but the following worked:

Code:
prompt$ sudo apt-get install icedtea-plugin

... installer chatter ...
prompt$
The confusion comes from the fact that I continue to get v6 parts in spite of having the v7 JDK installed. (Apparently, the v7 plugin is not yet available from OracleŽ and friends.)

When I restarted Chromium after this, all worked as desired without errors or warnings or pop-ups.

Problem solved,
~~~ 0;-Dan
 
Old 09-13-2012, 08:12 PM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I apologize for not responding SaintDanBert, I myself have never gotten the icedtea plugin to work so I always just install Oracle Java using this guide here, the only thing is that you have to manually update java everytime.
https://sites.google.com/site/easylinuxtipsproject/java
http://www.oracle.com/technetwork/ja...ads/index.html
I have also had to do the commands as root because sudo fails me.

Last edited by EDDY1; 09-13-2012 at 08:14 PM.
 
Old 09-16-2012, 02:33 PM   #6
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by EDDY1 View Post
I apologize for not responding SaintDanBert, I myself have never gotten the icedtea plugin to work so I always just install Oracle Java using this guide here, the only thing is that you have to manually update java everytime.
https://sites.google.com/site/easylinuxtipsproject/java
http://www.oracle.com/technetwork/ja...ads/index.html
I have also had to do the commands as root because sudo fails me.
As you can read from my "solution" I was able to install various 'java' and 'icedtea' packages and get things working -- albeit in ways and for reasons that I don't understand.

If you used sudo apt-get install {package} I have no idea why you would have trouble unless there is a problem with the package itself. Remember, sudo {command} grants root permissions to the specified {command}. When that command is a script, each statement in the script is a command of its own and sometimes they run foul of root behavior. I find this happens when scripts redirect output to files and then process those files. Permissions and ownership often contributes to troubles doing that.

Cheers,
~~~ 0;-Dan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux People need to build a new "old-lady Mint-OS".. "Mint Julep"... Cosmicb Linux - Newbie 21 08-29-2016 05:14 PM
"Remember password" function on a desktop app (JAVA) danoc93 Programming 13 05-28-2012 11:44 AM
LXer: Comparison Test: Linux Mint 12 "Lisa" KDE vs. Netrunner 4.1 "Dryland" LXer Syndicated Linux News 0 02-10-2012 08:10 AM
"Envy" an app to aid in the setting up of your ATI or Nvidia drivers in Ubuntu Linux {BBI}Nexus{BBI} Linux - General 1 04-23-2007 06:25 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration