Skip to main content

unable to run tutorial1

20 replies [Last post]
deepthi_ventrap...
Offline
Joined: 2006-08-29

Hi
I had compiled Tutorial1.java and created a jar with manifest,class,config xml and image files. I placed the jar in lg3d/ext/app but I couldn't see the Tutorial 1 icon on task bar when I exceuted lg3d-dev. Could anyone help me with this... plzzzzzz
regards
deepthi

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kirk Turner

On 9/12/06, Juan González wrote:
> But the tutorial refers to an ApplicationDescription (for the taskbar) not an
> StartMenuItemConfig, and in fact it generated an ClassNotFoundException when
> the classpathJars property was missing, like this:

Ahh yeah - I was thinking of the default behaviour if you don't
specify a lfcfg file in the jar file (which I'm not sure is still
supported). Actually that was one thing that I was thinking would be
good for updating the tutorials at the time - using the start menu
instead of the taskbar.

Kirk

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

> Actually that was one thing that I was
> thinking would be
> good for updating the tutorials at the time - using
> the start menu
> instead of the taskbar.

Are you saying that the tutorials shouldn't cover how to use the taskbar?

Right now I have Tutorial1 using the taskbar, and Tutorial2 using the menu, so that both are covered. If you have a better idea, I'm open to it.

William

Kirk Turner

> Are you saying that the tutorials shouldn't cover how to use the taskbar?
>
> Right now I have Tutorial1 using the taskbar, and Tutorial2 using the menu, so that both are covered. If you have a better idea, I'm open to it.

Ack just ignore me - I'm confusing everyone :) If you made this change
then well done - if I did it then I'm must be going insane and senile
:) I had a birthday recently... that could explain it.

Kirk

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

> if I did it then I'm must be going
> insane and senile
> :) I had a birthday recently... that could explain
> it.

Oh, no, it's the evil birthday! Did you save me some cake? ;-)

On a more serious note, the tutorial originally went over a more or less identical set of instructions for building a jar twice. Since there's two ways to build a .lgcfg file now, I decided it made sense to cover one way one time and the other way the other time, so I made the change.

William

Juan González

But the tutorial refers to an ApplicationDescription (for the taskbar) not an
StartMenuItemConfig, and in fact it generated an ClassNotFoundException when
the classpathJars property was missing, like this:

[code]
12-sep-2006 13:00:34 org.jdesktop.lg3d.utils.action.AppLaunchAction$1 run
ADVERTENCIA: Failed to find class in classpath :
java.lang.ClassNotFoundException: Tutorial1
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.jdesktop.lg3d.utils.action.AppLaunchAction$1.run(AppLaunchAction.java:77)
at java.lang.Thread.run(Thread.java:619)
[/code]

Regards
El Martes, 12 de Septiembre de 2006 04:08, lg3d@javadesktop.org escribió:
> It runs for me without adding the classpathJar option. As far as I can
> tell, the new menu format requires it, but not the old formath that this
> config file uses. [Message sent by forum member 'afishionado'
> (afishionado)]
>
> http://forums.java.net/jive/thread.jspa?messageID=152027
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net

--
ID:44B9EB26 Fingerprint:B480 E909 0C80 E303 F0A8 4C2C 6C4F A12B 44B9 EB26
Get:http://keyserv.nic-se.se:11371/pks/lookup?op=vindex&search=0x6C4FA12B44B9EB26

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

I can build and run Tutorial1 with the .lgcfg file as it is on the tutorial page.

William

Juan González

Hi William,
i sent a corrected version of the jar file to deepthi_ventrapragada and there
is something missing in the tutorial, when the lgcfg file is created it looks
like this:
[code]

java Tutorial1 tutorial1.png Tutorial 1


[/code]

but it should also include the own jar file in the claspath, so it should look
like:


java Tutorial1 tutorial1.png Tutorial 1 Tutorial1.jar


[/code]

pleae correct me if I'm wrong
cheers
El Lunes, 11 de Septiembre de 2006 20:59, lg3d@javadesktop.org escribió:
> BTW, would any of the LG3D developers do me a favor and try to follow the
> tutorial with a fresh LG3D install? I thought that I fixed all the
> mistakes, but I'm getting antsy that I missed something. [Message sent by
> forum member 'afishionado' (afishionado)]
>
> http://forums.java.net/jive/thread.jspa?messageID=151878
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net

--
ID:44B9EB26 Fingerprint:B480 E909 0C80 E303 F0A8 4C2C 6C4F A12B 44B9 EB26
Get:http://keyserv.nic-se.se:11371/pks/lookup?op=vindex&search=0x6C4FA12B44B9EB26

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

Juan González

wops, in step 7 when it reads like "Click on the lg3d button [...]" shouldn't
it say "Click on the Tutorial1 button [...]" ?
--
ID:44B9EB26 Fingerprint:B480 E909 0C80 E303 F0A8 4C2C 6C4F A12B 44B9 EB26
Get:http://keyserv.nic-se.se:11371/pks/lookup?op=vindex&search=0x6C4FA12B44B9EB26

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

afishionado
Offline
Joined: 2004-05-26

Juan--thanks for the feedback. I'll try to get those resolved here.

Deepthi,

Just to focus on your problem at the moment, let's try some baby steps here.

Open up the ext/app folder in Explorer, and make sure that you see the Tutorial1 jar file you created there *and* a whole bunch of other jar files for the other Looking Glass programs installed.

If everything looks alright there, launch WinZip or whatever equivalent program you have installed. Open up the Tutorial1 jar file. Select the .lgcfg file and preview it. Find the section that says:

[code]
tutorial1.png
[/code]

The name between the string tags must *exactly* match the name of the icon file inside the jar. Capitilization counts.

Also open META-INF/MANIFEST.INF. Make sure that the "Config-File" line is there, and that the value matches the name of the .lgcfg file. Again, capitalization counts.

If it looks good, try using your zip program to open up one of the other jar files in ext/app. Poke around and see if you see if they are doing something different from you. Maybe you'll spot the problem before any of us figure it out. :-)

William

afishionado
Offline
Joined: 2004-05-26

It runs for me without adding the classpathJar option. As far as I can tell, the new menu format requires it, but not the old formath that this config file uses.

Kirk Turner

One thing I noted - although I haven't tried out your latest updates
to the tutorial afishionado - is that the screenshots should lie now -
the tutorial launcher should be added to the start menu now instead of
the taskbar I believe. Can you find it there in the menus Deepthi?

Kirk
PS: I've finally got myself a new laptop with an nvidia card, ubuntu
is set up so next step is to get the last lg3d and see how things are
going!

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

deepthi_ventrap...
Offline
Joined: 2006-08-29

Its a Windows XP system. I could locate one lgserver.log in lg3D/bin. It doesn't have any information about my 'Tutorial1.jar' file. Could u tell me what went wrong

deepthi_ventrap...
Offline
Joined: 2006-08-29

hi all
sorry for the delayed response
As Juan said, the tutorial worked fine by including the 'classpathJar' property.
Thanks for the timely help :)

afishionado
Offline
Joined: 2004-05-26

The classpathJars property is now covered in the online tutorials.

William

Juan González

Hi
can you take a look at /var/tmp/lgserver.log (if running linux, I don't know
it's location on windows, but it should have the same filename) and see if
there is some message near the end of it about your jar? It would also be
interesting if you can post the jar you created to see what's wrong.

Regards.
El Lunes, 11 de Septiembre de 2006 17:14, lg3d@javadesktop.org escribió:
> Hi
> I had compiled Tutorial1.java and created a jar with manifest,class,config
> xml and image files. I placed the jar in lg3d/ext/app but I couldn't see
> the Tutorial 1 icon on task bar when I exceuted lg3d-dev. Could anyone help
> me with this... plzzzzzz regards
> deepthi
> [Message sent by forum member 'deepthi_ventrapragada'
> (deepthi_ventrapragada)]
>
> http://forums.java.net/jive/thread.jspa?messageID=151764
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net

--
ID:44B9EB26 Fingerprint:B480 E909 0C80 E303 F0A8 4C2C 6C4F A12B 44B9 EB26
Get:http://keyserv.nic-se.se:11371/pks/lookup?op=vindex&search=0x6C4FA12B44B9EB26

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

deepthi_ventrap...
Offline
Joined: 2006-08-29

Hi Juan
I'm new to this forum. Could you please tell me how i can attach files here so that u can see my jar file.
thanks
deepthi

Juan González

Hi back,
i always use the mailing list so I didn't realize if it was possible to
attach files in the forum, please send it to me at juan at aga - system dot
com.

El Lunes, 11 de Septiembre de 2006 17:36, lg3d@javadesktop.org escribió:
> Hi Juan
> I'm new to this forum. Could you please tell me how i can attach files here
> so that u can see my jar file. thanks
> deepthi
> [Message sent by forum member 'deepthi_ventrapragada'
> (deepthi_ventrapragada)]
>
> http://forums.java.net/jive/thread.jspa?messageID=151783
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
> For additional commands, e-mail: interest-help@lg3d.dev.java.net

--
ID:44B9EB26 Fingerprint:B480 E909 0C80 E303 F0A8 4C2C 6C4F A12B 44B9 EB26
Get:http://keyserv.nic-se.se:11371/pks/lookup?op=vindex&search=0x6C4FA12B44B9EB26

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@lg3d.dev.java.net
For additional commands, e-mail: interest-help@lg3d.dev.java.net

deepthi_ventrap...
Offline
Joined: 2006-08-29

Juan
Please check your mail and help me out.
thanks
deepthi

afishionado
Offline
Joined: 2004-05-26

BTW, would any of the LG3D developers do me a favor and try to follow the tutorial with a fresh LG3D install? I thought that I fixed all the mistakes, but I'm getting antsy that I missed something.

I would hate for people to get tripped up by a typo in the tutorial. :(

William

deepthi_ventrap...
Offline
Joined: 2006-08-29

hi
i tried running Tutorial1 with a fresh install of lg3D from https://lg3d.dev.java.net/lg3d-on-windows.html jar file got created but no icon appeared on taskbar when i executed lg3d-dev. please help me asap.. need to finish my work by tomorrow.