We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Using external libraries in applets
Page Index Toggle Pages: 1
Using external libraries in applets (Read 1840 times)
Using external libraries in applets
Aug 2nd, 2009, 11:28pm
 
So, I've created a cool little sketch that populates a solar system based on how many hits the inputted stuff gets on yahoo.

I want to export it as an applet so I can embed it. Problem is that when it exports as an applet it can no longer use the yahoo search library. How can I let it access this library as an applet?
Re: Using external libraries in applets
Reply #1 - Aug 3rd, 2009, 5:16am
 
Classical issue: you need to sign an applet so it can access other Web sites. Just a security problem.
Re: Using external libraries in applets
Reply #2 - Aug 3rd, 2009, 5:25pm
 
As a follow up to PhiLho's comment on signed applets, you may want to have a look at http://processing.org/hacks/hacks:signapplet to get the work done.
Re: Using external libraries in applets
Reply #3 - Aug 3rd, 2009, 6:06pm
 
Tried signing it. On exporting there are four .jar files: myapple.jar, core.jar, pyahoo.jar (the yahoo search library), and a yahoo.jar (yahoo made, used by pyahoo.jar.

I can sign every file but the last yahoo jar. I get an error telling me there's duplicate data.  This jar has probably been signed by yahoo. Maybe because I might have 2 different signatures among the jars my applet will run, but wont be able to access it's pyahoo functionality.

I've spent the last couples hours trying to find a way to unsign the yahoo jar so I can resign it. Am I even trying to do the right thing?
Re: Using external libraries in applets
Reply #4 - Aug 4th, 2009, 12:33am
 
Signed jars doesn't need to be signed again (AFAIK). Try signing only the myapple and core jars.
Re: Using external libraries in applets
Reply #5 - Aug 4th, 2009, 1:01am
 
Yep, I can sun it without signing even anything.

I think my problem lies with using this:
http://processing.org/learning/libraries/yahoosearch.html

Has anyone used this in an applet before? How? I'm so lost.
Page Index Toggle Pages: 1