Export Problems

3 replies [Last post]
Danoso42's picture
Offline
Joined: 06/27/2012

Hey guys,

 

I've been using Env3D for a few days now, and I'm very impressed with its features and accessibility. I am having a slight problem exporting my project, however.

 

I'm using the NetBeans version. Ideally, I'd like to output an executable .jar file. So far, though, I've only succeeded in creating a file that does nothing when opened and does nothing when run from command prompt. I've also tried following the instructions for a web release found on this website, and I've still had no results, and there were no errors during any of these builds.

 

Can anybody point me in the right direction or tell me what sort of details I need to post?

 

Thanks,

Dan

Offline
Joined: 12/13/2010
Hi Dan, I am assuming that

Hi Dan,

I am assuming that your game runs well inside netbeans, correct?  You can try running the following command at the command prompt.  Make sure that you are in your netbeans project directory:

 

java -cp lib/* -jar dist/Env3DTemplate.jar

 

This will make sure that you include all the libraries and all the assets for your game to run.  You'll then need to package up all the libraries from the dist directory, as well as *.dll, *.so, *.dylib, and *.jnilib, and all of the models, sounds, and textures that you use for your game.  It's actually a pretty involved process...

 

I must admit that I have not considered this particular use-case - i.e. deploying to a standalone distributable jar files.  This may be a good option to add to env3d.  So far, I have only concentrated on applet and webstart deployment.  When you use the "Launch Env3D Applet" option, are you getting any errors?  That is probably the best option to use right now as it will package up all the necessary files into the applet/ directoy and all you need is to open the applet/appletloader.html file to run your program.

 

Let me know if any of the above make sense and I'll try to get your program deployed properly.

 

Thanks

 

Jason

Danoso42's picture
Offline
Joined: 06/27/2012
The program does indeed run

The program does indeed run perfectly inside of NetBeans. The new command prompt line you provided works perfectly! Is there a way you are aware of that would allow me to package all of the necessary files into an executable file that will run the console command?

 

When I use the "Launch Env3D Applet" option, nothing happens, much like when I attempted to run the file separately. Opening the applet.html file itself did give me an error, however.

"An error occurred while loading the applet. Please contact support to resolve this issue. This occurred while 'Downloading the packages'".

 

Also, something that may be worth note is the presence of this line in my console in NetBeans:

"AL lib: ReleaseALC: 1 device not closed"

This started appearing between yesterday and today, yet I have made no changes to my program since posting this query.

 

Thanks,

Dan

Offline
Joined: 12/13/2010
It's odd that the "Launch

It's odd that the "Launch Env3D Applet" option results in nothing, that needs to work in order for the basic packaging to happen. 

Meanwhile, I'll work on a general packaging solution and I'll get back to you when it's done.  Unfortunately, I cannot think of any simple way right now. 

 

Thanks

 

Jason