Posts: 903
plvera
Joined: 11 Oct 2008
#1
I want to install jdk6 to get a plugin working in an application (ImageJ). This particular plugin needs Java 1.6 and I already got it to work in windows and I'm trying to get it to work in linux.

I found instructions on how to create a debian java package from the Debian website at:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.debian-administration.org/articles/142"
linktext was:"http://www.debian-administration.org/articles/142"
====================================
" onclick="window.open(this.href);return false

and I installed fakeroot and java-package as the website recommended. However, when I try to create a debian package using fakeroot I get the following message:

pedro@mepis1:~/Software$ fakeroot make-jpkg jdk-6u16-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.EoxPj6yYt3
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh

Detected Debian build architecture: i386
Detected Debian GNU type: i486-linux-gnu

No matching plugin was found.
Removing temporary directory: done

Any suggestions on how to get this to work?

thanks
Pedro

P.S. Fakeroot is not working, but I suspect the problem lies somewhere else. I found that I had already installed jdk1.6 (from another application). However, I still can't get the app I want to work with it. I have to find a way to make jdk 1.6 available to other apps.

thaniks.
Last edited by plvera on 24 Sep 2009, 09:56, edited 1 time in total.
Posts: 903
plvera
Joined: 11 Oct 2008
#2
Solved the problem, not by getting fakeroot to work, but by downloading a newer version of the app that I did want to work, with the appropriate java version bundled in. Now the plug in works fine.

Pedro
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Durn Pedro. Just saw your thread. I have Java 6u16 running in Opera 10 and Iceweasel 3.0.14.

What I did was download the non rpm self extracting pkg to my Desktop and made it executable .

Code: Select all

#sux
enter

Code: Select all

# cd Desktop
enter

Code: Select all

#chmod a+x jre-6u16-linux-i586.bin
enter

Then I checked to make sure it was executable

Code: Select all

#ls -l
enter
then I execute it

Code: Select all

./jre-6u16-linux-i586.bin
enter
Then I say yes to license agreement.

I end up with a Java folder on Desktop next to self extractor file. I trash the self extractor file.
Next I do

Code: Select all

#pcmanfm


I cut and paste the Java folder from Desktop to /opt folder.

Then I close PCManFM and Terminal. I prefer using rox for making symlinks.

I open Rox and go to show hidden files in /home and pick out /home/.mozilla
I open up the .mozilla folder. I right click on empty space in Rox and make a new directory/folder called plugins. After folder is made . I go to my /opt folder and open it. There is my jre1.60_16 folder. I open it Up. I then open plugin folder . I then open i386 folder. I then open N7 folder. I right click
lavajavaplugin_ojis.so and select link. A small window opens. I will use it to drag and drop the image in it in a second. I open up another Rox file Window.

I tell it to show hidden files and go to /home/.mozilla/plugins folder I just made earlier. I open up the plugins folder. I then drag and drop that image that is in the other link window I mentioned into plugins. I now have a symlink to plugins in /opt/java/plugin/i386/lavajavaplugin_ojis.so in Iceweasel.

I tested this at javas site and it passed the java test. I had no previous java installed on my browser or Antix Install. For Opera 10 it was a lot simpler.
# Go to Tools > Preferences > Advanced > Content.
#

Click the"Java options" button. If this button is dimmed, first check the"Enable Java" option.
#

Click the"Choose" button for the"Java path" field.
#

Navigate to the Java directory and click"OK". The path you are looking for is the directory of your Java installation containing the files libjava.so and libawt.so. On the command line, type:
find / -name libjava.so 2> /dev/null

For example, on a Debian system, the path is:
/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386
#

Click the"Validate Java path" button. If you get an error message, try again with a different path.
#

Click"OK" to save your changes and exit the Java dialog.
#

Click"OK" to save your changes and exit the Preferences dialog.
I know you already got this going Pedro. I just figured I would post how I did it in case anybody reads this. __{{emoticon}}__

Edit: forgot to mention you need to close Opera and Iceweasel and restart them before you test java at javas site.
Posts: 903
plvera
Joined: 11 Oct 2008
#4
Great instructions! Thanks for posting them, they make for a good reference.

Best,
Pedro
Posts: 609
dark-D
Joined: 02 Jun 2008
#5
if i remember well, smxi has an option to install java, am i wrong?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#6
I was refered to this thread in Mepis Lovers forum by kmathern. It is a very cool script for doing what I did in one fell swoop. I may try it out tomorrow on my Asus Netbook as I haven't installed Java yet on my AntiX SD Install yet. Its a very long one liner but does a whole hell of a lot in only one entry.




========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://mepislovers.org/forums/showthread.php?p=192967#post192967"
linktext was:"http://mepislovers.org/forums/showthrea ... post192967"
====================================
" onclick="window.open(this.href);return false
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#7
I was refered to this thread in Mepis Lovers forum by kmathern
Tested kmatherns script on my Antix 8.2 install on 8 gig external SD card on my Asus EEE PC 900. Refer to link below for details


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://mepislovers.org/forums/showthread.php?t=23203"
linktext was:"http://mepislovers.org/forums/showthread.php?t=23203"
====================================
" onclick="window.open(this.href);return false