applet upload issue

12 replies [Last post]
Offline
Joined: 01/08/2011

For some reason my applet won't upload to env3d. A small window pops up that says packaging, and it just seems to freeze and not do anything...I can't even cancel it without using task manager. I remember this same problem from along time ago but can't remember how to resolve it. Am I just being impatient? Does it take a long time because I waited quite awhile it seemed.

Offline
Joined: 12/13/2010
Under the Preferences ->

Under the Preferences -> Extensions, find the option "Compression Dictionary Size" and try to reduce it by 1.  This might help if you your PC don't have enough memory.

 

You can copy the output from  the bluej debug log and paste it here.  That would help me determine what exactly went wrong.

 

Jason

Offline
Joined: 01/08/2011
applet upload stalling

Here is the debug log when I tried to upload the applet to env3d:


BlueJ run started: Tue Jul 24 15:23:09 PDT 2012
BlueJ version 2.2.1
Java version 1.6.0_04
Virtual machine: Java HotSpot(TM) Client VM 10.0-b19 (Sun Microsystems Inc.)
Running on: Windows Vista 6.0 (x86)
Java Home: C:\Program Files\Java\jdk1.6.0_04\jre
----
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.
class env3d.EnvApplet
Class menu invoked Game
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.
class env3d.EnvApplet
Class menu invoked Game
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.
class env3d.EnvApplet
Class menu invoked Game
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.
class env3d.EnvApplet
Class menu invoked Game
Error: java.io.FileNotFoundException: File 'C:\myPrograms\Beholden - V6\world.env' does not exist
Copying textures/earth.jpg to staging directory
Copying textures/particle/flare1.png to staging directory
Copying textures/fence1.jpg to staging directory
Copying sounds/drowning.wav to staging directory
Copying textures/mud.gif to staging directory
Copying textures/fence0.jpg to staging directory
Copying sounds/shotgun.wav to staging directory
Copying textures/terrain/alpha.png to staging directory
Copying sounds/Hey Girls, Hey Boys.wav to staging directory
Copying models/tux/tux.png to staging directory
Copying world.env to staging directory
Copying sounds/shot.wav to staging directory
Copying sounds/machineGun.wav to staging directory
Copying sounds/cheer.wav to staging directory
Copying textures/floor.gif to staging directory
Copying textures/eye.jpg to staging directory
Copying sounds/Boo.wav to staging directory
Copying models/tux/tux.obj to staging directory
Copying sounds/eyeShake.wav to staging directory
Copying models/tux/tux_happy.png to staging directory
Copying sounds/eyeDeath.wav to staging directory
Copying textures/fire.gif to staging directory
Copying textures/skybox/default/ to staging directory
Copying sounds/hit.wav to staging directory
Copying textures/terrain/termap1.png to staging directory
Copying models/tux/tux_dead.png to staging directory
Creating Env3d Applet...
Java bin: C:\"Program Files\Java\jdk1.6.0_04\bin"\


Warning:
The signer certificate has expired.

Offline
Joined: 12/13/2010
Does the applet run locally

Does the applet run locally (i.e. on your own machine)?.  It could be that the applet is too big since there is a 20Mb upload limit to env3d.org.  You can check the size of your upload by looking into the applet/ directory and check the size of game3.jar and game_support.jar.

Offline
Joined: 01/08/2011
applet issues

I tried to run the applet with applet viewer and nothing seemed to happen (applet not initilized it says when I try to start it); although I'm not sure if I was doing it correctly or not. The game3 Executable Jar File is 12 kb, the game3.jar.pack  PACK file11 kb, the game_support Executable Jar File is 47724 kb. Too big I guess; that's too bad because it's a cool game, and rather basic I thought. I had to clean up my code drastically and eliminate some game objects in order for it to run without the memory buffer pooching out on me during the game end loops. I uploaded the applet to filezilla using the compscistu.capilanou.ca as the host, but I can't access any of my uploaded files. It says "The requested URL was not found on this server". Are there any alternatives to make the game accessible to others?

Offline
Joined: 12/13/2010
What I mean is NOT to use the

What I mean is NOT to use the applet viewer function, but the "Run Env3D Applet" option under the Env3D menu, as show in the following:  http://www.env3d.org/beta/node/43

 

This should launch the env3d applet locally on your own computer.  If this works, you can upload the entire applet directory to any web host so others can access it. 

Offline
Joined: 01/08/2011
I'm not sure, but the newest

I'm not sure, but the newest version of env3d doesn't seem to have the same options on the dropdown menu as shown in


Appendix 3: Creating Applet for online distribution.


 


I tried "upload java webstart to env3D.org" but that froze aswell". Attached is a screen shot of what is shown when I right click on my game class.

AttachmentSize
gameClassScreenShot.jpg 939.31 KB
Offline
Joined: 12/13/2010
Ok, please try the "Create

Ok, please try the "Create Env3D Applet" option.  This will launch a local browser..

 

Sorry about that!

 

Jason

Offline
Joined: 01/08/2011
applet issues cont.

The same thing happens when I tried the create env3D option as what happens with the other 2 options; it stalls during pakaging. I'm guessing that the program is too large. The background music file is quite large; however, when I remove it from the sound file and comment out the references to it in my program it does not reduce the size of the applet game_support jar file, and it stalled during compression when I try create env3D applet. Below is the debug logfile for when I tried create env3D option with the background music file removed (I waited along time I thought. Was I being too impatient ? ).


BlueJ run started: Wed Jul 25 15:02:37 PDT 2012
BlueJ version 2.2.1
Java version 1.6.0_04
Virtual machine: Java HotSpot(TM) Client VM 10.0-b19 (Sun Microsystems Inc.)
Running on: Windows Vista 6.0 (x86)
Java Home: C:\Program Files\Java\jdk1.6.0_04\jre
----
Connected to debug VM via dt_socket transport...
Communication with debug VM fully established.
class env3d.EnvApplet
Class menu invoked Game
Error: java.io.FileNotFoundException: File 'C:\myPrograms\Beholden - V6\world.env' does not exist
Copying textures/earth.jpg to staging directory
Copying textures/particle/flare1.png to staging directory
Copying textures/fence1.jpg to staging directory
Copying sounds/drowning.wav to staging directory
Copying textures/mud.gif to staging directory
Copying textures/fence0.jpg to staging directory
Copying sounds/shotgun.wav to staging directory
Copying textures/terrain/alpha.png to staging directory
Copying sounds/Hey Girls, Hey Boys.wav to staging directory
Copying models/tux/tux.png to staging directory
Copying world.env to staging directory
Copying sounds/shot.wav to staging directory
Copying sounds/machineGun.wav to staging directory
Copying sounds/cheer.wav to staging directory
Copying textures/floor.gif to staging directory
Copying textures/eye.jpg to staging directory
Copying sounds/Boo.wav to staging directory
Copying models/tux/tux.obj to staging directory
Copying sounds/eyeShake.wav to staging directory
Copying models/tux/tux_happy.png to staging directory
Copying sounds/eyeDeath.wav to staging directory
Copying textures/fire.gif to staging directory
Copying textures/skybox/default/ to staging directory
Copying sounds/hit.wav to staging directory
Copying textures/terrain/termap1.png to staging directory
Copying models/tux/tux_dead.png to staging directory
Creating Env3d Applet...
Java bin: C:\"Program Files\Java\jdk1.6.0_04\bin"\


Warning:
The signer certificate has expired.


Warning:
The signer certificate has expired.
Compressing jars
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
 at SevenZip.Compression.LZ.BinTree.Create(BinTree.java:95)
 at SevenZip.Compression.LZMA.Encoder.Create(Encoder.java:377)
 at SevenZip.Compression.LZMA.Encoder.SetStreams(Encoder.java:1254)
 at SevenZip.Compression.LZMA.Encoder.Code(Encoder.java:1279)
 at bluej.CreateAppletAction.compressFile(CreateAppletAction.java:205)
 at bluej.CreateAppletAction.createApplet(CreateAppletAction.java:121)
 at bluej.CreateAppletAction.actionPerformed(CreateAppletAction.java:79)
 at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
 at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
 at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
 at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
 at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
 at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
 at java.awt.Component.processMouseEvent(Component.java:6041)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
 at java.awt.Component.processEvent(Component.java:5806)
 at java.awt.Container.processEvent(Container.java:2058)
 at java.awt.Component.dispatchEventImpl(Component.java:4413)
 at java.awt.Container.dispatchEventImpl(Container.java:2116)
 at java.awt.Component.dispatchEvent(Component.java:4243)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
 at java.awt.Container.dispatchEventImpl(Container.java:2102)
 at java.awt.Window.dispatchEventImpl(Window.java:2440)
 at java.awt.Component.dispatchEvent(Component.java:4243)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

Offline
Joined: 12/13/2010
Looks like the compression

Looks like the compression ran out of memory.  Did you try changing the dictionary size in the Preferences section?

Offline
Joined: 01/08/2011
applet cont.

I decreased the dictionary size, but when I went to run the applet on the local browser a notepad++ document poped up as shown below:


 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>AppletLoader</title>
  </head>
  <body>


  <applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar, lzma.jar" codebase="." width="640" height="480">
 
    <!-- The following tags are mandatory -->
   
    <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
    <param name="al_title" value="appletloadertest">
   
    <!-- Main Applet Class -->
    <!--<param name="al_main" value="org.lwjgl.test.applet.GearsApplet">-->


    <param name="al_main" value="Game">
   
    <!-- logo to paint while loading, will be centered -->
    <param name="al_logo" value="appletlogo.png">
   
    <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
    <param name="al_progressbar" value="appletprogress.gif">
   
    <!-- List of Jars to add to classpath -->
    <param name="al_jars" value="game3.jar.pack.lzma, game_support.jar.pack.lzma, env3d_jme3.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, j-ogg-oggd.jar.pack.lzma, j-ogg-vorbisd.jar.pack.lzma, jbullet.jar.pack.lzma, vecmath.jar.pack.lzma, stack-alloc.jar.pack.lzma, nifty.jar.pack.lzma, nifty-default-controls.jar.pack.lzma, nifty-style-black.jar.pack.lzma, eventbus.jar.pack.lzma, xmlpull-xpp3.jar.pack.lzma, jME3-blender.jar.pack.lzma, jME3-lwjgl.jar.pack.lzma, jME3-core.jar.pack.lzma, jME3-niftygui.jar.pack.lzma, jME3-desktop.jar.pack.lzma, jME3-plugins.jar.pack.lzma, jME3-jbullet.jar.pack.lzma, jME3-terrain.jar.pack.lzma, jME3-jogg.jar.pack.lzma" />
   
    <!-- signed windows natives jar in a jar -->
    <param name="al_windows" value="windows_natives.jar.pack.lzma">
   
    <!-- signed linux natives jar in a jar -->
    <param name="al_linux" value="linux_natives.jar.pack.lzma">
   
    <!-- signed mac osx natives jar in a jar -->
    <param name="al_mac" value="macosx_natives.jar.pack.lzma">


    <!-- signed solaris natives jar in a jar -->
    <param name="al_solaris" value="solaris_natives.jar.pack.lzma">
   
    <!-- Tags under here are optional -->
   


    <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
    <!-- <param name="al_version" value="0.1"> -->
   
    <!-- background color to paint with, defaults to white -->
    <!-- <param name="al_bgcolor" value="000000"> -->
   
    <!-- foreground color to paint with, defaults to black -->
    <!-- <param name="al_fgcolor" value="ffffff"> -->
   
    <!-- error color to paint with, defaults to red -->
    <!-- <param name="al_errorcolor" value="ff0000"> -->
   
    <!-- whether to run in debug mode -->
    <!-- <param name="al_debug" value="true"> -->
   
    <!-- whether to prepend host to cache path - defaults to true -->
    <param name="al_prepend_host" value="false">
   
    <!-- main applet specific params -->
    <param name="separate_jvm" value="true"> 
  </applet>
  </body>
</html>