Accessing a JAR file by name

294 byte By boyerdk at 2007-9-26 7:27:51
I need to be able to enumerate the contents of a jar file and I'm trying to use ZipFile to do this. I can get this to work outside of WebStart by passing the filename to ZipFile. Is there a way for me to reference a jar file by name from within WebStart?Thanks in advance.

Error using JnlpDownLoadServlet

1531 byte By susant2 at 2007-9-26 7:28:12
Hi , I have a newbie question for anyone that can help:I have been struggling for the last week and can't get the servlet to run in either basic or version-based download mode and would like to ask the following questions :1. As per Sun's "Packaging JNLP Applications in a Web Archive" , I ...

Error using JnlpDownloadServlet

452 byte By susant2 at 2007-9-26 7:28:17
Hi,I wanted to clarify question #3 in my previous message .. 3. If I start Tomcat 4.0 and place "HelloJNLP.war" in "\ApacheTomcat4\webapps" directory and launch with " http://localhost:8080/app/launch.jnlp" , I keep getting HTTP 404 error.Can anyone tell me the exact sequence they took to get ...

web server and setting up mime type

374 byte By Rama_um at 2007-9-26 7:28:18
All,We have written a httpd server program that handles http calls. I want to use this server to execute jnlps. I am confused as how to set the jnlp mime type on this server. Anybody has their own server and able to set the mime type? or is there any idea anyone has to set up mime type?Please ...

Problems using JNLDownloadServlet with Tomcat 4.0

5292 byte By bokonan at 2007-9-26 7:29:01
Hello again,I'm having problems trying to get the download servlet working with Tomcat 4.0, which was officially released this week. An application that was successfully deployed using Tomcat 3.2.1 fails to work with version 4.0. To use version 4.0, I had to "tighten up" my WEB.XML file, to ...

plugin faq?

614 byte By bsheepw at 2007-9-26 7:29:03
i have two question about the plugin1. what's is the difference with plugin for US andfor international? (i18n.jar?..)2. are there any plan (from SUN) to minimize plugin sizeby taking out standard JRE?.. i read the plugin is huge because they have included into standard JRE.or does this plugin ...

bundle he class files?

147 byte By jimti at 2007-9-26 7:29:14
Hi, Could someone please direct on how to 'bundle the class file' with my applet.Any help greatly appreciated,

How to disable JSObject print in java console ?

330 byte By mindterm at 2007-9-26 7:29:31
When I invoke call() function of a JSObject, it will print following message in java console. How can I disable it ? Evaluate __pluginVar668=self.getTransferStatus() = no Evaluate self.getTransferStatus = function getTransferStatus() { return document.transferForm.dail.value; } many thanks M.T. ...

applet not running in browser?

117 byte By sethan at 2007-9-26 7:29:55
Hi What is the reason why an applet will be running in appletviewer but not in a browser?

Why using big JARs when single components could be distributed

729 byte By claudio_russo at 2007-9-26 7:31:11
We are facing a problem with our Java application distribution, since the software house sends us large JARs (around 10Mb) which must be deploy to our branches at around 64Kbauds, taking at least an hour for each one. When we look at the changes, only a few 100Kb where changed (only 10 or 20 ...

Plug-in 1.3.1_01: cannot verify the CA Root

2513 byte By lugeon at 2007-9-26 7:31:17
Dear,I try to use my signed applet with the new version of the plug-in, and it doesn't work: The plug-in is unable to check the CA Root certificate. The following trace and a dialog box appears when I launch my html file (the dialog box is a warning to tell me that the plug-in is unable to ...

VM Packs with IA NOW!

367 byte By mwrfsu at 2007-9-26 7:31:18
All,I have downloaded InstallAnywhere 4.0 and have found out that the highest JVM available is 1.1.8 (does not support Swing) unless I build my own VM pack. A VM pack is what they use to bundle a VM with your application. I was wondering if anyone else has built their own VM pack for Java 2.Any ...

Can I create a JAR file by WinZip?

273 byte By jingc3 at 2007-9-26 7:32:22
Hi,My questions are:1. I know that WinZip can view the content of the JAR file. But can I create a JAR file by WinZip? 2. If I simply add files with path information into the JAR file through WinZip, will it work?Thanks!Jing

Java Plug-in 1.4.0 not working with IE5.5

1184 byte By wloucks at 2007-9-26 7:32:47
The Java Plug-in 1.4.0 works fine with NS4.75 butgives me the following error with IE5.5:java.security.AccessControlException: access denied (java.io.FilePermission france.gif read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:273) at ...

How do I enable debugging in beans.ocx

571 byte By dmarcillo at 2007-9-26 7:33:16
I am successfully running a Java Web enabled Application in Windows 2000 IIS Server.The application is accesses via Active Server Page (ASP) COM object interface enabled by Sun JavaPlugin-ActiveX Bridge . The application works great, it is using Java version is 1.3.1.I need to enable debug in ...

appletviewer launches applet 2 times

1016 byte By hazeyc at 2007-9-26 7:33:29
I used the HTMLConverter to convert my simple html file for use on ie 5.5. When I run the html file using the appletviewer it loads and runs the applet program 2 times. I am on windows 98, using the 1.3 version of Java plug-in. How do I get one applet window?Here is the HTML Converted ...

How to setup classpath for the beans?

228 byte By t_a_chen at 2007-9-26 7:34:01
My packaged beans reference classes in other jars. Right now I have to set up the classpath in the Windows user variables. I think that is not a good way.Is there a better way to do it? Thanks.Anthony

Adding file to existing jar(not using jar uvf)

397 byte By saro28 at 2007-9-26 7:34:04
I am looking ways to add file to existing jar file through code.I do not want to rename existing jar file to tmp and back-forth as mentioned in the threads. Here is the scnearioI have existing jar file to which i need to add optional file that i create on fly.i want to bundle up the jar file ...

Can't render Japplet sometimes with Applet-Applet Communication (JDK 1.4)

1616 byte By ngszeming at 2007-9-26 7:34:33
The followings are the messages shown on the Java Plug-in console. It works fine without the communication between Applet.java.lang.NullPointerExceptionat sun.java2d.SunGraphics2D.checkFontInfo(Unknown Source)at sun.java2d.SunGraphics2D.<init>(Unknown Source)at ...

Error trying to execute a .jar

824 byte By eglinsky at 2007-9-26 7:36:25
Hi all!I can execute an application without any problem, but when I make a jar and try to execute it... I get this: E:\Eze>jre -cp e:\eze\jfile.jar test.mainTESTException in thread "main" java.lang.NoClassDefFoundError: javax/swing/UIManagerat I have no problem running it by typing: ...

Basic install problem

1205 byte By ccleve at 2007-9-26 7:36:27
Having a hard time installing Java Web Start on NT 4 SP 5. Anyone have a clue what's going on?When I run javaws-1_0_1_01-win-int.exe I get: Bad Installation. Error invoking Java VM (SysExec) bin\javaw.exeI downloaded the update package. I believe that the JDK 1.3 is correctly installed on this ...

how embed IE or Word into java app?

251 byte By 6tr6tr at 2007-9-26 7:37:54
What do I need to do this? Would the Active-X bridge do this, or is that only for the opposite direction (i.e. embedding java into C++ for example).Can someone tell me what I need for this?Does anyone have some sample code?

Can't run demos

473 byte By ccleve at 2007-9-26 7:38:05
When I click on a demo I get the following error. It occurs with more than one demo. Anyone know what the problem is?An error occurred while launching/running the application.Title: SwingSet2Vendor: Sun Microsystems, Inc.Category: Download ErrorMissing version field in response from server when ...

Jar not in cache

450 byte By RousseauN at 2007-9-26 7:39:59
Hi,I've an applet.When the client access the page with the applet, the jar file is downloaded and the applet is shown.If the client goes to other page and then come back to the page with the applet, the applet is taken from the cache.But if the client close the browser, reopen the browser and ...

problem with starting my app and the cache

667 byte By hzirl at 2007-9-26 7:40:12
I just wrote a simple application which should play a short melody when launching it. I'm working with Tomcat 3.2.1 as web server and Netscape Communcator 4.7. When starting the app the first time, Java Web Start loads the jnlp-file without any problems, but then stops when coming to the ...

Applet - Servlet communication

1024 byte By COOLBECC at 2007-9-26 7:40:51
Hello - hope you can help...I have created a servlet that sends an object via HTTP to an applet.The applet reads the object via the following code: ObjectInputStream result = new ObjectInputStream(in);strNameList = (List)result.readObject();This works fine in the JBuilder development ...

finding class files inside a jar

384 byte By JMagnus at 2007-9-26 7:41:30
I am creating an application that creates executable jars. This application is itself a jar. There are class files inside the application jar that need to be put into the created executable jar. How do I get to these class files? Please refrain from suggesting I use Ant or IZPack or anything ...

Download/Installation PlugIn 1.3.0

523 byte By Jmanu at 2007-9-26 7:41:49
i have to use PlugIn Version 1.3.0. but when i use the following object-tag:<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width=300 height=200 align="baseline" codebase=" http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><PARAM NAME="type" ...

jar files with digital signature -pl help

177 byte By mortoza at 2007-9-26 7:41:55
Hi thereis there anybody who will help me guiding step by step how to create a jar file (executable) with digital signature?thanks in advance.

Property files and Web Start

368 byte By beausoleil at 2007-9-26 7:42:46
Hi,My existing application has property files (default.properties and appName.properties, which are loaded at startup. Is this going to be a problem for Web Start or can I specify the properties files under the <resources> tag? It seems that this cannot be done, but I wanted to verify ...

I can't start my jakarta tomcat...

2874 byte By stephaneeybert at 2007-9-26 7:43:21
Dear all, I have an error message when trying to start Jakarta Tomcat. I successfully compiled jakarta-tomcat and jakarta-servlet. Now I'm trying to start tomcat, using the commandcd /usr/local/dist/tomcatbin/startup.sh My PATH is:[root@localhost stephane]# echo ...

Difference between 1.0.1 and 1.0.1_1

99 byte By mspivak at 2007-9-26 7:44:07
What the difference between 1.0.1 and 1.0.1_1 webstart releases?Thx,Max

So won't need "sh" or "bat" files, make jar's MANIFEST take params!!

656 byte By 6tr6tr at 2007-9-26 7:45:53
Right now a jar file's manifest can have a "main-class" which makes the jar truly executable - you can double-click it. The problem is, if you need environment variables, there is no way to pass them in to your main-class' "args." So why don't we make it so when the jar's manifest is read, ...

Dynamically passing arguments by reflection

1097 byte By ablakey at 2007-9-26 7:46:16
I want to reflect arguments to a jnlp application back through a Web server by altering the values in the <argument> tags for specific users.I have a fixed jnlp file on my server which like all jnlp files is self referential. This is accessible through a URL. I have a simple cgi script ...

IE can't find Java Web Start

392 byte By hzirl at 2007-9-26 7:48:16
Does anyone know why my IE is not able to detect Java Web Start on my computer? I had the problem the first time, when I downloaded the plugin and wanted to look at Sun's demos. Every time I clicked on the link to activate the app I was redirected to the plugin-download-page. It seems that my ...

When updating a jar...

255 byte By martycash at 2007-9-26 7:50:24
When updating a jar file that has been signed, do I have to resign it and send cert files to users? It is my assumption that if their keystore enties, coupled with policy file accepts anything signed by me, I will not have to do any of this.

JWS - JDBC Problems

218 byte By Vinny3 at 2007-9-26 7:50:48
If we have 100 clients do we need to create DSN on each these 100 machines manually to make JWS - JDBC work? this.getClass.forName(..) does not work here...Please let me know, Thanks.

Strange Problem with JWS and SAXParser

1265 byte By dmullens at 2007-9-26 7:51:47
Hi,We have an application that we've installed via JWS. If we have the console enabled, everything works wonderfully. However, if the console is not enabled, we receive the following ClassNotFoundException:java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParserat ...

InputStream does not contain a serialized object

591 byte By rprueter at 2007-9-26 7:51:52
Hi,I have an applet that polls data from a servlet. On a test machine with the 1.3.1_01 JRE, the following exception occurs: InputStream does not contain a serialized object. The exception occurs VERY sporadically. The vast majority of the time, polling occurs without incident. On a different ...

problem with JDK1.3

341 byte By thnguyen76 at 2007-9-26 7:52:20
After I installed JDK 1.3, then set the path for JDK. I tried to run the sample java program and go this message "Exception in thread "main" java.lang.NoClassDefFoundError: Welcome"...I have reinstalled JDK a couple times and still couldn't run the sample programs. Any help or ...

Java Sound Stability in Plugin

414 byte By louisshun at 2007-9-26 7:52:22
Hi All,I am building a Voice over IP applet using JavaSound API which run in Java Plugin 1.3.1. While the applet runs PERFECTLY on my win2000 professional, a lot of clients who are running windows 98 and ME are having huge difficulty - the applet seems to crash their IE or Windows. What may ...

Applet to servlet communication fails (IExplorer/https)

866 byte By aranda2000 at 2007-9-26 7:54:29
Hello world!. We have a problem when client-side applet try to stablish connection to server-side servlet. Sometimes the browser and the plugin crash and the web server doesn't receive any request, so the application waits for an answer that it will never get. This only occurs on iexplorer ...

Bad MIME Type when using my jnlp but not demos from WebStart page. Why?

787 byte By brochur at 2007-9-26 7:56:22
I am having trouble running my application. I am getting the Bad MIME type ... - text/html problem also.I read all FAQs and tried what they mention to do. I am running on Win2000 so I am not sure about adding MIME types to the web server. I added it through the Internet Services Manager as was ...

What does this mean?

6509 byte By tapodaca at 2007-9-26 7:56:31
An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x70c7eda9Function name=(N/A)Library=C:\WINNT\System32\mshtml.dllNOTE: We are unable to locate the function name symbol for the errorjust occurred. Please refer ...

How to call a shell script in Java ?

724 byte By slimdb at 2007-9-26 7:56:47
Hi there,i try to call a shell script in java but it wont work.please can anybody help me.my Code :import java.io.*; public class SendMessage{ Runtime rt;public SendMessage(){rt = Runtime.getRuntime();}public void send(){try{rt.exec("sendMessage.sh");System.out.println("Message was ...

Tomcat 4 install

672 byte By mercenarysteel at 2007-9-26 7:56:48
I recently Downloaded the Tomcat4.0 JSP/Servlet server. It is the "jakarta-tomcat-4.0.exe" version and when it runs, it immediately prompts me for the JDK.The installation package quits immediately after this message.I have version 1.3.1 SDK.. I was under the impression that the SDK was the ...

Why does IE look for BeanInfo class ?

1490 byte By vsanapala at 2007-9-26 7:58:11
Hi,When I tried to run a JApplet application in IE, the following exception is being thrown:Java Plug-in Exception Dialogjava.lang.ClassFormatError: sun/beans/infos/xyzAppletBeanInfo (Bad magic number)at java.lang.ClassLoader.defineClass0(Native Method)at ...

possible?

382 byte By 6tr6tr at 2007-9-26 8:00:33
Question:Right now, for JWS the client needs to have the JRE to run. I know that connection-wise it would blow, but is it possible to actually run the thing entirely over the network in my server's JRE (if they don't have it)?Anyone know if something like this is possible?What would it have ...

HELP... IE is not seeing JAVA

338 byte By vodica at 2007-9-26 8:01:35
Hello!I haven't got a clue about JAVA so I had to post here-can anyone tell me why Interenet Exploder :) wont recognize the JAVA, it doesn't display it properly, I have installed and reinstalled IE and JAVA 2 and it still doesnt' work, is there a GUID in the registry that I have to ...

plugin problem

338 byte By d97ba at 2007-9-26 8:02:46
HI I installed java plug-in on my Windows NT4 but when I try to view something from the web that needs the plugin I get the "Click here to get the plug in" window.. How come Netscape can't find my plugin.. I tried Explorer and I get the same problem there. I appreciate your ...