Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 13:17
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
JRE/JDK JAVA PETs/SFSs issues in Puppy <RE-OPENED>
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [42 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
musher0


Joined: 04 Jan 2009
Posts: 4345
Location: Gatineau (Qc), Canada

PostPosted: Sun 29 Apr 2012, 21:32    Post subject:  

Hello, gcmartin.

What you say is difficult for me to grasp, because I do not have the problem. (See att. 1) As you can see, my Puppy and my machine are not recent.

Off the top of my head I would say that it is a path problem. What does your console output when you type:
Code:

echo $PATH
echo $LD_LIBRARY_PATH
? (See attch. 2)

Every java user should have a profile.local file in /etc with this at the end of it:

Code:
# /etc/profile.local
#
### some entries here, usually.
#
PATH=/mnt/home/java/jre1.7.0_03/bin:$PATH
LD_LIBRARY_PATH=/mnt/home/java/jre1.7.0_03/lib:$LD_LIBRARY_PATH


(Please modify my "/mnt/home/java/jre1.7.0_03" with the proper location where your java is.
"/opt/java/jre<version number>" is the most likely place your java would be installed.)

If your Puppy doesn't recognize the java you have with the above code, I don't know what will... Path definitions work even in Windows! Laughing

Let's forget about java pets, PPM's and sfs's for a minute. It does not really matter which depot you get your java from and in which form. Even if java was embedded in Puppy, if it was not referenced in the PATHs in a manner similar to the above, it would not be found -- neither by Puppy or any system...

At some point, I had the problem too. No java program would launch... until I typed in the proper java paths at the proper place.

Best I can do... Good luck!
java-in-path.jpg
 Description   
 Filesize   12.88 KB
 Viewed   790 Time(s)

java-in-path.jpg

java-version.jpg
 Description   
 Filesize   20.22 KB
 Viewed   819 Time(s)

java-version.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Mon 30 Apr 2012, 18:49; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4345
Location: Gatineau (Qc), Canada

PostPosted: Sun 29 Apr 2012, 21:33    Post subject:  

Double post, sorry about that.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Mon 30 Apr 2012, 18:50; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 30 Apr 2012, 09:58    Post subject: LupuPlusLibre 5.2.8.005-2  

gcmartin wrote:
Problem #2
This problem I have incurred with the latest versions of Playdayz's PUPs is that when the system is booting using the ISO generated live media (CD/DVD), when one opens a teminal, types "java -version" the system does NOT KNOW ABOUT JAVA!

Have you tried the most recent LupuPlusLibre 5.2.8.005-2?
http://www.murga-linux.com/puppy/viewtopic.php?p=622054#622054

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 30 Apr 2012, 10:05    Post subject: JAVA environment settings  

gcmartin wrote:
I feel that Shinobar offer a solution, but, that introduces a very specialized installation process that is outside of the PPM process. SFSs are good solutions but the REPOs in Linux still are the tools for installation of subsystems and applications, traditionally.l

No matter PET or SFS, need some knowledge for package builders. I have add some comment at my topic.
Hope package builders look in my package. Its the open source world.
  1. The environment variables are set by the script /etc/profile.d/java.
  2. Mime settings for ROX-Filer is under /etc/xdg/rox.sorceforge.net/MIME-types, /usr/local/apps/ROX-Filer/ROX/MIME
  3. Additional font setting at /usr/java/jre*/lib/fonts/fallback (link to /usr/share/fonts/default/TTF).

http://www.murga-linux.com/puppy/viewtopic.php?t=61287

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
stiginge


Joined: 22 Mar 2007
Posts: 420
Location: Kerry, Ireland

PostPosted: Mon 11 Mar 2013, 12:57    Post subject:  

Why can't I get the routemap here https://www.ryanair.com/ie/cheap-flight-destinations to work? I'm guessing its a java issue, I'm running java 1.7.0-09-b05 on 529full.
_________________
Buy silver, crash JPMorgan
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 4054
Location: World_Hub

PostPosted: Mon 11 Mar 2013, 13:01    Post subject:  

WOW! Cause they're run'n that SilverLight garbage..
Back to top
View user's profile Send private message 
stiginge


Joined: 22 Mar 2007
Posts: 420
Location: Kerry, Ireland

PostPosted: Mon 11 Mar 2013, 14:45    Post subject:  

Semme wrote:
WOW! Cause they're run'n that SilverLight garbage..


http://www.go-mono.com/moonlight doesnt work

_________________
Buy silver, crash JPMorgan
Back to top
View user's profile Send private message 
Hogweed

Joined: 12 Feb 2011
Posts: 96

PostPosted: Mon 11 Mar 2013, 15:01    Post subject:  

I did have Moonlight (Linux variant of Silverlight) working on Lupu. Worked well for all but encrypted streams which it didn't support. Then Firefox disabled the plugin as not compatible. I used a Firefox addon to over-ride the version checking and it again worked. Then Firefox blacklisted the version check over-ride addon and it stopped working again. Kept an old browser around just to view Silverlight but haven't found the need to use it for ages.

Note: I had to use Moonlight 4 Preview Edition to view most Silverlight apps. Version 2.x is no use for most things. Development was stopped before Moonlight 4 made it to final release but "Preview Edition" is perfectly usable.

Bottom line though is that it is possible to view most non-DRM Silverlight stuff on Puppy but you will have a fight on your hands Starting with getting the download server to respond as has been noted above.
Back to top
View user's profile Send private message 
stiginge


Joined: 22 Mar 2007
Posts: 420
Location: Kerry, Ireland

PostPosted: Mon 11 Mar 2013, 15:11    Post subject:  

I was wondering if I updated my java version, would that work?
_________________
Buy silver, crash JPMorgan
Back to top
View user's profile Send private message 
Hogweed

Joined: 12 Feb 2011
Posts: 96

PostPosted: Mon 11 Mar 2013, 15:17    Post subject:  

stiginge wrote:
I was wondering if I updated my java version, would that work?


No. Java and Silverlight are completely unrelated. Silverlight was really Microsoft's (incompatible) version of "Flash".

However you should always update Java to latest version as otherwise it is just one large security hole into your box - and that hole gets bigger the more outdated it is. There have been successful attacks against Linux (and Mac) systems via the Java web plugin.
Back to top
View user's profile Send private message 
stiginge


Joined: 22 Mar 2007
Posts: 420
Location: Kerry, Ireland

PostPosted: Mon 11 Mar 2013, 15:23    Post subject:  

Hogweed wrote:
stiginge wrote:
I was wondering if I updated my java version, would that work?


No. Java and Silverlight are completely unrelated. Silverlight was really Microsoft's (incompatible) version of "Flash".

However you should always update Java to latest version as otherwise it is just one large security hole into your box - and that hole gets bigger the more outdated it is. There have been successful attacks against Linux (and Mac) systems via the Java web plugin.


Unfortunately much of the advice semme provides is erroneous Rolling Eyes

How do I go about updating my java?

_________________
Buy silver, crash JPMorgan
Back to top
View user's profile Send private message 
Hogweed

Joined: 12 Feb 2011
Posts: 96

PostPosted: Mon 11 Mar 2013, 15:40    Post subject:  

To get the official full package go to https://www.java.com/en/download/manual.jsp If there's a PET or SFS for the latest version then you can use that but I don't think there is yet.

And download the Linux RPM version then just click on it and let Puppy install it. You will then have to link the plugin to the browser plugin direcory which is normally /usr/lib/mozilla/plugins - delete the existing libnpjp2.so from that directory and link the version in /usr/java/jre1.7.0_17/lib/i386/libnpjp2.so in its place. That's the current Java version as of writing. If you drag the file from one folder to another select Link relative as the copy option.

If you use command line Java you might want to modify PATH or link java binary to /usr/local/bin/ directory as well.

Last edited by Hogweed on Mon 11 Mar 2013, 15:53; edited 1 time in total
Back to top
View user's profile Send private message 
stiginge


Joined: 22 Mar 2007
Posts: 420
Location: Kerry, Ireland

PostPosted: Mon 11 Mar 2013, 15:49    Post subject:  

hey Hogweed, I've got the latest java (1.7.0) which should be good enough to run this website, however its still not downloading/running for me here
_________________
Buy silver, crash JPMorgan
Back to top
View user's profile Send private message 
Hogweed

Joined: 12 Feb 2011
Posts: 96

PostPosted: Mon 11 Mar 2013, 15:58    Post subject:  

stiginge wrote:
hey Hogweed, I've got the latest java (1.7.0) which should be good enough to run this website, however its still not downloading/running for me here


As I said above you cannot play a Silverlight application with Java. It will never ever work. Also Java 1.7.0 is old and dangerous. Latest version identifies itself as,

sh-3.00# java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode)
sh-3.00#

===
So the only way you might get the Ryan Air app to display is via Moonlight and that's a real pain as I also said above. I have no idea why Ryan Air went with Silverlight. Probably just to annoy non Microsoft users.
Back to top
View user's profile Send private message 
James C


Joined: 26 Mar 2009
Posts: 5939
Location: Kentucky

PostPosted: Mon 11 Mar 2013, 16:03    Post subject:  

Just to confirm that the problem is Silverlight....
Personally never had much luck with Moonlight so good luck.
silverlight.JPG
 Description   
 Filesize   42.09 KB
 Viewed   1360 Time(s)

silverlight.JPG

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [42 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0860s ][ Queries: 12 (0.0043s) ][ GZIP on ]