Download problem on jar file
i have put a jar file on my web server,
and put following link in my web page
a jar file
i my local machine, this link work.
my IE5.5 ask me do i want to excute it directly....
but when i put it in to web server
the file renamed as "abc.gtz" on download....
why this problem come?? is this cause by the browser or the IIS server ??
can you switch to apache?
Similar Messages
-
Anybody knows where to download the dco.jar file????
hi,
do u guys know where i can download the dco.jar file ???
(Domino Collaboration Object - Lotus Domino)
It seems that i really cnt find it....
thanksIt's part of the toolkit, it seems. Some more googleing:
http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/898382b7d610f43d88256ad4005899c8?OpenDocument
I wish you would search a little yourself. -
Signed applet : problem signing jar files that are in build path
Hello,
I have a problem while trying to create an ftp applet.
I use org.apache.commons.net.ftp and i build path for commons-net-1.1.4.jar and then i build my classes.
When i create a jar file with my classes and after signing it, it works under eclipse but not on a web page.
I had signed commons-net-1.1.4.jar before to build the path in eclipse but commons-net-1.1.4.jar is not in my jar file.
What is the way to sign applet correctly even if some jar ressources are in eclipse build path.
Thank youYou were right!!!
I'm not sure what to write down in the formsweb.cfg (configuration file) , following the instructions on the on-line help of Developer Forms 10g , in step 9..
The step 9 says...
Because in this release the JACOB code is in an external Jar file and not incorporated into frmwebutil.jar, it needs to be downloaded. To do this, change the WebUtilArchive setting to read: webUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/jacob.jar
The doudt is pointed to the fact that the frmwebutil.jar isn't in the ORACLE_HOME\forms\webutil path but it is ORACLE_HOME\forms\java path.
Also , these paths referenced in webUtilArchive are physical paths in a Unix system or they are logical paths in a url?
Simon -
Download and extract jar file from applet
Can any one provide me a solution for my below problem. Thanks in advance for all the suggestions.
I want my applet to download a jar file, extract into users home directory by creating a folder and then set the created folder to java library path.
My applet html file is in "root" directory. The applet is included into applet.jar and placed under "lib" directory which is under "root" directory.
Now i also had another jar file(contains dlls what I packed) under the same lib folder.
The below is the following directory structure in my server.
root ---
|
|
default.html
lib--
|
|
applet.jar - contains applet related classes
native.jar - contains dlls which are to be loaded
When a client downloads my applet, it should copy the native.jar and then extract into a new folder under user home directory. Then set this folder to java library path.
Regards
raman kumarI managed to do it this way, Just remember that you need to sign the jar files for your applet, else it won't work.
package jar.extract;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
public class JarExtractor {
// Dll file in the jar
private static String JAR_FILE = "dll.jar";
public void extract() {
try {
JarFile jf = new JarFile(JAR_FILE);
// Entry in the jar file rember package and dll file
ZipEntry ze = new ZipEntry("package/dll_file");
int length = (int) ze.getSize();
byte fileContent[] = new byte[length];
InputStream fin = jf.getInputStream(ze);
fin.read(fileContent, 0, length);
// CODE missing.
// You need to write the input stream (fin) to a new files output stream
// it is like copying a file !!!
} catch (IOException e) {
e.printStackTrace();
}Tom -
Multiple repeat downloads of applet jar file
We have an applet that is downloaded from a Weblogic server. The applet is packaged as a jar file. Some of the testers have been complaining that the applet is extremely slow to start up.
The applet start-up involves three phases. In a first phase, it fetches data from the server. This phase seems to execute in pretty much constant time. During the second and third phases, it constructs a UI using Swing objects. The UI includes some JPEG files, which are extracted from the applet's own jar file.
Testers report that the slow part of start-up is actually the UI setup. This should theoretically not be network-bound at all. But packet tracing reveals that during this phase, there's a large amount of network traffic going on. It turns out that there are multiple GET requests for the applet jar file being issued. Typically, 29 requests are issued in all; just for reference, the applet is required to extract 28 images from its jar file, so it looks as if the additional requests correspond to image requests.
One further detail: this does not occur where there is a fast connection to the server. In these cases, the applet is downloaded once. It looks as if the problem only occurs on slower network connections, and the speculation here is that the applet jar is somehow being downloaded only partially, so that requests for images somehow trigger a re-request of the jar file.
Has anyone seen anything similar and, more to the point, is there a fix or workaround?
Technical details: Internet Explorer 5.5 or 6.0, JRE version 1.4.2_01 Java HotSpot(TM) Client VM (on the client), WebLogic 8.1 (on the server)
Thanks in advance for any help.Ok.
I have been trying hard and found the solution. One of the ablove posting says that it works under java 1.4.1 plug-in. That's infact absolutely true. It also says that how to run client using JRE 1.4.2 or higher. That can be solved two. This is definitely a bug with the 1.4.2 plug-in.
Follow this procedure that will solve the mystry.
----------------------start ---------------------------------
Problem
Download of applet is very slow
Why?
This was happening because of the repeated download of the applet jars by the applet plug in controller. It is quite clear that the Java 1.4.2 plug in controller has a bug that causes the plug in to download same jar files multiple times irrespective of Jar cache in the client side (configurable from client side using the Java plug in control panel) is enabled or disabled. Therefore, we have moved from 1.4.2 plug in to 1.4.1 (controlled from our client (JSP) code) that works fine.
What the client (applet client) should do?
You must do the following in the client side in order to avoid the long download time for applet when running from a browser. We have also found that the browser actually do not matter in slow applet downloads. It is only the plug in that does control the applet download.
Irrespective of what JVM you have already installed (or not yet installed) please do the following:
1. Download the JRE 1.4.2 from http://java.sun.com/products/archive/index.html
-At the time of its installation if it shows that the "JRE is already installed do you uninstall it?" Go ahead and uninstall the JRE 1.4.2. After the un-installation again install the JRE 1.4.2
-If it does not have the JRE 1.4.2 already installed, then you will see any warning window and you will be able to install the 1.4.2 JRE successfully.
2. Now, go to the same link and install JRE 1.4.1.
-If this JRE already installed, uninstall first like the step 1 above. then reinstall it.
3. Now, after successful installation of the JRE 1.4.1, open the Plug-In control panel.
-You will find the list of control panel(s) in the Start->Control Panel window. Use the control panel that shows the version number 1.4.1. If no version number shown then use the one that do not show any version number at its end.
4. Do the following on the Plug-In control panel.
-Verify if this is the 1.4.1 plug in control panel? Go to the "About" tab to see if it shows 1.4.1.
If it does not show the 1.4.1 (or 1.4.1_x) then plug in was not installed correctly. Reinstall the 1.4.1 JRE following the step in no-2
-Go to "Basic" tab and select "Show console" radio button.
-Go to "Advanced" tab and from the drop down select "JRE ...1.4.2" from the "Java Runtime Environment" drop down box.
-Go to "Browser" tab and select all that in the "Settings" box applicable for browsers.
-Go to "Cache" select "Enable Caching" if it is not selected currently. Select "Unlimited" from "Size" options.
Now hit "Apply" button at the bottom and close the control panel using the 'X'.
5. Restart your Windows machine.
6. You are ready to run the applet from any of the browser (IE, NS, etc.)
--------------------------end------------------------------ -
I have create the jar file, but it show the following error mesage since i start to run it.
Java Virtual Machine Laugcher
Failed to load the main class manifest attribute from
E:\j2sdk1.4.2\bin\test.jar
What the problem for this?
my manifest.mf file contain the information
Manifest-Version: 1.0
Main-Class: mysystem.MainFrame
note, my directory is javac mysystem/MainFrame.java to runWhat's the name of the manifest file in the jar file?
What do you get when you do
jar tvf test.jar -
Hello everybody,
I have a problem with the generation of a jar file.
The script should run from the command line with a parameter but i get every time this error message when i try to run it:
Call is like that:
java -jar new.jar "some path parameter"
Exception in thread "main" java.lang.NoClassDefFoundError: org/jfree/ui/ApplicationFrame
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jfree.ui.ApplicationFrame
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
Could not find the main class: real_cell_search.Verify_TestRun. Program will exit.It seems that it cannot find the ApplicationFrame.class, but it is inside the jar file, inside the jcommon-1.0.16.jar which is included in the generated jar.
The *.classpath* file looks like that:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="res/jcommon-1.0.16.jar"/>
<classpathentry kind="lib" path="res/jfreechart-1.0.13.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>I am generating inside Eclipse, can someone tell me what I am doing wrong?
Thanks in advance for your help!!!
greetings
nyyrikkinyyrikki wrote:
It seems that it cannot find the ApplicationFrame.class, but it is inside the jar file, inside the jcommon-1.0.16.jar which is included in the generated jar.For standard jars to be execute using
java -jar generted-jar.jar
one cannot include dependent jars in the generated jar. Eclipse has a jar-in-jar extension to allow this so check the Eclipse documentation. -
Hello,
I have create successfull an executeable jar and it orks fine on my pc
I try to run it on other pc whoe winrar is installed
the jar can not run and the jar will be extract
who is the problem ??????The problem and the solution are both the same as in your previous post about being unable to create an executable jar file (http://forum.java.sun.com/thread.jspa?threadID=744829).
The solution is still given in the following thread:
http://forum.java.sun.com/thread.jspa?threadID=287560&messageID=1127643
The program is now WinRar instead of WinZip, but the solution is the same. -
Hi
I have tried to implement a sample version of jfreechart which is a component for graphing but unfortunatly there is an error with importing some of the libraries i have added all the . jar files to the Class Path and i have opened the .jar file in net beans so i dont know what the problem is
Problem is with the lines
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
It tells me that org/jfree/chart/demo/LineChartDemo1.java [60:1] package org.jfree.ui does not exist
C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\jfreechart-0.9.16.jar;
C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\jcommon-0.9.1.jar;
C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\servlet.jar;C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\gnujaxp.jar
Refereence at http://www.jfree.org/jfreechart/index.htmlCheck to make sure that the jar files have the above mentioned classes.
Do a jar -tvf to find the contents of the JAR file.
Next check your classpath entries again. Also adding these libraries to the JDK lib directory will not automatically add them to the classpath. So check to make sure they are added and if you are using an IDE, check the command line the IDE produces (most IDE's do that) to make sure your classes are there in the -classpath option.
Vijay -
How does client download Applet dependencies jar files?
I made an Applet which dependencies on several jar files. I think when client browser access this applet, it will download these dependencies. I want to know where these dependencies are located in client machine, will these dependencies are downloaded once. If so, how does the browser handle duplicated downloaded issue.
thanks.It is no business of client code (read 'your applet') to know the location where it is downloaded. The browser will often cache the dependant Jar's, but that is up to the browser and its settings.
For more reliable caching, launch the applet using webstart (either embedded, in 1.6.0_10+ JRE, or free floating). -
Problem: Multiple jar files in Class-Path [ IOException: line too long]
Hello Folks,
I am trying to create a jar file using the following command:
jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
My MANIFEST.MF file is as following:
Manifest-Version: 1.0
Main-Class: com.gridftp.INSPgridFTP
Class-Path: lib/activation.jar lib/ant.jar lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar lib/cog-abstraction-common-2.0.jar lib/cog-abstraction-examples-2.1.jar lib/cog-certmanagement-1.0.jar lib/cog-certrequest-1.0.jar lib/cog-grapheditor-0.46.jar lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar lib/cog-jglobus-1.2-050621.jar lib/cog-karajan-0.31.jar lib/cog-provider-clref-gt3_0_2.jar lib/cog-provider-clref-gt3_2_0.jar lib/cog-provider-clref-gt3_2_1.jar lib/cog-provider-clref-gt4_0_0.jar lib/cog-provider-condor-2.0.jar lib/cog-provider-gt2-2.0.jar lib/cog-provider-gt2ft-1.0.jar lib/cog-provider-gt3_0_2-2.0.jar lib/cog-provider-gt3_2_0-2.0.jar lib/cog-provider-gt3_2_1-2.0.jar lib/cog-provider-gt4_0_0-2.2.jar lib/cog-provider-local-2.0.jar lib/cog-provider-ssh-2.0.jar lib/cog-provider-webdav-1.0.jar lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar lib/cog-util-0.91.jar lib/commons-discovery.jar lib/commons-httpclient.jar lib/commons-logging.jar lib/concurrent.jar lib/cryptix32.jar lib/cryptix-asn1.jar lib/cryptix.jar lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar lib/jaas.jar lib/jakarta-regexp-1.2.jar lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar lib/xstream-1.1.1-patched.jar .
The grid-jar directory structure is:
| - com -- all classes are under this dir.
| - lib -- all the required jar files are in this dir.
There are 59 jar files in the lib directory. When I try to create the jar file, I get the following exception:
jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
java.io.IOException: line too long
at java.util.jar.Attributes.read(Attributes.java:356)
at java.util.jar.Manifest.read(Manifest.java:167)
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:124)
at sun.tools.jar.Main.main(Main.java:904)
Any idea, why do I get this exception? Is there any restriction as to how many jar files (or characters) can be there in the Class-Path value in the MANIFEST.MF file?
Please help.
Thanks,
Anause as the following way to resolve the problem:
(1) use separate lines, to avoid too long a line for java package name lists
(2) type a preceding space before each folloing lines, for example:
Class-Path: ...jar ...jar ...jar
...jar ..jar
...jar ...jar
...jar ...jar
Hello Folks,
I am trying to create a jar file using the following
command:
jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
My MANIFEST.MF file is as following:
Manifest-Version: 1.0
Main-Class: com.gridftp.INSPgridFTP
Class-Path: lib/activation.jar lib/ant.jar
lib/antlr.jar lib/axis.jar lib/castor-0.9.3.jar
lib/cog-abstraction-common-2.0.jar
lib/cog-abstraction-examples-2.1.jar
lib/cog-certmanagement-1.0.jar
lib/cog-certrequest-1.0.jar
lib/cog-grapheditor-0.46.jar
lib/cog-gridfaces-1.0.jar lib/cog-gridshell-1.0.jar
lib/cog-jglobus-1.2-050621.jar
lib/cog-karajan-0.31.jar
lib/cog-provider-clref-gt3_0_2.jar
lib/cog-provider-clref-gt3_2_0.jar
lib/cog-provider-clref-gt3_2_1.jar
lib/cog-provider-clref-gt4_0_0.jar
lib/cog-provider-condor-2.0.jar
lib/cog-provider-gt2-2.0.jar
lib/cog-provider-gt2ft-1.0.jar
lib/cog-provider-gt3_0_2-2.0.jar
lib/cog-provider-gt3_2_0-2.0.jar
lib/cog-provider-gt3_2_1-2.0.jar
lib/cog-provider-gt4_0_0-2.2.jar
lib/cog-provider-local-2.0.jar
lib/cog-provider-ssh-2.0.jar
lib/cog-provider-webdav-1.0.jar
lib/cog-resources-1.0.jar lib/cog-setup-0.91.jar
lib/cog-util-0.91.jar lib/commons-discovery.jar
lib/commons-httpclient.jar lib/commons-logging.jar
lib/concurrent.jar lib/cryptix32.jar
lib/cryptix-asn1.jar lib/cryptix.jar
lib/j2ssh-common-0.2.2.jar lib/j2ssh-core-0.2.2.jar
lib/jaas.jar lib/jakarta-regexp-1.2.jar
lib/jakarta-slide-webdavlib-2.0.jar lib/jaxrpc.jar
lib/jce-jdk13-125.jar lib/jgss.jar lib/jug-1.0.1.jar
lib/junit.jar lib/log4j-1.2.8.jar lib/mail.jar
lib/puretls.jar lib/saaj.jar lib/wsdl4j.jar
lib/xercesImpl.jar lib/xml4j.jar lib/xml-apis-1.1.jar
lib/xmlsec.jar lib/xpp3-1.1.3.4d_b4_min.jar
lib/xstream-1.1.1-patched.jar .
The grid-jar directory structure is:
| - com -- all classes are under this dir.
| - lib -- all the required jar files are in
e in this dir.
There are 59 jar files in the lib directory. When I
try to create the jar file, I get the following
exception:
jar -cvfm mygrid.jar MANIFEST.MF -C grid-jar/ .
java.io.IOException: line too long
at
at
at
at
java.util.jar.Attributes.read(Attributes.java:356)
at
at
at java.util.jar.Manifest.read(Manifest.java:167)
at
at
at java.util.jar.Manifest.<init>(Manifest.java:52)
at sun.tools.jar.Main.run(Main.java:124)
at sun.tools.jar.Main.main(Main.java:904)
Any idea, why do I get this exception? Is there any
restriction as to how many jar files (or characters)
can be there in the Class-Path value in the
MANIFEST.MF file?
Please help.
Thanks,
Anajust -
How do I download themes as .JAR files?
Hello. I would like to make a Firefox Theme, using this theme as a base (https://addons.mozilla.org/en-US/firefox/addon/msn-blue/ ) and this guide (http://www.twistermc.com/959/how-to-create-a-firefox-theme/ ). The guide says to download the theme as a .JAR file. How do I do this? The guide says "Download the theme to your computer. To do this, right click and save link as in Firefox." This doesn't work, just wants me to save a HTML file.
Thanks,
Errordotlog
fixed link ~J99Parts of the answer to the question may depend on the Operating System, or the software already installed and you may then have further questions relating to creating an addon, so you probably would be better going on to the Addons Forum and asking over there
* Forum https://forums.mozilla.org/addons/viewforum.php?f=30
*Instructions https://addons.mozilla.org/en-US/developers/docs/themes -
PROBLEM WITH JAR FILES!!! QUICK HELP NEEDED!
Hi guys
What problem could I have if I can run a program with java.exe (I use JDK 1.5) but not in a JAR-File (I added the Main-Class-key to MANIFEST.MF)???
Please answer fast!!!
ThanksWhat problem could I haveThat depends a lot on what you did wrong. What did you do to run the Jar file, and what error message(s) did you then get?
-
Intermittent problem deploying .jar files
OC4J 9.0.2
Seemingly random, I get this error when I deploy a jar file
Auto-deploying MyJar.jar (No previous deployment found)... Error compiling
MyOC4J/j2ee/home/applications/MyApp/MyApp.jar: Syntax error in source
To deply a jar file I do the following:
Copy the .jar file to /applications/MyApp/ directory
Delete the contents of /application-deployments/MyApp/MyJar.jar/
Start OC4J
The only way around this I have found is to keep restarting OC4J until it works, so the same .jar file will sometimes work and sometimes not.
I have copied the same .jar file to four different OC4J environments and have had one work and three fail. Then I restart the three and have two of those work and one fail. Then I had to restart that one three more times until it worked.
Any ideas as of what might be happening??I just tried the command you mentioned to start OC4J but I still get that problem.
It's really weird because I have had this process of deployments working for months with no problem, then all of a sudden it started acting up.
I don't think anything has changed but there must be something. I just don't know where to look.
any other suggestions?
-Isaac -
I am having a problem in Jar file
there ar my file which i have to put in jar file:-
IeEmbed.exe
IEInJava.class
IEInJava.java
jawt.dll
jdic.dll
jdic.jar
nspr4.dll
MANIFEST.MF
my MANIFEST file code is this :-
Manifest-Version: 1.0
Class-Path: jdic.jar
Main-Class: IEInJava
my compiling code is
D:\java\browser\IEInJava>jar cfm Browser.jar MANIFEST.MF *.*
after this i am having error which is :-
Failed to load Main-Class manifest attribute from
D:\java\browser\IEInJava\Browser.jarand after using this command:-
D:\java\browser\IEInJava>jar tf Browser.jari got this:-
D:\java\browser\IEInJava>jar tf Browser.jar
META-INF/
META-INF/MANIFEST.MF
IeEmbed.exe
IEInJava.class
IEInJava.java
jawt.dll
jdic.dll
jdic.jar
MANIFEST.MF
nspr4.dll
D:\java\browser\IEInJava>So plese solve this problem
and tell me what is this means
Thanks
Edited by: myharshdesigner on Oct 30, 2007 7:48 PMDoes your Manifest file have a blank line at the end?
Does your application work when it is not jar'ed? Do you launch it like "java IEInjava"?
Maybe you are looking for
-
Hi, I have internal table with 5 records. I want to separate out the last record in the internal table. For ex : itab contains, 12, 10, 15, 09, 13 . i need the last record '13' only. h
-
Hi friends, Kindly explain some body how to clear f-03 bank sub accounts When we cleared the outgoing payment f-58 entry must be Vedor A/C Dr Bank outgoning A/C After posted the document the check information is available at environment level When w
-
How to disable save button on selection screen (1000) run from other report
Hi Experts, Can any one let me know how to disable save button on selection screen (1000) run from other report. Say I am running from report R1 which submits report R2, but the save button should be disabled on report R2(selection screen 100). Thank
-
Palm Desktop 4.01 Issue with finding user folders before Syncing
Hello, Im using the palm desktop ver 4.01 alone and not syncing to a handheld device. When I create a new user, it nots creating a new user folder. Does the desktop version store the info in a different files than the info thats sync to the handheld
-
Hi All, I have created an union report which displays the Daily and Weekly count together. But i am confused on how to give a drill to this report. The problem i am facing is i need to distinguish between the dail and weekly report. I have creaetd an