Results 1 to 3 of 3
Thread: Applet can not see jar file
- 02-07-2012, 06:02 AM #1
Senior Member
- Join Date
- Jan 2012
- Posts
- 210
- Rep Power
- 2
Applet can not see jar file
I have run time classpath variable set to point on specific jar file, that holds necessary class for my applet.
But, applet can not see jar file, so can not access class insade that jar.
I'v tryed to unpack jar and put its context where classpath variable points, and in that case, applet is accessing that class.
But, that's not the solution, just something in between.
To be more specific, an applet is accessing class inside jar through this statement:
where classX is class inside jar, specified by run time classpath variable.Java Code:Class.forName(classX).newInstance();
Any idea how to solve this problem?
- 02-07-2012, 01:36 PM #2
Re: Applet can not see jar file
I don't think an applet running in a browser will see or use the PC's classpath.
You need to use the <APPLET tag's attributes to point to the jar file. Maybe the archive= ??
- 02-07-2012, 08:49 PM #3
Senior Member
- Join Date
- Jan 2012
- Posts
- 210
- Rep Power
- 2
Similar Threads
-
Generate Applet from XML file
By parag_patil in forum Java AppletsReplies: 11Last Post: 03-08-2011, 03:31 PM -
Applet: Can't write a file
By DaanDwars in forum EclipseReplies: 6Last Post: 09-03-2009, 01:26 PM -
how to run jar file into applet
By rakesh_n_mehta in forum Java AppletsReplies: 4Last Post: 02-20-2009, 01:27 PM -
Applet and remote file
By Preethi in forum Java AppletsReplies: 0Last Post: 06-03-2008, 05:54 AM -
Applet File Upload
By genette in forum Java AppletsReplies: 2Last Post: 03-09-2008, 02:06 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks