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 Sat 22 Sep 2018, 07:57
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
using java sfs modules
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Mon 31 Dec 2007, 16:51    Post subject:  using java sfs modules  

woof woof and happy new year!

some days ago, to install java on my frugal installation keeping my pup_save file small sized, I have downloaded java sfs module:

http://pkagfiles.net/.sfs-files-6Dn/Java-6.0.02.sfs

- moved to /home/
- restarted and added to filesystem

now, in /opt/ I have a directory named jre1.6.0_02, but clicking on any java application (like pdf tool, or font viewer in java) nothing happens!

can anyone help me?

thanks for any help
Back to top
View user's profile Send private message Visit poster's website 
bobwrit


Joined: 12 Mar 2007
Posts: 286

PostPosted: Mon 31 Dec 2007, 16:57    Post subject:  

You'll have to link the "java" executeable from the jre's bin folder to /bin and then right click on the java files and click "set run action" and then type into the box, "java".
_________________
I need help with my forum. LINK:http://www.programers.co.nr/
http://www.freewebs.com/programm/iframe.html is my gateway page...
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Mon 31 Dec 2007, 17:14    Post subject:  

first of all, thanks for your fast answer.

in /opt/jre1.6.0_02/bin/ I Have

ControlPanel
java
java_vm
javaws
jcontrol
keytool
orbd
pack200
policytool
rmid
rmiregistry
servertool
tnameserv
unpack200


I have made a simlink from java to /usr/bin/ and then setted a run action for .jar files to open with java

Quote:
java "$@"


but nothing again. Where is my error?
Back to top
View user's profile Send private message Visit poster's website 
bobwrit


Joined: 12 Mar 2007
Posts: 286

PostPosted: Mon 31 Dec 2007, 17:26    Post subject:  

should be /bin not /usr/bin
_________________
I need help with my forum. LINK:http://www.programers.co.nr/
http://www.freewebs.com/programm/iframe.html is my gateway page...
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger 
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Mon 31 Dec 2007, 17:37    Post subject:  

bobwrit wrote:
should be /bin not /usr/bin

Ah. O.K. corrected. I have made a simlink from java to /bin/ and then clicked on a jar file setted with java "$@" run action, but...nothing
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6749
Location: hobart

PostPosted: Mon 31 Dec 2007, 18:18    Post subject:  

Should be java -jar "$@"
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Mon 31 Dec 2007, 18:37    Post subject:  

muggins wrote:
Should be java -jar "$@"

setted run action java -jar "$@" for .jar files, having a simlink in /bin/ pointing to java executable in /opt/jre1.6.0_02/java clicked on a .jar file, but nothing happens. why?
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6749
Location: hobart

PostPosted: Mon 31 Dec 2007, 19:33    Post subject:  

If you migrate, to a directory containing a target .jar file, (using the commandline), and enter java -jar xxx.jar , what is the response?
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Mon 31 Dec 2007, 19:47    Post subject:  

muggins wrote:
If you migrate, to a directory containing a target .jar file, (using the commandline), and enter java -jar xxx.jar , what is the response?

response is very interesting:

Code:
# java -jar itext-1.4.jar
java: error while loading shared libraries: /opt/jre1.6.0_02/bin/../lib/i386/jli/libjli.so: invalid ELF header
#
Back to top
View user's profile Send private message Visit poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6749
Location: hobart

PostPosted: Mon 31 Dec 2007, 20:11    Post subject:  

How does your libjli.so compare with the one I've attached? If there's a discrepancy, then the .sfs file you've dloaded may have been corrupted in transit. Did you download it with a downloader that can resume broken transmission? With large downloads this is always a good idea.
libjli.so.zip
Description 
zip

 Download 
Filename  libjli.so.zip 
Filesize  17.95 KB 
Downloaded  445 Time(s) 
Back to top
View user's profile Send private message 
Dingo


Joined: 11 Dec 2007
Posts: 1435
Location: somewhere at the end of rainbow...

PostPosted: Mon 31 Dec 2007, 20:24    Post subject:  

muggins wrote:
How does your libjli.so compare with the one I've attached? If there's a discrepancy, then the .sfs file you've dloaded may have been corrupted in transit. Did you download it with a downloader that can resume broken transmission? With large downloads this is always a good idea.

I have downloaded this sfs file with the download manager of Opera. I remember that when download was at 90% it is stopped, and I have clicked on resume option. maybe it is corrupted. I will try:

- replacing the lib with your attachment
- downloading again the sfs file

and then i will report what will be happened

edit:

replaced orignal lib with this you have posted as attachment, but another error is showed

Code:
# java -jar itext-1.4.jar
Warning: no leading - on line 1 of `/opt/jre1.6.0_02/lib/i386/jvm.cfg'
Warning: missing VM type on line 1 of `/opt/jre1.6.0_02/lib/i386/jvm.cfg'
Error: no known VMs. (check for corrupt jvm.cfg file)


I am not expert, but I think at this point this sfs file is corrupted, so I will download a new copy

edit 2:

downloaded today new copy of file jre1.6.0_02.sfs, added 301 to work on latest stable puppy (jre1.6.0_02_301.sfs) and moved to /mnt//home/

trying open a jar file, gives this error:

Code:
# java -jar itext-1.4.jar
There was an error trying to initialize the HPI library.
Could not create the Java virtual machine.
#


what do you think?

many many thanks for your help and puppy new year!

EDIT 2:

Downloaded again now it works fine!
Back to top
View user's profile Send private message Visit poster's website 
charlie4727

Joined: 25 May 2008
Posts: 6

PostPosted: Tue 27 May 2008, 17:03    Post subject:  

extremely helpful, thanks guys Very Happy AAAA+++++
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
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.1506s ][ Queries: 12 (0.0528s) ][ GZIP on ]