Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Applet gets "invalid file parameter"
Applet gets "invalid file parameter" [message #169614] Tue, 05 September 2006 16:37 Go to next message
Eclipse UserFriend
Originally posted by: landolini.yahoo.it

The applet that works fine compiled with javac in command line...
get "invalid file parameter" if built under Eclipse (both if I run it
under Eclipse and If I open with Firefox its *.html file ).
Also appletviewer get that error msg ....
Many thanks.

Below the applet tag...but I think the problem is not here...


<applet code=TVApplet width=587 height=510>
<param name=file value="/home/lando/calcioMO.avi">
</applet>
Re: Applet gets "invalid file parameter" [message #169622 is a reply to message #169614] Tue, 05 September 2006 16:45 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
lando a écrit :
> The applet that works fine compiled with javac in command line...
> get "invalid file parameter" if built under Eclipse (both if I run it
> under Eclipse and If I open with Firefox its *.html file ).
> Also appletviewer get that error msg ....
> Many thanks.
A test case with source code and reproducable steps and build id would
be helpful.
--
Olivier
Re: Applet gets "invalid file parameter" [message #169668 is a reply to message #169622] Tue, 05 September 2006 19:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: landolini.yahoo.it

I do not understand...................
Re: Applet gets "invalid file parameter" [message #169701 is a reply to message #169668] Wed, 06 September 2006 02:52 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
lando a écrit :
> I do not understand...................
In order to investigate what is going on, it would be useful to get a
complete test case.
So please provide us with a test case that we could debug.
You can open a bug report against JDT/Core and attached the test case.
Thanks,
--
Olivier
Re: Applet gets "invalid file parameter" [message #169743 is a reply to message #169701] Wed, 06 September 2006 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: landolini.yahoo.it

Olivier Thomann wrote:

> lando a écrit :
>> I do not understand...................
> In order to investigate what is going on, it would be useful to get a
> complete test case.
> So please provide us with a test case that we could debug.
> You can open a bug report against JDT/Core and attached the test case.
> Thanks,
> --
> Olivier
Too much to learn!!!
I don't use yava very much....
One thing that could be easy (for you) may be is the problem....
The applet is the Sun sample of JMF API (TVApplet.java).
I'm in a linux environment and to make it works I have copied
to /home/lando/j2sdk1.4.2_10/jre/lib/ext
jmf.jar
multiplayer.jar
mediaplayer.jar

and modules to
/home/lando/j2sdk1.4.2_10/jre/lib/i386

jmfjawt.so* libjmjpeg.so* libjmv4l.so*
libjmg723.so* libjmmpa.so* libjmxlib.so*
libjmgsm.so* libjmmpegv.so*
libjmcvid.so* libjmh261.so* libjmmpx.so*
libjmdaud.so* libjmh263enc.so* libjmutil.so*

Look with the explorer in this my project I see j2sdk1.4.2_10/jre/lib/ext
with the *.jar files
but not /home/lando/j2sdk1.4.2_10/jre/lib/i386
How can I do to have this entry in my project ?
Thanks.
Re: Applet gets "invalid file parameter" [message #169767 is a reply to message #169743] Wed, 06 September 2006 14:36 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Are you trying to run it from Eclipse or inside a web browser?
I don't know Linux enough to help you with your settings.
Sorry.
--
Olivier
Re: Applet gets "invalid file parameter" [message #169853 is a reply to message #169767] Wed, 06 September 2006 21:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: landolini.yahoo.it

The RJE setting is the same both in linux and windows !
Re: Applet gets "invalid file parameter" [message #169861 is a reply to message #169767] Wed, 06 September 2006 21:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: landolini.yahoo.it

I'm trying to run it under eclipse...and it fails.
...with firefox is OK .
Firefox uses RJE updated with JMF (so as I wrote ).
Eclipse uses RJE partially updated....(at least I don't see
modules in //rje/lib/386/....in eclipse using Explorer... )
Re: Applet gets "invalid file parameter" [message #169960 is a reply to message #169861] Thu, 07 September 2006 16:23 Go to previous message
Eclipse UserFriend
Originally posted by: landolini.yahoo.it

lando wrote:

> I'm trying to run it under eclipse...and it fails.
> ...with firefox is OK .
> Firefox uses RJE updated with JMF (so as I wrote ).
> Eclipse uses RJE partially updated....(at least I don't see
> modules in //rje/lib/386/....in eclipse using Explorer... )
Disregard all about rje....it's ok.
My last attempt !
I have traced (System.out.println....) the code that get the URL >>>>>

URL codeBase = getDocumentBase();
System.out.println("codebase " + codeBase);


NOW , the trace when I use "appletviewer" (that works fine!) gets >>>
codebase file:/home/lando/Ecljmf/TVApplet.html

AND the applet run with Eclipse gets this URL !!!!! >>>>>
codebase file:/home/lando/Ecljmf/TVApplet1157644897107.html

Then the next test gives the error below because it doesn't find this file
!!!

FATAL ERROR: Invalid media file parameter

Any ideas ?

PS-the number in TVApplet1157644897107.html change at every run...
Previous Topic:Accessing file in plugin.xml
Next Topic:Recommended JDT-related Plugins?
Goto Forum:
  


Current Time: Fri Apr 26 02:56:09 GMT 2024

Powered by FUDForum. Page generated in 0.06552 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top