473,386 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

java web start jars

Hello,

I'm a student at the university of Antwerp Belgium and I'm writing a
program for java web start that has to support plugins.
Now my question is why does java web start download 3 versions of the
resources specified in the jnlp file: RC*.jar, RM*.jar and RT*.jar and
is there any way in which I can acces the jar files in the following
way:
String url = "location of jar file downloaded by java web start"
URL u = new URL("jar", "", url + "!/");
JarURLConnection uc = (JarURLConnection)u.openConnection();
JarFile jar = uc.getJarFile();
Manifest man = jar.getManifest();
Attributes attr = man.getMainAttributes();

this always throws the following exception no matter which version
(rm,rc,rt) I access.
I/O error while loading JAR file:
java.util.zip.ZipException: The system cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.http://www.protocol.jar.JarURLConnec...onnect(Unknown Source)
at sun.net.http://www.protocol.jar.JarURLConnec...arFile(Unknown
Source)
at PluginClassLoader.getMainClassName(PluginClassLoad er.java:28)
at PluginRunner.run(PluginRunner.java:30)
at Notepad.main(Notepad.java:78)

although the file I specify in the url is in the java web start cache
directory

thx.
Jul 17 '05 #1
2 3779
On 5 Apr 2004 02:14:08 -0700, vd********@hotmail.com (Steven) wrote or
quoted :
String url = "location of jar file downloaded by java web start"
URL u = new URL("jar", "", url + "!/");


jar:file:///C|/bar/baz.jar!/com/foo/Quux.class

Is used for accessing a member of jar. If you want the entire jar,
you use a url like this

file:///C|/bar/baz.jar
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Jul 17 '05 #2
Hello Stefen,

Did you finally managed to access the jar files and do you know the use of RC*.jar, RM*.jar and RT*.jar ?

If yes, can you please tell us about it.

I'm actually trying to know when Java Web Start has updated an application so I can display a special screen (ONLY IF updates have been made). And I figured I could get some info from those three jars.

If you have any better idea, feel free to post.

Thanks in advance,

Alex.
Nov 9 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rick | last post by:
I know this is an open-ended question. But, can someone recommend a path for learning Java. I have some minimal background in programming, C and C++. Time constraints ony allow me a few hours in...
3
by: Bernd Oninger | last post by:
When I run the successfully compiled java source shown at the end I got a runtime error: Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content Where is the missing class ?...
10
by: Nic Bar | last post by:
Hi everybody, I want to develop a WEB based Python user appication that nees to be downloaded and started grom a web server using a browser. Does anybody know if there is an equivalent of Java...
5
by: Good Man | last post by:
Hi there I am trying to execute a custom-built java program on my linux server via PHP. Basically, a user uploads files via PHP, and then the java program performs some action on these files. ...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
11
by: dfeustel | last post by:
Even if there is no Java hardware, could not a Java OS be run by a Java interpreter? Or is there a fundamental problem? I've read that device drivers are hard to write in Java. Dave Feustel --...
8
by: smthames | last post by:
I have a pretty sophisticated applet running from several JARs. The main applet is in a signed JAR and performs local file accesses. This works fine. However, the applet in this signed JAR is...
1
by: shalini jain | last post by:
Hi all, I am very new to java and have a very limited knowledge about this. i am stuck at one problem which is really druving me crazy.. The problem is : I have written a code wherein I...
0
by: Siyodia | last post by:
This is a java program which i need to run facing compilation error Its consuming a third party web service method I have the supported files(folder) which contain necessary class files...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.