473,769 Members | 7,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 + "!/");
JarURLConnectio n uc = (JarURLConnecti on)u.openConnec tion();
JarFile jar = uc.getJarFile() ;
Manifest man = jar.getManifest ();
Attributes attr = man.getMainAttr ibutes();

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.Z ipException: The system cannot find the file specified
at java.util.zip.Z ipFile.open(Nat ive Method)
at java.util.zip.Z ipFile.<init>(U nknown Source)
at java.util.jar.J arFile.<init>(U nknown Source)
at java.util.jar.J arFile.<init>(U nknown Source)
at sun.net.www.pro tocol.jar.URLJa rFile.<init>(Un known 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 PluginClassLoad er.getMainClass Name(PluginClas sLoader.java:28 )
at PluginRunner.ru n(PluginRunner. java:30)
at Notepad.main(No tepad.java:78)

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

thx.
Jul 17 '05 #1
2 3802
On 5 Apr 2004 02:14:08 -0700, vd********@hotm ail.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
opt_utc
1 New Member
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
5547
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 the evening to work on this. Any recommendations on books, CBT or on-line training would be great. Thank you, Rick
3
15202
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 ? I copied the newest jdom.jar from newest JDOM release b10 to the folder jdk\jre\lib\endorsed
10
3267
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 WebStart for python applications? Nic
5
16967
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. I have successfully had other operations performed on these files by using backticks, ie: $doit = `my exec command`;
1
9651
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 and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
11
7045
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 -- Using OpenBSD with or without X & KDE? http://dfeustel.home.mindspring.com
8
10739
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 instantiating a class from another JAR which inherits a class from yet another JAR and this superclass does a loadLibrary() call to load a local DLL. This is getting an access denied error. All of these JARs are loaded as part of the APPLET tag. All...
1
9220
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 have included some external packages e.g: jdom 1.0 and self created package. When I am running my code in eclipse it works fine because I think it itself picks up the path of jars as well as package but while through command prompt its giving me...
0
2441
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 org/apache/axis The following is what i need to do but am unable to do //////////////////////////////////////////////////////////////////////////////////////////// set classpath where the below jars are located.... axis.jar commons-discovery.jar
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10048
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.