Okay, I see. You will need to make hierarchy of directories, like this:
src
+-----org
+-----apache
+-----pivot
+-----tutorials
And put your code there. Then in the command window where you are compiling a
building your application, you would need to do:
> javac org\apache\pivot\tutorials\HelloJava.java
> java org.apache.pivot.tutorials.HelloJava
And hopefully you have set your CLASSPATH environment variable to point to the
Pivot .jar files .... From your screenshot, you probably would need to do
something like this (just one time when you open the command window) (and I'm
assuming this is Windows -- slightly different instructions apply for Linux or
OSX):
> set
> CLASSPATH=.;\test\pivot202\lib\pivot-core-2.0.2.jar;\test\pivot202\lib\pivot-wtk-2.0.2.jar;\test\pivot202\lib\pivot-wtk-terra-2.0.2.jar
HTH,
~Roger Whitcomb
-----Original Message-----
From: chenmgm [mailto:[email protected]]
Sent: Saturday, June 15, 2013 4:22 PM
To: [email protected]
Subject: Re: Why i can not run HelloJava as an application?
I think the code was in right place
<http://apache-pivot-users.399431.n3.nabble.com/file/n4022619/QQ%E6%88%AA%E5%9B%BE20130616071556.jpg>
“And you would need "." in your CLASSPATH too. ”
What "." and What CLASSPATH?
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Why-i-can-not-run-HelloJava-as-an-application-tp4022617p4022619.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.