Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

12045 Posts in 1593 Topics- by 593 Members - Latest Member: zhang

19. June 2013, 07:27:31 pm
Xith3D CommunityProjectsGames production pipeline (Moderator: clilian)Java Web Start
Pages: 1 2 [3] 4
Print
Author Topic: Java Web Start  (Read 18111 times)
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #30 on: 03. August 2007, 12:48:53 am »

Ah.. I've never used xsd2jibx myself as I always hand-code the mapping files too LOL  From your comment, I just thought you didn't know it existed.  Did you get it working for the new .classpath files now?
Actually I can't work right now since I am not at home. Tomorrow night and Saturday, I will work. Promised.
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #31 on: 03. August 2007, 02:07:22 am »

Actually I can't work right now since I am not at home. Tomorrow night and Saturday, I will work. Promised.

I'm not depending on it at all so don't hurry for me.  I just wanted to know if I could help through any additional roadblocks.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #32 on: 03. August 2007, 09:18:50 am »

Yup, thanks for your interest in the thing, horati.

Actually you know what ? The interface will be redesigned from scratch, as it's not flexible enough at all, and doesn't satisfy me in many aspects.
E.g. creating a self-launchable jar or an installer or a software module isn't necessarily a linear process.. I'll try to design a kind of GUI which I haven't seen yet, which goal is to display only the relevant information. If you want a counter-example, just look at what you've got when you read your ebay accounts : lots of texts, buttons, images, ... some people needs several minutes to figure out 1) what informations do they need to know and 2) how they can change what they want.
I'm beginning to like Swing (come on, its performance has been improved and has become a non-issue, and it allows me to have a very small runtime jar for OneClick).

Actually "OneClick" begins to be a wrong name. "Ubiquity" would be better but I think it's already taken by a project. The idea being you can deploy the way you want, with the resources you have (e.g. if you don't have much bandwith, just rely on packages on other servers.. if you are a commercial game development company, you can burn your DVDs all-including).

In the end, we could even consider things like native launchers, e.g. creating an exe for windows, a makeself.sh for linux, a dmg? for mac. That shouldn't be that hard.
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #33 on: 03. August 2007, 02:32:32 pm »

For making Swing applications, have a look at www.jgoodies.com.  There were 4 accompanying open source projects the last time I checked.  Forms and data-binding are the most interesting.  They make excellent UI creation much easier, especially native-appearance cross-platform.  Obviously, it's all stuff that's possible with raw Swing but few developers use the plethora of constants available for things like spacing and exact colors when coding raw Swing.  This takes care of all that.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #34 on: 03. August 2007, 07:00:53 pm »

Well, sorry for taking so long in getting back to you, Amos, here is the classpath. Whoops, actually, I forgot which project produced the error, so it's either this one:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
   <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
   <classpathentry excluding="bin/" kind="src" path=""/>
   <classpathentry combineaccessrules="false" kind="src" path="/xith3d"/>
   <classpathentry combineaccessrules="false" kind="src" path="/xith-tk"/>
   <classpathentry kind="output" path=""/>
</classpath>

or it's this one:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
   <classpathentry kind="src" path=""/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
   <classpathentry kind="output" path=""/>
</classpath>
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #35 on: 03. August 2007, 08:33:24 pm »

Try alpha 3 : http://sourceforge.net/project/showfiles.php?group_id=191595


PS : I do LOVE OneClick uploading feature. It makes me WANT to make new releases, it's soo easy.
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #36 on: 04. August 2007, 02:01:38 am »

Sorry, I still get the same error.  I have managed to narrow it down to the first .classpath file that I put in, though.  The other one works, but now I get a "Could not find the main class.  Program will exit" error.   Embarrassed

What is the proper syntax for the "Main Class" TextField?  Is it packages, slashes, dots, ?? Huh
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #37 on: 04. August 2007, 04:26:59 pm »

It's a "binary name", example "org.i.really.suck.at.Coding", you see ?

(i = me, not you)
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #38 on: 21. September 2007, 03:25:34 am »

Hmm...I still seem to get it while using OneClick.

Here is a link to a Java Web Start test for my app...tell me if it works for you.  Sorry about the long download time.  It's my new Exodus Online site.  My co-dev dropped out of the project.  He knew a lot of HTML, but in some ways it's better that I'm in this alone.  I can update the site however I choose, whenever I choose, etc.  And, no, there are no bad references to you in this site.  Smiley

http://www.speedtrail.net/users/allevato8/index.htm

On the "Play" link.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Mathias 'cylab' Henze
Fierce Warrior
****
Offline Offline

Posts: 540

1064620
View Profile WWW
« Reply #39 on: 21. September 2007, 09:15:23 am »

Does not work for me:
Code:
java.io.FileNotFoundException: The base-folder does not exist (".\Images\Terrain").
at org.xith3d.utility.resources.ResourceLocator.setBaseURL(ResourceLocator.java:122)
at org.xith3d.utility.resources.ResourceLocator.setBaseURL(ResourceLocator.java:148)
at org.xith3d.utility.resources.ResourceLocator.<init>(ResourceLocator.java:324)
at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.prepareTerrain(Exodus3dWorld.java:471)
at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.prepareHeiarchy(Exodus3dWorld.java:198)
at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.<init>(Exodus3dWorld.java:153)
at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.main(Exodus3dWorld.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Logged

Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #40 on: 21. September 2007, 11:17:47 am »

Instead of
Code:
".\Images\Terrain"
You must use this:
Code:
"Images/Terrain"

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #41 on: 21. September 2007, 11:33:32 am »

After clicking the Play link the following message is displayed forever:
Quote
Link Session Pending...

Marvin
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #42 on: 21. September 2007, 01:12:02 pm »

Instead of
Code:
".\Images\Terrain"
You must use this:
Code:
"Images/Terrain"

Marvin
Thanks for the tip, but my code actually reads:

Code:
heightMap = new HeightMapSampler(new ResourceLocator("./Images/Terrain/")
            .getResource("long island_dark_2.jpg"));

When I drop the "." it just gives me an error:

Quote
java.io.FileNotFoundException: The base-folder does not exist ("\Images\Terrain").
   at org.xith3d.utility.resources.ResourceLocator.setBaseURL(ResourceLocator.java:122)
   at org.xith3d.utility.resources.ResourceLocator.setBaseURL(ResourceLocator.java:148)
   at org.xith3d.utility.resources.ResourceLocator.<init>(ResourceLocator.java:324)
   at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.prepareTerrain(Exodus3dWorld.java:471)
   at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.prepareHeiarchy(Exodus3dWorld.java:198)
   at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.<init>(Exodus3dWorld.java:153)
   at exodus.game.threeD.worlds.zero.three.Exodus3dWorld.main(Exodus3dWorld.java:178)

And, of course I can't use forward slashes because of escape codes.

After clicking the Play link the following message is displayed forever:
Quote
Link Session Pending...

Marvin
Is that all?  I mean, are there any images on the page, any borders, etc.?

The words "Link Session Pending" are only supposed to be for show, because the transmission is supposed to be coming from outer space, but nothing is really happening when it says that.

I guess you have JavaScript enabled on your computer, so it's not that.  What browser are you using?  I have tested this on Internet Explorer and Mozilla Firefox.
« Last Edit: 21. September 2007, 01:19:05 pm by kukanani » Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4403


May the 4th, be with you...


View Profile
« Reply #43 on: 21. September 2007, 01:19:15 pm »

I'm using Mozilla Firefox. But I have also tested in on Konqueror (shows the same).

I have attached a screenshot of what I am seeing.

Marvin
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #44 on: 21. September 2007, 01:41:42 pm »

Oh, OK. Yeah, that's right.  Like I said, those words are just for show, but maybe I should get rid of them - they are kind of confusing.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Pages: 1 2 [3] 4
Print
Jump to:  

Theme orange-lt created by panic