Java for puppy ?

News, happenings
Message
Author
doc on guest account

Re: Hope everything ist good now - take your time...

#21 Post by doc on guest account »

Just tried to install Java under 1.0.5 and received this error:
ERROR: /root//jre1.5.0_04/bin/java not found

How do I fix this, please?

Thanks! doc

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#22 Post by MU »

doc, what java?
What did you do to install it?

I think for "normal endusers" it would be best, to install the SUN jre with the dotpupdownloader or using the Wiki.

Installation works straight, and most programs work with it, even GL-based ones like Art of Illusion.
(but with 80 MB it is real huge, so efforts to get other free Java-versions running are very interesting).

Mark

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#23 Post by GuestToo »

if you are using my dotpup to install Java, the latest version of Sun Java on their manual download page is 1.5.0_5

i haven't updated my dotpup to the newest version

my dotpup doesn't do much ... it downloads the installer from Sun, automatically runs it, and sets up a few symlinks and environmental variables

the package was created before /etc/profile.local was sourced by rc.local, but versions of Puppy earlier than 1.0.5 don't use profile.local

to run Java programs (as opposed to running the Java browser plugin), i put something like:

export JAVA_HOME=/root/jre1.5.0_04
export PATH=$PATH:$JAVA_HOME/bin


in /etc/profile ... but this will be removed if you upgrade to a newer version of Puppy ... putting it in profile.local should work better, because rc.local should not be overwritten when Puppy upgrades

i have thought of setting the variables in a wrapper script, but i'm not sure if the browser plugion requires the variables to be set or not, and besides, i would probably have to provide wrappers for the other binaries in JAVA_HOME/bin/

so i (or somebody) will have to make a dotpup that works properly with Puppy 1.0.6

it's actually not difficult to install Java ... just download and run the installer from Sun (you have the make it executable) ... make a symlink for the browser plugin ... setup JAVA_HOME in /etc/profile.local

i don't know how well the smaller alternative Javas work, i haven't tried them

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#24 Post by MU »

I installed the SDK a week ago, and the SUN sfx-archive requires another version of tail... wait *searching* ... there it is:
http://www.murga.org/%7Epuppy/viewtopic ... light=java

Mark

the smaller versions here will run http://jpatch.sf.net for example without the editor-area (where you model 3D-elements), so it is not usable. For Texteditors it seems to work.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#25 Post by MU »

GNU Classpath 0.19 released.

They say it covers 96% of the public interfaces of JDK 1.4

33381 from 34262 Tests run without error.

Info deutsch: http://www.pro-linux.de/news/2005/8848.html
Info english: http://www.gnu.org/software/classpath/

Mark

User avatar
puppian
Posts: 537
Joined: Tue 19 Jul 2005, 03:58
Location: PuppyLand
Contact:

#26 Post by puppian »

Will this browser plugin work in Puppy?

http://www.nongnu.org/gcjwebplugin/

gcjwebplugin is a plugin for Mozilla and other web browsers for the execution of Java
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005

Darkbee
Posts: 34
Joined: Mon 27 Nov 2006, 17:46
Location: Upstate NY, USA
Contact:

#27 Post by Darkbee »

I'm having the same issue as PeterSieg:
Found 1 system error:

*** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "java.lang" in:
I just downloaded the java_jikescairo-1: java PETget package, which I'm assuming is the same one as in this thread (at least the latest version). I'm running Puppy 2.13

Is anyone else having this issue? Has it been resolved? Does anyone know how I might go about resolving it?

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#28 Post by rarsa »

I've always used the java package from Sun and never had this issue.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#29 Post by Lobster »

this is the full java from Sun
http://puppylinux.org/wikka/GuestTooJavaInstaller

the one you mention is cut down and not usually recomended
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Darkbee
Posts: 34
Joined: Mon 27 Nov 2006, 17:46
Location: Upstate NY, USA
Contact:

#30 Post by Darkbee »

Ok thanks, I'll use this instead. I choose the other one simply because I don't have a lot a space left on my small 1GB partition.

How big in the Sun package, < 100MB?

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#31 Post by Lobster »

# You need about 100 megs of free space
# The Sun Java installer is 25 MB
# The Java folder will be about 85 MB
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#32 Post by GuestToo »

the latest version of Sun Java is 1.5.0_10

you can download it here:
http://www.java.com/en/download/manual.jsp

Linux (self-extracting file)
(filesize: 16.28 MB)

put the file where you want to extract it ... make the file executable, run it in an rxvt console ... type yes when it asks if you agree to the license and it will extract itself

make a symlink to the plugin folder

to run programs, you need to put something like this in /etc/profile.local:

export JAVA_HOME=/mnt/hda15/jre
export PATH=$PATH:$JAVA_HOME/bin

if your Java folder is /mnt/hda15/jre ... change it to the correct path

Darkbee
Posts: 34
Joined: Mon 27 Nov 2006, 17:46
Location: Upstate NY, USA
Contact:

#33 Post by Darkbee »

Should I be asking 'noob' questions here?

Where is the most logical place to put(extract) it? (since I don't have the greatest understanding of Linux file hierarchy) Did your export example imply that I would probably want to put it in /jre/ from the root directory? Does the Java extraction create a "jre" directory or do I need to make one first (assuming I want to put it in 'jre')?

Where am I Symlinking from? I don't quite understand the purpose of the symlink.

Sorry for these obvious questions, I just don't want to break anything.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#34 Post by muggins »

if you installed java to, say, / , then you would have to symlink /jre1xx_xx to /usr/local and /jre1xx_xx/bin/java to /usr/local/bin (change xx_xx to whatever version)

if instead you installed jre1xx_xx to /usr/local , you still need to do:

Code: Select all

 ln -s /usr/local/jre1xx_xx/bin/java /usr/local/bin
you then need to add a couple of lines, as mentioned by G2, to /etc/profile. in my case:
export JAVA_HOME=/jre1.5.0_04
export PATH=$PATH:$JAVA_HOME/bin
Last edited by muggins on Sat 03 Feb 2007, 03:45, edited 1 time in total.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#35 Post by muggins »

i forgot to mention you should probably also symlink the java plugin to the plugin folder of your mozilla/seamonkey/firefox/swiftfox browser.

in my case i'm only using swiftfox & it's:

Code: Select all

ln -s /jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so /swiftfox/plugins

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#36 Post by edoc »

This Java-based live Cam in Jamaica does not work:

http://www.seacrets.com/webcam/index.cfm?cam=8

I am running Seamonkey w/Puppy 2.13 and Java works fine on other sites and with
various Java apps.

Can anyone spot the problem on their end?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

simon_j
Posts: 1
Joined: Tue 02 Dec 2008, 21:27

Installing Java, is there an easy way?

#37 Post by simon_j »

Dear all

I am brand new to Puppy 4.01 and am desperately searching for an easy way to install Java.

I found a thread that showed a "hard" way to do it....I'm afraid its all beyond me.

Is there an easy way to install the latest version of java??....using the Pet package manager?

Thanking you all in advance

Simon

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#38 Post by edoc »

Puppy Forum member Sit Heel Speak says in the thread below that he will be posting some new directions shortly:

http://www.murga-linux.com/puppy/viewto ... 992#253992

Forum member BEEM says he has done it already but he's one of the experts for whom all of the "hoops" seem to be easy. :)
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#39 Post by Lobster »

problem with servers - BUT this might be the pet you need
http://www.murga-linux.com/puppy/viewto ... 331#205331

new server file list here
http://www.puppylinux.asia/
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#40 Post by edoc »

Awesome!

Thanks!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply