The service does not sign the jar.
Does the non-proguard .pack.gz version work?
The service does not sign the jar.
Does the non-proguard .pack.gz version work?
AFAIK, you can’t test a pack200 file without a web server. I’ve been trying to get it to work in this thread http://www.java-gaming.org/index.php/topic,21641.0.html
EDIT: Got it working using pjt33’s server code.
Very surprising! I’ll try on my website then.
Riven, I’ll try later the other outputs from your service. I’m a baby-sitter for now
Works great - thanks!
I tried the non-proguard version of my game but now I have a different error:
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1de3f2d
network: Cache entry not found [url: http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz, version: null]
network: Connecting http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz.pack.gz with proxy=DIRECT
network: Connecting http://www.funtoboggan.com:80/ with proxy=DIRECT
network: Cache entry not found [url: http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz, version: null]
network: Connecting http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz with proxy=DIRECT
network: Downloading resource: http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz
Content-Length: 1,896
Content-Encoding: gzip
java.io.IOException: Invalid jar file
at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
at com.sun.deploy.cache.Cache$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
at com.sun.deploy.cache.DeployFileOutputStream.close(Unknown Source)
at java.io.FilterOutputStream.close(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(Unknown Source)
at java.io.BufferedInputStream.close(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack.downloadJAR(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack.access$000(Unknown Source)
at sun.plugin.PluginURLJarFileCallBack$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
at sun.misc.URLClassPath$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
network: Cache entry not found [url: http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz, version: null]
network: CleanupThread used 49381 us
network: Connecting http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz with proxy=DIRECT
network: CleanupThread used 4 us
network: Downloading resource: http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz
Content-Length: 1,896
Content-Encoding: x-gzip
basic: load: class G not found.
load: class G not found.
java.lang.ClassNotFoundException: G
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: G
security: Accessing keys and certificate in Mozilla user profile: null
The jar is detected as invalid:
java.io.IOException: Invalid jar file
Just to narrow the cause, I’m able to run my game in an applet in a normal jar on my local machine. I really think there’s something broken or missing with pack or other formats. Or the optimizations applied brake something. I’ll try the service by uploading my jar.
The jar way doesn’t work neither.
Hmm, it was successful with the first generate pack.gz from copy pasted code BUT only one time. I tried all the other produced pack.gz and they didn’t work. I tried again the first pack.gz and it no longer works! I also selected “keep class members” option. And after each try I always deleted the IE cache and java plug-in cache. I’m very confused now.
BTW, what does “compile and self destruct” do? That sounds scary!
My tool isn’t doing anything fancy. It does: javac, jar, (proguard, )pack200, {bjwflate|kzip|7z}
The only part that can corrupt it is proguard, which is why I made it optional.
network: Downloading resource: http://www.funtoboggan.com/snakes4k/395391fa5c2438ab486f1ed14f71e162.5.pack.gz
Content-Length: 1,896
Content-Encoding: x-gzip
That’s actually quite weird… there shouldn’t be a Content-Encoding: x-gzip
header, as it will cause the browser to ungz it, which will probably screwup any attempt the plugin makes at loading the pack.gz file (it will try to ungz the ungz-ed stream)
What kind of webserver are you running? Ah… Apache/1.3.39.
It will install a cute trojan :persecutioncomplex: on the server :
There’s something with the service:
entered work queue
sourcecode
OK
EXCEPTION: java.io.IOException
[quote]It will install a cute trojan on the server
[/quote]
What does it do, seriously? I’d like to know.
[quote=“TheAnalogKid,post:150,topic:34618”]
There’s something with the service:
entered work queue
sourcecode
OK
EXCEPTION: java.io.IOException
Thanks, was updating the JDK on the server from 6u15 to 6u18 and ‘forgot’ that I had the a path including 6u15 hardcoded in the shrinker (for javac, jar and pack200). Fixed now.
Check out the source of the webpage.
Now I’m having:
entered work queue
sourcecode
OK
javac
OK
jar
OK
proguard
ProGuard, version 4.4
Reading program jar [/home/indiespot/http-files/4k/G.normal.jar]
Reading library jar [/root/jdk1.6.0_15/jre/lib/rt.jar]
Error: Can't read [proguard.ClassPathEntry@bb6ab6] (No such file or directory)
Exit value: 1
Relax 8) I’m fixing it as we speak!
No problem, I’m just reporting issues.
RIVEN IT’S BROKEN IT’S BROKEN AAAAAAAUUUUGHHH!!!
So, I’m not the only one to struggle??? For me, nothing works with the service. Only plain jar really worked so far.
Struggle? Oow!
I was way too busy doing: http://www.indiespot.net/trace
Excuse me for the interrupted service :-X
A few seconds ago my 4K entry got shrunk just fine. How about yours?
My issue might have something to do with the web server hosting my site. I have no control on it. I don’t even know any detail about it.
Riven, could you share your html to launch your applet please? I may be doing something wrong.
Thanks
Update: I added a link after every generated file. Clicking it will test your applet in the browser
The browser will either receive a .jar or .pack.gz depending on the “Accept-Encoding” header.
Tested with 6u18:
[x] it worked when the server sent a .jar
[x] it worked when the server sent a .pack.gz
[x] Please test it here