Click to See Complete Forum and Search --> : jar problem


viletouch
02-14-2005, 09:37 AM
hello, i come from your cousin fora: the JavaScript fora
yes, i know the differences between Java and JavaScript, but
i also know the similarities. and that's why i'm here

i know i can package 1 or more js files in a jar file and load them from there, just as you do with classes,the syntax is the same as applets, but strangely enough when i try to use it, it just does'nt work...i'm starting to think there's something wrong with my jar files
which should'nt be, because a jar file is just a standard zip file...

i was trying to find the jar tool on the internet, but i was unable to find it... err.. alone..
that means that i DO know it comes with the JDK, but it's 100+ Mb.

any comments?...
somewhere to find the single jar.exe?
or maybe that's not the problem?

thank's in advance.

ray326
02-14-2005, 07:10 PM
Well the 1.4.2 JDK is about 50 meg, not 100+, but are you saying you tried to just use a zip util to make the jar? Maybe a manifest is required for that use.

viletouch
02-18-2005, 04:50 PM
Originally posted by ray326
Well the 1.4.2 JDK is about 50 meg, not 100+, but are you saying you tried to just use a zip util to make the jar? Maybe a manifest is required for that use.

Well, yes, i was using winace to jar the files, but that was not any different than a zip, then i downloaded de jdk (that is 105.480.192 bytes)

i used the JAR.EXE , it generated the manifest.mf file and so
but it still does'nt work

now what should i do?

ray326
02-18-2005, 07:11 PM
I don't know. See if anything here helps.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dninstj/html/scriptbasedsecurity.asp

Khalid Ali
02-19-2005, 01:14 AM
as far as I can think of a browsersimply can not access ziped resources untill the webserver knows how to deliever a request to a browser.
As for to make a jar file, I think I did have how to setup the Environment Variables on windows machine at the top of this forum in the this sticky (http://www.webdeveloper.com/forum/showthread.php?s=&threadid=44232)
If you have a web application server that knows about deployment via jar/war files that can serve resources from jar files.