You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Greg Brown <gk...@verizon.net> on 2011/06/21 13:46:48 UTC

Re: Getting Started with Apache Pivot 2.0

Hi Elias,
Welcome! Nice blog entry. FYI, you'll want to subscribe to the mailing list if you want to see any replies to your message. user@pivot.apache.org (cc'ed) is probably the best place for this type of content.
Greg

On Jun 20, 2011, at 9:43 PM, Elias Puurunen wrote:

> Tonight I wrote an introduction to Pivot blog post... this was after an hour or so of hacking, so it might not even be good code, but hey.
> 
> http://silverfinn.net/blog/?p=192
> 


Re: Getting Started with Apache Pivot 2.0

Posted by Edvin Syse <es...@syse.no>.
On 07/25/2011 10:09 AM, ccp999 wrote:
> I found out only this works:
>
> java -cp
> .:pivot-core-2.0.jar:pivot-wtk-2.0.jar:pivot-wtk-terra-2.0.jar:pivot-tutorials-2.0.jar
> org.apache.pivot.wtk.DesktopApplicationContext com.itags.HelloJava
>
> no space between after ":"
>
> and need "."
>
> I tested on Mac LION Java 1.6

This is as expected and has nothing to do with Pivot. But are you really 
writing Java code without an IDE? :) Any IDE will take care of this for 
you, and even help you package your app when you are ready to deploy.

-- Edvin

RE: Getting Started with Apache Pivot 2.0

Posted by ccp999 <cc...@hotmail.com>.
I found out only this works:

java -cp
.:pivot-core-2.0.jar:pivot-wtk-2.0.jar:pivot-wtk-terra-2.0.jar:pivot-tutorials-2.0.jar
org.apache.pivot.wtk.DesktopApplicationContext com.itags.HelloJava

no space between after ":"

and need "."

I tested on Mac LION Java 1.6

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Re-Getting-Started-with-Apache-Pivot-2-0-tp3090296p3196841.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

RE: Getting Started with Apache Pivot 2.0

Posted by Jérôme Serré <je...@gmail.com>.
Hello,

May be  with this add in the classpath.
It concerns java not pivot

java -cp  .:               

-----Message d'origine-----
De : ccp999 [mailto:ccp999@hotmail.com] 
Envoyé : lundi 25 juillet 2011 04:52
À : user@pivot.apache.org
Objet : Re: Getting Started with Apache Pivot 2.0

Hi,

I'm new to Pivot and I was trying to run Hello world from 2.0.  After
spending few hours and still can't get it run.  Please help me!

I copied the code exactly from your web page and tried to run it from Mac
with Java 1.6.

here is the command I entered and the error message I got:

java -cp
pivot-core-2.0.jar:pivot-wtk-2.0.jar:pivot-wtk-terra-2.0.jar:pivot-tutorials
-2.0.jar
org.apache.pivot.wtk.DesktopApplicationContext com.itags.HelloJava
java.lang.ClassNotFoundException: com.itags.HelloJava
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at
org.apache.pivot.wtk.DesktopApplicationContext.main(DesktopApplicationContex
t.java:568)

and I put the HelloJava in the lib directory with pivot-2.0 jars as:

com				pivot-tutorials-2.0.jar
pivot-wtk-2.0.jar
pivot-charts-2.0.jar		pivot-web-2.0.jar
pivot-wtk-terra-2.0.jar
pivot-core-2.0.jar		pivot-web-server-2.0.jar

why it could not find the hellojava?

--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Re-Getting-Started-with-Apach
e-Pivot-2-0-tp3090296p3196396.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Re: Getting Started with Apache Pivot 2.0

Posted by Elly Businge <el...@gmail.com>.
Hi There,

Have you tried looking at the FAQ on the Apache-Pivot web site. As far as i
know all the instructions about how to set up your environment to develop
pivot applications using an IDE such as Eclipse are all there. Give it a try
and am sure all you problems will be sorted.

Regards
Elly.

On Mon, Jul 25, 2011 at 5:51 AM, ccp999 <cc...@hotmail.com> wrote:

> Hi,
>
> I'm new to Pivot and I was trying to run Hello world from 2.0.  After
> spending few hours and still can't get it run.  Please help me!
>
> I copied the code exactly from your web page and tried to run it from Mac
> with Java 1.6.
>
> here is the command I entered and the error message I got:
>
> java -cp
>
> pivot-core-2.0.jar:pivot-wtk-2.0.jar:pivot-wtk-terra-2.0.jar:pivot-tutorials-2.0.jar
> org.apache.pivot.wtk.DesktopApplicationContext com.itags.HelloJava
> java.lang.ClassNotFoundException: com.itags.HelloJava
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:169)
>        at
>
> org.apache.pivot.wtk.DesktopApplicationContext.main(DesktopApplicationContext.java:568)
>
> and I put the HelloJava in the lib directory with pivot-2.0 jars as:
>
> com                             pivot-tutorials-2.0.jar
> pivot-wtk-2.0.jar
> pivot-charts-2.0.jar            pivot-web-2.0.jar
> pivot-wtk-terra-2.0.jar
> pivot-core-2.0.jar              pivot-web-server-2.0.jar
>
> why it could not find the hellojava?
>
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/Re-Getting-Started-with-Apache-Pivot-2-0-tp3090296p3196396.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>

Re: Getting Started with Apache Pivot 2.0

Posted by ccp999 <cc...@hotmail.com>.
Hi,

I'm new to Pivot and I was trying to run Hello world from 2.0.  After
spending few hours and still can't get it run.  Please help me!

I copied the code exactly from your web page and tried to run it from Mac
with Java 1.6.

here is the command I entered and the error message I got:

java -cp
pivot-core-2.0.jar:pivot-wtk-2.0.jar:pivot-wtk-terra-2.0.jar:pivot-tutorials-2.0.jar
org.apache.pivot.wtk.DesktopApplicationContext com.itags.HelloJava
java.lang.ClassNotFoundException: com.itags.HelloJava
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at
org.apache.pivot.wtk.DesktopApplicationContext.main(DesktopApplicationContext.java:568)

and I put the HelloJava in the lib directory with pivot-2.0 jars as:

com				pivot-tutorials-2.0.jar		pivot-wtk-2.0.jar
pivot-charts-2.0.jar		pivot-web-2.0.jar		pivot-wtk-terra-2.0.jar
pivot-core-2.0.jar		pivot-web-server-2.0.jar

why it could not find the hellojava?

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Re-Getting-Started-with-Apache-Pivot-2-0-tp3090296p3196396.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.