Accessing a JAR-file inside another JAR-file !!!

1030 byte By s5243 at 2007-9-26 6:47:14
Hi!I got a problem. I want to access a JAR-file inside another JAR-file.Look at this code:protected boolean attemptConnection() { try {String databaseConnect = "jdbc:mimer://";Class.forName("someJDBCDriver");databaseConnect += urlField.getText();connect = DriverManager.getConnection( ...

Text file in jar file

444 byte By anat_w at 2007-9-26 6:48:05
Hello,I use a text file in my programin order to get database parameters from the user.InputStream is = getClass().getResourceAsStream(getUrl("/conf/db.properties").getFile()); I need that the user will update the text fileat the first time before he executes the applet.The problem is that the ...

ZipException using JarFile constructor on a previously nested JAR file

1024 byte By chauvirey at 2007-9-26 6:48:57
I have to create a JAR file in which I put other JAR files and also some XML and serialized objects files.I managed to do that, and when I unjar this archive, I get the set of basic JAR files back. But at this moment, when I try to call a new JarFile(...) on one of the file from the unjarred ...

Corrupt cabinet file?!?!

526 byte By livingrid at 2007-9-26 6:51:44
I am trying to install the Java standard package.I have downloaded the j2sdk-1_3_1-win.exe file 2 times, and I get the same error both times: While unpacking the DATA.TAG, the PackageForTheWeb-program gives the following error:Corrupt cabinet file.When I tried to extract using Win instead, I ...

How do I know that jardiff is working?

445 byte By bokonan at 2007-9-26 6:52:46
Hi,I'm using JNLPDownloadServlet to download my application. This is on Win2K, JRE 1.3.0, Tomcat 3.2.1.It basically works - updates are downloaded - but I don't know if the jardiff "stuff" is happening. How do I find this out?Beyond using the servlet and specifying the version of the jar ...

downloading the jar-file

276 byte By hzirl at 2007-9-26 6:53:35
I've got a problem: I have to write an example-application for Java Web Start. I'm using Tomcat as a WebServer. When I try to start the application I always get the message that the ressource (my jar-file) could not be downloaded. What could I have done wrong?

detecting client proxy settings

478 byte By albedoj at 2007-9-26 6:54:21
Dear All,Can anyone tell me how to detect client proxy settings from a java application (not in a browser).I tried System.getProperties().getProperty("http.proxyhost") without success.Our application is distribuited using Java Web Start technology and needs to know proxy settings to connect to ...

Java-JavaScript communication in IE?

6040 byte By sundhario at 2007-9-26 6:54:43
I'm using IE to load an applet. I'm trying to do some simple calls from the JavaScript routines to my Java applet methods. Works fine. BUT when I try call my JavaScript routines FROM my Java applet IE locks up and I have to kill the process. here is the HTML code:<SCRIPT ...

Anybody knows a good debugger?

701 byte By Ragnvald at 2007-9-26 6:54:45
Hi.I am looking for a debugger to debug an applet. The applet is downloaded from a webserver(IIS) that run on the local machine. The files downloaded are a .jar file containing the applet and a number of other classes, and some .class files doenloaded on demand by Class.forName(str);. The .java ...

Parameters

478 byte By 972224 at 2007-9-26 6:55:29
Hello!How can I pass a parameter to the main function of an application? I have tried it with <application-desc main-class="Start"><argument>-name Patrick</argument><argument>-pass xxxx</argument> </application-desc>and without the leading "-" but both ...

java extensions in java plug-in

317 byte By vimaljain73 at 2007-9-26 6:58:37
Hi,I am using Java Advance Imaging API (JAI) to display tiff images in the JApplet on client browser. It requires JRE version of JAI to be installed on client machine.Can any one tell me hot to deploy java extensions in java plug-in?ThanksVimalvimalj@momentum-tech.com ...

Tomcat w/ JWS

171 byte By isam_hk at 2007-9-26 6:59:05
Pls help how to config tomcat for using JWS as I'm seldom playing w/ web server and this is only self testing.THanks,iSam

Browser freeze on 'java extension installation' popup

765 byte By J16 at 2007-9-26 6:59:14
I have the following problem happening intermittently:I am attempting to load a web page containing 3 jdk 1.3 Swing-based applets each contained in 3 seperate frames each referencing an HTML. The applets are embodied in jar files. The 3 HTML pages were converted using the 1.3 Java plug-in ...

Problems installing Plug-In on Netscape 4.08

891 byte By BlackBeauty at 2007-9-26 7:02:18
Hello,Firstly, thankyou for taking the time to read this topic and I hope that someone will be able to shed some light on the problem we are having.I have a user who is using Netscape? Navigator 4.08 and cannot view a 'course explorer' applet that has been written to utilise a Java plug-in. ...

JApplet mystery

1387 byte By jlucande at 2007-9-26 7:04:29
Hi!I am trying to convert a game application, made using Java - Swing combination, to an JApplet. First I installed the newest JRE1.3.1 from the java.sun.com and used the HTMLConverter. Testing revealed that the JApplet runs quite Ok in the Appletviewer (well, two instances were started ...

Problem installing JDK/JRE 1.3 on Linux PPC

389 byte By kfh1 at 2007-9-26 7:04:52
Hello all,Have any people successfully install JDK/JRE 1.3 on Linux PPC (SuSE 6.4) ? When I try to run the script, it gives me an error as follows:Unpacking...Checksumming...00Extracting..../jre-1_3_1_01-linux-i386-rpm.bin: /install.sfx.700: cannot execute binary fileIs there any workaround ...

Jdk1.3.1_01

417 byte By BlackS at 2007-9-26 7:05:05
After I install jdk1.3.1_01 and then run the programby typing - javac HelloWorld.java class HelloWorld{public static void main(String args[]){system.out.println("Hello World");}} The output saiderror:cannot read: Hello World.java1 errorI don't know why I have faced this problem.Can u help me ...

App Server Configuration

344 byte By LGonzalz at 2007-9-26 7:05:13
We are trying to use WebStart for the first time. We are using IBM Http App Server (Apache). Aside from adding the correct MIME type, what other considerations are necessary on the server? I.e., where do the .jar files go and is the WEB-INF/ directory relevant? If so, how?Any help is greatly ...

JS->Java->JS Problem fix...

7123 byte By sundhario at 2007-9-26 7:05:26
I was running into a bug making calls to a java applet from javascript and having the same java function call a javascript function. i found WAY back in an earlier post that JS->Java->JS calls were not possible in the same thread. SOOOOO I wrote a little test application that does this. ...

Launching JWS Apps from other Apps

217 byte By gshifrin at 2007-9-26 7:05:48
I'd like to launch a JWS app from another app via the OS (so that it gets its own JRE and address space). Can I do that somehow by launching a copy of the JNLP file? Needs to run in both WinXX and UNIX.

Unable to load JWS App

1215 byte By LGonzalz at 2007-9-26 7:05:56
Below is our JNLP file. The title, vendor and description print out to an html page but the application does not launch. Does anyone have any ideas?Thanks.Lynn<!-- JNLP File for SwingSet2 Demo Application --> <jnlp spec="1.0+" codebase=" http://ucidev.unilever.com:81" ...

JWS & Window NT Policy manager problems

775 byte By smcstravick at 2007-9-26 7:06:27
Has anyone had any experience using a Java Web Start deployed application and the Windows NT Policy manager?When I login to the PC as an adminstrator and run the application it works great.When I login to the PC with an account filtered with the NT Policy manager, the application runs fine ...

JWS & JDK1.4 w/ JSSE

1006 byte By MarciaP at 2007-9-26 7:08:04
Hi,I have a Java application (say 'MyApp') that uses SSL connections to communicate w/ another applic. So we'rebuilding this applic. w/ JDK1.4.0b and using its JSSE. The user has his/her keys and cert, stored in 'cacerts' and can run this application fine (under UNIX and from MyApp.jar) ...

new boy needs help

383 byte By DenisM at 2007-9-26 7:09:05
I am a complete novice at java and have just started learning. I have a major problem with getting started and wonder if anyone can help.I have written a program in Notepad but when I go to the Ns dos prompt to compile it absolutely nothing happens. I have windows ME as my Operating system and ...

java.security.debug problem

466 byte By ternst0 at 2007-9-26 7:09:30
I am able to set the system property java.security.debug=access in the resources section:<property name="java.security.debug" value="access"/>but it seems that JWS ignores it (no debug information is printed to the log file). The program works fine if I start it as a standalone ...

JavaWebStart 1.0.1/Weblogic 6.0 --Download Error

835 byte By raopayala at 2007-9-26 7:10:48
Hi,I'm using Weblogic 6.0 sp3 to deploy a test application on my system with JavaWebStart 1.0.1(JWS1.0.1).After I have clicked the link pointing to the jnlp file the JWS1.0.1 is getting started but its showing the following error*********************************** An error occurred while ...

securing jar file

417 byte By stephensutherland at 2007-9-26 7:11:35
is there a way to secure a jar file so that it cannot be decompiled by customers when they download my java application onto their computer ? let's say I have a jar file with applet classes. is there a way to secure the jar file so that people will not be able to either a. point their browser ...

Can't run java In Wondow XP

299 byte By javasoftchien at 2007-9-26 7:13:13
Hi, all;I have installed JSDK1.3 in WindowXp, but it seems to me that I can compile the file, but I can't execute the file. The error message was : NoClassFoundException main : MyfileIs the problem of window XP, or my wrong configuration of java? Thanks for helps

Location of Image files

542 byte By tata555_98 at 2007-9-26 7:13:15
I have an application that I want to distribute to internal users via web start. I have it working, but I am having problems with my image files. They are packaged in a jar file. The problem is that I have a properties file that is read when the app starts that points to the location on the ...

Certificate failed

423 byte By ashokdarsh at 2007-9-26 7:13:31
I just bought this Digital Signature from Thawte CA & I signed my application (.jar file) using the jarsigner command.. everything went on well.. But When I launch the application It still pops up again with the "Security Warning" window... even if the jar file is signed with a real ...

IOException in Tomcat on app start

387 byte By gleeky at 2007-9-26 7:15:06
I'm getting this error running JWS on Tomcat ocassionally with SimpleExample from the Java SDK:Ctx(/examples): IOException in: R( /examples + /SimpleExample.jar + null) Connection aborted by peer: socket write errorApp runs. I get the same error for each jar in my development app, and the app ...

Problem accessing backend database

3888 byte By jkedar at 2007-9-26 7:15:31
Hello everybodyI am having exception when i tried to access database from my jws application,the exception is all follows,executing query...Loading classes...getting connection...Exception occurred during event dispatching:java.security.AccessControlException: access denied ...

Why doesn't JWS always download the latest jnlp file?

348 byte By santoshkg at 2007-9-26 7:16:27
I'm unable to figure out where and how does JWS cache once downloaded jnlp file. I've made no. of changes in the jnlp file sitting on webserver. In spite of that whenever I run thru browser, it throws the same error and in LaunchFile tab shows the same old contents of jnlp file.Can somebody ...

UnsupportedCommOperationException using Java Communication API

2055 byte By BenEat at 2007-9-26 7:16:38
Hi,I have created an application that uses JavaCommunications API 2.0(comm.jar). I compiled it withthe Java2 SDK 1.3.1, and ran it successfully on Win32.For practical reasons, I compile on a SUN workstation, then I copy the *.class on a PC where I run my application.To run it, I type:>java ...

Calling Methods from a JSObject

702 byte By sundhario at 2007-9-26 7:18:47
I'm trying to call a method of a JSObject that I pass to a java applet. II figured I start of by trying some examples w/ the document object.JavaScript:function something(){document.applet1.doSomething(document)}Java:public void doSomething(JSObject document) {System.out.println(document);}1) ...

JavaTM 2 SDK, Standard Edition, v 1.4 Beta 2 for RedHat on Sparc ?!?!

844 byte By Electromed at 2007-9-26 7:18:56
Hi, I've recently dowload the JavaTM 2 SDK, Standard Edition, v 1.4 Beta 2 for Solaris since only this distribution support Sparc. But I've got problem to decompress the binary scripted file.When I execute the shell,sh j2sdk-1_4_0-beta2-solsparc.shit display the Software Evaluation License ...

Passing JavaScript Objects to Java

759 byte By sundhario at 2007-9-26 7:19:45
I'm trying to pass a JavaScript object to Java but I keep getting exceptions.I'm under the assumption that if I pass a JavaScript object to Java, it must be received by Java as a JSObject. function someObject(s){this.text = s;this.getStuff = SO_getStuff;}function SO_getStuff(){return ...

Better Compression for jar file

937 byte By Rudolff at 2007-9-26 7:19:50
Hi.I'm currently working on a Java Application that runs on a Compaq iPAQ with a familiar linux distribution. There is a JRE 1.3.1 available but it is about 19 MB. Because there is a very limited amount of memory I'm currently working on getting rid of all the unnecessary stuff. The jar file ...

Error when using Tomcat and JavaWebStart

487 byte By Joevaa at 2007-9-26 7:20:00
I got the following message:========================================An error occurred while launching/running the application.Title: NotepadVendor: Sun Microsystems, Inc.Category: Download ErrorBad MIME type returned from server when accessing resource: http://c152:8080/test.jnlp - ...

JNLP Security Question

602 byte By jukka at 2007-9-26 7:20:58
Hello Java WebStart developers,I am creating dynamic JNLP-files in order to pass user credentials to an Applet. On the other hand I want to stop peoplefrom saving the JNLP-file to their local systemand then executing it later with the same user credentials.That is why I need to verify that the ...

classpath

753 byte By Patric Bechtel at 2007-9-26 7:21:12
Hello everyone,I've a strange problem. Don't know if can be solved.Imagine, I've the need to scan the whole possible packagesavailable including all classes. As Java Web Start does not setthe java.class.path property, I see no proper possibility to getthis list.The background is a scripting ...

Download Optional Package problem !

815 byte By johanvdv at 2007-9-26 7:23:32
Hello,I have a problem with the download optional packages. I have an applet bundled in a JAR. I have some properties files (plain text) bundled in another JAR. In the applet's Jar's manifest file I put Class-Path: properties.jarThe properties files are in properties.jar. THis Jar is in the ...

JWS Splash Screen

322 byte By jvigna at 2007-9-26 7:24:11
Hi ,Is there any way to change/customize the splash screen of Java WebStart without violating the copyright.The client is complaining that since JWS launches the application with its Splash Screen , the application tends to look like a SUN product. Any help is appreciated . Thanks,Vigna ...

NoClassDefFound with PlugIn 1.3.1, not with PlugIn 1.1!!!!

2886 byte By anloleo at 2007-9-26 7:24:28
I try to run applet into IE 5.0, but I've got the following error on the Java-Plug-In console.Java(TM) Plug-in: Version 1.3.1_01Using JRE version 1.3.1_01 Java HotSpot(TM) Client VMUser home directory = C:\WINNT\Profiles\LOLEOjava.lang.NoClassDefFoundError: ...

shut-down java-plug-in

187 byte By anloleo at 2007-9-26 7:24:40
How is possible shut-down java plug-in? Also if I close all IE windows on my desktop, the Console remain active and I can pop-up it using the icon in Windows systray!

JWS and JNLP

639 byte By rradspieler at 2007-9-26 7:25:31
Hi,I'm new to JWS and I'd like to know if I understand some things right.1. If using <all-permissions/> you don't need to use jnlp-classes, you can just develop a standalone-applicaion 2. you just have to use this classes when accessing local resources out of a restricted execution ...

Download error in windows 95

482 byte By gs03ann at 2007-9-26 7:26:27
Hi,We are using windows 2000, and NT. WebStart works well under these OS. We do have a machine running windows 95 and webstart is giving the following error:JNLPException[category: Download Error : Exception:java.net.UnknownHostException: qa-mvrii.ins :LaunchDesc: null ]Any Suggestions...We ...

Bad MIME type on the sun demo site

619 byte By chamal at 2007-9-26 7:27:09
Hi,I am evaluating java web start for a project. I am running IE5.5 on win2K workstation. When I click on the demos I get the following error.An error occurred while launching/running the application.Title: Draw 4Vendor: Sun Microsystems, Inc.Category: Download ErrorBad MIME type returned from ...

Bad MIME type

2024 byte By vcheethirala at 2007-9-26 7:27:19
Hi,I'm pretty new to JWS. I created a simple 1 class swing application and trying to launch it through JWS which gives me a Bad MIME type error and the detailed exception is JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]at ...

Can't start J2EE server

2480 byte By taoli16 at 2007-9-26 7:27:42
I'm using JDK1.3.1.0.1 and J2ee1.3. When I tried to start the j2ee using "j2ee -verbose", I got following errors. Since it says the problem maybe caused by "TCP/IP port used by another process", I changed the port to 5050 from 1050. But I still get the same error. Does anyone why this is ...