Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:14 am EST
Geeklog Forums
Block .jar works for root/admin but no where else
mph
* but it continues to fail in directories where the .jar does not exist
* so the obvious fix is put the .jar in all dirs where function is desired
? is there another way?
Peace,
mph
ironmax
* I've got this http://javaboutique.internet.com/billsClock/ java app working in a block
* when creating the block and getting the java app working apache2/error.log indicated that the .jar file did not exist
* I then moved the .jar to root/admin/ and the app works perfectly
* However, it does not work for any GL url's other than root/admin/*
* the block access rights are enabled for all and assigned to group "All Users"
* apache2/error.log indicates file does not exist for all non root/admin directories e.g.
File does not exist: /var/www/sl/mediagallery/billsclock2.jar
File does not exist: /var/www/sl/BillsClock2.class
File does not exist: /var/www/sl/admin/plugins/spamx/billsclock2.jar
* I have put the .jar in web root (/var/www/sl) but file does not exist is still reported ( I have verified permissions and ownership).
? how can we get this java block to work on all GL paths?
Peace,
mph
You should be able to put it in a directory with all the other files that came in that archive in a dir under the public_html dir. Then in the applet code make the change to the one line that references the jar file. Notice the "/clock/billsclock2.jar" as that was the dir I put my test clock under. And it should work on all pages that the block is enabled. The only thing in the block is whats listed in the code below.
<applet code="BillsClock2" width="150" height="150" ALIGN="middle">
<param name="ARCHIVE" value="/clock/billsclock2.jar">
<param name="BGCOLOR" value="#FFFFFF">
<param name="BGIMAGE" value="/clock/clock150.jpg">
<param name="CENTERX" value="75">
<param name="CENTERY" value="75">
<param name="FGCOLOR" value="#000000">
<param name="FONTSIZE" value="10">
<param name="HOURCOLOR" value="#000000">
<param name="HOURLENGTH" value="30">
<param name="HOURTHICK" value="3">
<param name="MINUTECOLOR" value="#ABA198">
<param name="MINUTELENGTH" value="50">
<param name="MINUTETHICK" value="3">
<param name="SHOW_DATE" value="0">
<param name="SHOW_AMPM" value="1">
<param name="SHOWSWEEP" value="1">
<param name="SNTP_PORT" value="1200">
<param name="SNTP_SAMPLES" value="3">
<param name="SWEEPCOLOR" value="#8D7F73">
<param name="SWEEPLENGTH" value="50">
<param name="HOUR_CHIMES" value="/clock/bells.au">
<param name="HALFHOUR_CHIMES" value="/clock/bells.au">
<param name="USE_SNTP" value="0">
<param name="SYNC_MESSAGE" value="Stand by...">
<param name="VERBOSE" value="0">
</applet>
mph
* This was, as you indicated a path reference problem
* I had originally tried this (but failed to mention) without success
* the failure was due to the location of web root
* i referenced web root as /var/www/sl
* apache references web root as /var/www
* so in the applet config you posted I replaced the path to the .jar as /sl/clock/*.jar and all was well
peace,
mark
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content