How you make a jar file a plugin.
I'm currently using a jar file to store my class files in. This jar file is downloaded every time the user looks at the page. Is there any way i can install it as a ie or netscape pluggin so that the user does not have to do this?
Thanks very much
Duncan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sample html code being used.
<!-- applet controls and parameters -->
<APPLET CODE="graphcls.class" ARCHIVE="graphcls.jar" WIDTH="590" HEIGHT="312">
</APPLET>
<!-- end of applet -->
If you use the Java Plug-in you can specify that you want to cache the Jar on the client machine - you do this by adding an archive parameter to your object/embed tag.
Take a look at the plug-in faq at http://java.sun.com/products/plugin/1.3/devinfo.faq.html
/Peter
Similar Messages
-
How to make a jar file from a java file?
how to make a jar file from a java file, is there any one tht can help me thank you;
You can study this.
http://java.sun.com/docs/books/tutorial/jar/basics/index.html -
How to make a jar file downloadable with IE
hello,
I just bought a website:
http://www.frozenfountain.net/
and I put a jar file on it called Logo.jar
Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
How do I get it to download as a .jar file with IE?
thanksJust post a link to the Jar. Mozilla will download
it as a jar. Windows will download it as a zip.
Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
On a sidenote, how do you draw text with a gradient? -
How do you make a jar file for your program?
Title says it all - I don't have software that automatically does it for me.
Using text pad :OEverything you always wanted to know about JAR files, but were afraid to ask:
http://java.sun.com/docs/books/tutorial/deployment/jar/index.html -
Quick question: How to make a JAR file
Well I have jdk1.5.0_02/bin/jar.exe file into my file with all of my classes which work using my schools java editing program. I'm trying to get it to run and I have my manifest.txt with "Main-Class: Driver" in it. Driver is my class with "public static void main(String args[])" in it and I have the cariage return in the manifest.txt file. Thanks for the help.
Well I have jdk1.5.0_02/bin/jar.exe file into my file
with all of my classes which work using my schools
java editing program. I'm trying to get it to run and
I have my manifest.txt with "Main-Class: Driver" in
it. Driver is my class with "public static void
main(String args[])" in it and I have the cariage
return in the manifest.txt file. Thanks for the help.What is the problem? You told us what your are trying to do, not what is happening. If you get an error, you better post it. You could also post the command you are using. -
How should I create JAR file which contain JMF library and project classes
Hi,
I installed the JMF windows pack. I compiled and ran successfully myApplet (which use JMF librarie) in Internet Explorer on my machine. When I run this applet on some different machine, where JMF isn�t installed- it�s not running.
There is an error:
java.lang.NoClassDefFoundError: javax/media/ControllerListener
I was trying to create jar file, which contain librarie JMF.jar and all other files which are require to run myApplet (*.jar, *.class, the files from folder �MyApplet�) and run it on the other computer. It still doesn�t work.
Also I ran a JMF Customizer and created customize.jar but this file contains only JMF classes. I don�t know how add other files to it.
How should I create a jar file which will contains all essential files to run myApplet on other machine (something like �All In One� J )
I�m using Eclipse.
Can somebody help me?.
Thank You!
Best regards:
PeterHi
i want to make a jar file of application which is using JMF to play audio
and video. it works well during compilation and execution but doesn't
works in jar file.
please help me how i make a jar file whic will run audio and video too
your's truely
abdul -
Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.The Oracle documentation has a good overview of the options available
Generating XML Data from the Database
Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
You can also find some information in XML DB FAQ -
How do you create a jar file in JDeveloper 11.1.2.0.0
How do you create a jar file in JDeveloper 11.1.2.0.0
1) Select the project for which you would like to generate the jar.
2) Right Click the selected right and select 'Project Properties'
3) Select the 'Deployment' in the left tab.
4) Click on 'New' to create a new deployment profile and in the popup dialog, select 'Jar File' profile type and provide the name.
5) Press 'ok' to save the changes.
6) Select the project and right click and select 'Deploy to' and select the jar profile name you have specified.
The Jar library is generated and the full path to the library jar is shown in the log window.
Thanks,
Navaneeth -
How do you convert a jar file into a java file, ?
how do you convert a jar file into a java file ?
I am new to Java ,but have a little experience in C++ and Visual Basic.
I want to edit and maybe create my own mobile games that are written or converted into jar files.
At the moment I am using Java NetBeans , and Easy Java( the java pad).
However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?801283 wrote:
how do you convert a jar file into a java file ?You generally don't. There exist decompilers, but if you're meant to have the source, you should either have it because you are the author, or you should be able to get it from the author.
I am new to Java ,but have a little experience in C++ and Visual Basic.Does that experience include turning .exe files into C++ code? Because that's the equivalent of what you're asking
I want to edit and maybe create my own mobile games that are written or converted into jar files.Eh?
Are you saying you want to take existing games and modify them? If the creators allow you to modify their source, then they'll provide you with that source (the .java files). If you're allowed to add things but not modify, you don't need .java files. Just documentation, which, again, the creators should be providing.
Or are you saying you want to create your own games and distribute them in jar files? If so, there's no need to turn jars into .java.
However the only solution I tried was to open the JAR file in winrar and see that its made up of png picture files,
midi music files and class files. Unfortunately when I uncompressed the JAR file , there was NO java file to be seen and the JAVA editors Do not show the class file like a Java file. So why is there no extension Java file in the mobile JAR game ?Why would you expect there to be one? -
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file the following
dir structure .And i mentioned the Class-path including all jar files in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic script
.How to make the EAR file incliding ejbjar,webapplication and 3rd party jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected]Refer to the section
Handling Utility classes
http://dev2dev.bea.com/products/wlserver/articles/musser.jsp
thanks,
Deepak
"Ashok Samrat" <[email protected]> wrote:
>
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar
files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file
the following
dir structure .And i mentioned the Class-path including all jar files
in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar
does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic
script
How to make the EAR file incliding ejbjar,webapplication and 3rd party
jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected] -
Cannot make executable jar file for swt application
hi to all!!! i have started learning swt library and it seems nice to me, but i have one problem, i cannot run my application. The problem is that i cannot make executable jar for it.
i'm using ecilpse_3.1.2 and have pluggined the visual editor for swt! yesterday i found one topic where was described the process of making the swt executable jar, i followed the instructions in the topic, but didn't resolve my problem, so if anybody knows how to achieve this , please help!!!!!!
the instructions in the mentioned topic are :
1. Make sure the SWT jar file is included in the Eclipse project build path
a. Download the standalone SWT jar file from eclipse.org even if you already have the ones that come with Eclipse. It is called ?swt.jar? and you will package it with the executable JAR. Make sure it is the same version of SWT that you used to make your program.
b. In Eclipse, import swt.jar via Project Properties::Java Build Path::Libraries::Add External JARs. (Make sure to include the source .zip file). Also make sure to select the swt package in the ?Order and Export? tab.
c. At this point, you should be able to compile and run your SWT application in the Eclipse SDK.
2. Do a standard Eclipse jar file export
a. Right click on the main .java project file and select ?Export??.
b. Choose ?JAR File? from the list.
c. Select the relevant packages and .classpath and .project resource files
d. Make sure ?Export generated class files and resources? is selected and browse to the location where you want the JAR file to be created.
e. Specify ?Generate the manifest file? and don?t seal the JAR or any packages. Choose the class containing the main method as the ?Main class?.
3. Change the manifest file
a. Navigate to the JAR file you created and open it with WinZip.
b. Open the MANIFEST.MF file inside and copy the contents.
c. Create a new file called ?MANIFEST.MF? and paste in the contents of the old manifest file.
d. Add the line ?Class-Path: <swt jar file path>?. For simplicity, you can just keep a copy of the swt.jar file in the same folder as the executable jar, in which case, the line is ?Class-Path: swt.jar?. Make sure there is a carriage return after the last line in the manifest file, or that line will not be parsed.
4. Replace the manifest file
a. Make sure the manifest file and the executable jar are in the same folder.
b. Open the command prompt and navigate to the containing folder.
c. Enter the command ?jar umf MANIFEST.MF <executable jar name>? to update the manifest file with the class path information.
5. Package the JAR with SWT files
a. Put the updated executable JAR file, swt.jar, and the associate DLL in the same folder. The DLL can be pulled out of swt.jar and should have a name like ?swt-win32-####.dll? on Windows.
b. The JAR file should now successfully execute. On Windows, you can usually just double click the JAR file in explorer and it will open. If that does not work, the command ?java ?jar <executable jar name>? on the command line has the same effect.
but a few steps aren't exact for me , for example : first, which jar i have to include in build path : downloaded or from plugins folder, second
i have to incude source.zip too??? but it is only in downloaded zip file which includes both swt.jar and src.zip, and finally can anyone clarify next :
"5. Package the JAR with SWT files
a. Put the updated executable JAR file, swt.jar, and the associate DLL in the same folder. The DLL can be pulled out of swt.jar and should have a name like ?swt-win32-####.dll? on Windows."
what does this mean, put these in folder or make jar from them????wolve634 wrote:
but a few steps aren't exact for me , for example : first, which jar i have to include in build path : downloaded or from plugins folder, secondTry it both ways. If neither works, then ask again. In a suitable forum, though. An Eclipse forum or an SWT forum or something related to where you got those instructions would make a lot more sense than asking here.
i have to incude source.zip too???No, of course you don't have to distribute the source code.
a. Put the updated executable JAR file, swt.jar, and the associate DLL in the same folder. The DLL can be pulled out of swt.jar and should have a name like ?swt-win32-####.dll? on Windows."
what does this mean, put these in folder or make jar from them????It says "Put (them) in the same folder". You're asking whether that means to put them in a folder? Yes, it does. -
How to execute a jar file which has an applet, without using a html file ?
I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
<html>
<applet code="file.class" archive="file.jar" width="500" height="300">
<param name="name" value="value">
</applet>
</html>
I want to know how to execute this class file without using the html tags.
pls help me out in this.
AnkiHi,
You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
1. Open a notepad and write the following
Main-Class: XXXXXXXX
XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
2. Save the file as Mani.mf
3. In the commant prompt ( your directory ) type following lines.
jar cmf Mani.mf Demo.jar *.*
4. This will make a jar file which is executable jar file
Hope this will help you.
Deepak -
How to open a .JAR file on the Z30
Hi,
Would anyine know how to open a .JAR file on the Z30?
I get a message saying "Unable to open" when I click on the .jar file i want to open in my blackberry & install.
Cheers
MarioJAR files are for older java phones, they dont work on BB10
maybe you should look into using SNAP to get some apps yoru looking for
http://supportforums.blackberry.com/t5/Downloaded-Applications-for/You-Upgraded-to-OS-10-2-1-and-wan...
Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
BESAdmin's, please make a signature with your BES environment info.
SIM Free BlackBerry Unlocking FAQ
Follow me on Twitter @knottyrope
Want to thank me? Buy my KnottyRope App here
BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V -
How to package other jar files into one jar?
How to package other jar files into one jar? How can i get the class in the inner jar file?
Generally not a good idea. The Java runtime won't be able to load classes from those "inner" jars, you'd have to write your own classloader to do that. It's not a brilliant idea, generally, anyway, since the point of having lots of jars is to keep your application modular. Bundling them all together like that means you have to re-deploy the whole thing to fix, for instance, one small bug in one small library
If you really want to do this, there's an Eclipse plugin called FatJar, but I urge you to consider whether you really want to do it first. -
hello,
i've been working with java and java servlet for a while, but i've no clue about jar files. my question is, how do i make a jar file? is a jar file a compressed version of multiple class files or what? thanks for any advice.OK, here's a link to learning about JAR files - this should help you master all you'd need to know to work with jars.
http://developer.java.sun.com/developer/Books/javaprogramming/JAR/basics/
Rather than provide you with a brief explanation here, i guess visiting the link and learning all thats there would be more helpful.
Hope the above helps.
John Morrison
Maybe you are looking for
-
DVD will not start on my G4-flat panel
I have a G4 flat panel and a G5. I recently installed Tiger on my G4. I just bought a DVD from europe, but it can work both on european and american DVD players. This DVD works on my G5. But when I instert it in my G4, it doesnt even appear on the de
-
How do I Bring iTunes Up-to-Date on Fresh Install of Leopard?
I have created a new, vanilla image of Leopard on a partition of an external HD to be run on my 6 year old iBook. I did this fresh install so I could essentially start over and only use what I really need on this aging, but still functional Mac. I am
-
Hi there, I'm building a class which contains a JTable, and I'd like to be able to merge cells (both rows and columns, it depends on). I've just searched help on this forum, but in many topics, answers specify a link to http://www2.gol.com/users/tame
-
Opening jpegs from iPhoto in Camera Raw
Hi there, I really hope someone can help me as i have just purchased PSE10 for Mac and am a complete novice!. I have bought the book 'The photoshop elements 10 book for digital photographers' and would like to begin to learn to edit my jpeg photos (o
-
Where can I find longer charging cables
Are there any longer charging cables available that work for ipad (3rd gen)????